/* Items Manager Styles Added */
.admin-body .items-manager {
  background: var(--panel);
  border: 3px solid #f00;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.admin-body .items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-body .items-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}
.admin-body .items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.admin-body .item-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
.admin-body .item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.admin-body .item-card-header strong {
  color: var(--primary);
  font-size: 1rem;
}
.admin-body .item-card-actions {
  display: flex;
  gap: 0.4rem;
}
.admin-body .item-card-actions button {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}
.admin-body .btn-edit {
  background: rgba(95, 182, 234, 0.15);
  border: 1px solid rgba(95, 182, 234, 0.3);
  color: var(--primary);
}
.admin-body .btn-edit:hover {
  background: rgba(95, 182, 234, 0.25);
}
.admin-body .btn-delete {
  background: rgba(241, 91, 104, 0.15);
  border: 1px solid rgba(241, 91, 104, 0.3);
  color: var(--danger);
}
.admin-body .btn-delete:hover {
  background: rgba(241, 91, 104, 0.25);
}
.admin-body .item-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}
.admin-body .item-card-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.admin-body .item-card-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.admin-body .item-card-form input,
.admin-body .item-card-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.9rem;
}
.admin-body .item-card-form textarea {
  min-height: 60px;
  resize: vertical;
}
.admin-body .form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.admin-body .new-item-form {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}
.admin-body .new-item-form h4 {
  margin: 0 0 1rem 0;
  color: #fff;
  font-size: 1rem;
}
.admin-body .new-item-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.admin-body .new-item-form input,
.admin-body .new-item-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.9rem;
}

/* Doctors List */
.admin-body .doctors-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-body .doctor-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.admin-body .doctor-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.admin-body .doctor-info strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.admin-body .doctor-info .specialty {
  color: var(--accent);
  font-size: 0.9rem;
}

.admin-body .doctor-info .availability {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-body .doctor-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 2;
}

.admin-body .doctor-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-body .doctor-edit-form {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.admin-body .form-actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal Popup */
.admin-body .modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.admin-body .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.admin-body .modal-content {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: min(90%, 500px);
  max-height: 90vh;
  overflow-y: auto;
}

.admin-body .modal-content h3 {
  margin: 0 0 1rem 0;
  color: #fff;
}

/* Login Page */
.admin-body .login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  padding: 2rem;
}

.admin-body .login-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.admin-body .login-header {
  margin-bottom: 2rem;
}

.admin-body .login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(95, 182, 234, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.admin-body .login-header h1 {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: 1.5rem;
}

.admin-body .login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-body .login-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-body .login-field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
}

.admin-body .login-field input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-body .login-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
}

.admin-body .login-hint {
  margin: 1.5rem 0 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

:root {
  --bg: #07111f;
  --bg-alt: #0b182b;
  --panel: rgba(13, 24, 41, 0.88);
  --panel-strong: #0f1e33;
  --text: #eef6ff;
  --muted: #9fb3c9;
  --primary: #5fb6ea;
  --accent: #49d1c7;
  --danger: #f15b68;
  --border: rgba(95, 182, 234, 0.18);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --font: "Outfit", "Segoe UI", Tahoma, sans-serif;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  letter-spacing: -0.01em;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(100% - 2rem, 860px);
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(10, 19, 33, 0.92);
  border-bottom: 1px solid rgba(95, 182, 234, 0.15);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 80px;
  padding: 0.75rem 0;
}

.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  color: var(--primary);
  display: flex;
  align-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.brand-text small {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.site-nav .nav-link:hover {
  color: #fff;
  background: rgba(95, 182, 234, 0.12);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  color: #fff;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.admin-nav a {
  color: rgba(238, 246, 255, 0.8);
  font-weight: 600;
}

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

.call-button,
.button,
.button-outline,
.button-light,
.button-outline-light,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.call-button,
.button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 14px 32px rgba(95, 182, 234, 0.22);
}

.button:hover,
.call-button:hover,
.button-light:hover,
.button-outline:hover,
.button-outline-light:hover,
.button-danger:hover {
  transform: translateY(-1px);
}

.button-outline,
.button-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.button-light {
  background: #ffffff;
  color: #0e1b2e;
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.button-danger {
  background: var(--danger);
  color: #fff;
}

.hero,
.page-hero,
.section,
.cta-section,
.danger-section {
  padding: 4rem 0;
}

.hero {
  padding-top: 4.5rem;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p,
.page-hero p,
.section-heading p,
.lead,
.content-card p,
.info-card p,
.mini-card p,
.doctor-card p {
  color: var(--muted);
  line-height: 1.7;
}

.today-doctors-section {
  background: linear-gradient(135deg, rgba(95, 182, 234, 0.08) 0%, rgba(10, 19, 33, 0.5) 100%);
}

.today-doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.today-doctor-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease;
  text-align: center;
  padding: 1rem 0.75rem 1rem;
}

.today-doctor-card:hover {
  transform: translateY(-4px);
}

.today-doctor-card .doctor-photo {
  width: 100px;
  height: 120px;
  margin: 1rem auto 0;
  overflow: hidden;
  border-radius: 50% 50% 45% 45%;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 20px rgba(95, 182, 234, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.today-doctor-card .doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.today-doctor-card .doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.today-doctor-card .doctor-details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.today-doctor-card h3 {
  margin: 0;
  font-size: 1rem;
}

.today-doctor-card .specialty {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.today-doctor-card .time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.today-doctor-card .time-badge {
  background: rgba(95, 182, 234, 0.15);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.today-doctor-card .book-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.today-doctor-card .book-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .today-doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .today-doctors-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy p {
  max-width: 55ch;
  font-size: 1.05rem;
}

.pill {
  display: inline-flex;
  border: 1px solid rgba(95, 182, 234, 0.2);
  color: var(--primary);
  background: rgba(95, 182, 234, 0.08);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero-image,
.media-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(95, 182, 234, 0.12), rgba(73, 209, 199, 0.03));
}

.hero-image img,
.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-panel.compact {
  min-height: 340px;
}

.media-overlay {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(10, 18, 31, 0.76);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-overlay span {
  color: var(--muted);
  font-size: 0.85rem;
}

.media-overlay strong {
  font-size: 1.2rem;
}

.stat-grid,
.card-grid,
.button-row,
.footer-grid,
.timeline,
.stack,
.form-grid {
  display: grid;
  gap: 1rem;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.6rem 0 1.2rem;
}

.stat-card,
.info-card,
.mini-card,
.content-card,
.doctor-card,
.admin-tile,
.admin-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1rem;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.stat-card span {
  color: var(--muted);
}

.button-row {
  grid-template-columns: repeat(2, max-content);
  align-items: center;
}

.button-row.center {
  justify-content: center;
}

.section-muted {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.resident-section {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: center;
}

.resident-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.resident-badge {
  display: inline-flex;
  width: fit-content;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.resident-content h2 {
  font-size: 2rem;
  margin: 0;
}

.resident-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.resident-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.feature-icon {
  color: var(--primary);
  font-weight: 700;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-card .why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.why-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.why-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.resident-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

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

.image-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.image-badge span {
  color: var(--muted);
  font-size: 0.85rem;
}

.image-badge strong {
  color: #fff;
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .resident-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .resident-image {
    order: -1;
  }
  
  .resident-image img {
    height: 280px;
  }
}

.section-heading {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-heading h2,
.content-card h2,
.mini-card h3,
.info-card h3,
.doctor-card h3,
.admin-section-header h1,
.admin-card h1,
.admin-tile h3 {
  margin-top: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.one {
  grid-template-columns: 1fr;
}

.info-card,
.mini-card,
.content-card,
.doctor-card,
.admin-tile,
.admin-card {
  padding: 1.35rem;
}

.info-card .card-icon {
  min-width: 86px;
  width: fit-content;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 0.95rem;
}

.doctor-photo {
  position: relative;
  overflow: hidden;
  width: 132px;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(95, 182, 234, 0.18), rgba(73, 209, 199, 0.08));
  border: 4px solid rgba(95, 182, 234, 0.16);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.03);
}

.doctor-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.54));
  pointer-events: none;
}

.doctor-photo-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 0.65rem 0.75rem 0.75rem;
  text-align: center;
}

.doctor-photo-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.doctor-card {
  align-items: center;
  text-align: center;
}

.doctor-specialty {
  margin-top: -0.1rem;
}

.info-card ul,
.check-list {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-badge {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex: none;
}

.timeline {
  grid-template-columns: 1fr;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-year {
  display: grid;
  place-items: center;
  min-height: 88px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doctor-specialty {
  color: var(--primary);
  font-weight: 700;
  margin-top: -0.15rem;
}

.availability-tag,
.price-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: rgba(95, 182, 234, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
  color: #fff;
  background: rgba(95, 182, 234, 0.08);
}

.cta-section {
  background: linear-gradient(135deg, rgba(95, 182, 234, 0.95), rgba(73, 209, 199, 0.9));
}

.cta-section h2,
.cta-section p,
.danger-section h2,
.danger-section p {
  color: #fff;
}

.danger-section {
  background: rgba(241, 91, 104, 0.09);
  border-top: 1px solid rgba(241, 91, 104, 0.2);
  border-bottom: 1px solid rgba(241, 91, 104, 0.2);
}

.page-hero {
  padding-top: 4.75rem;
}

.flash {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.flash-error {
  background: rgba(241, 91, 104, 0.15);
  border-color: rgba(241, 91, 104, 0.3);
  color: #ffd5da;
}

.flash-success {
  background: rgba(73, 209, 199, 0.12);
  border-color: rgba(73, 209, 199, 0.3);
  color: #d7fffb;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.96);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

.admin-body {
  background: linear-gradient(180deg, #07111f, #0a1526);
}

.admin-main {
  padding: 2rem 0 3rem;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-shell {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.admin-topbar {
  background: rgba(10, 19, 33, 0.92);
  border-bottom: 1px solid var(--border);
}

.admin-brand {
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-card.wide {
  padding: 1.5rem;
}

.message-list {
  display: grid;
  gap: 1rem;
}

/* Admin Content Edit Page - Scoped styles */
.admin-body .section-editor {
  margin-bottom: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.admin-body .section-editor-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-body .section-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.admin-body .section-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
}

.admin-body .section-form input,
.admin-body .section-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.95rem;
}

.admin-body .section-form input:focus,
.admin-body .section-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-body .section-form textarea {
  resize: vertical;
  min-height: 80px;
}

.admin-body .section-form .full-width {
  grid-column: 1 / -1;
}

.admin-body .repeater-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.admin-body .repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-body .repeater-items {
  display: grid;
  gap: 1rem;
}

.admin-body .repeater-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-body .repeater-row label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-body .repeater-row input,
.admin-body .repeater-row textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
}

.admin-body .repeater-row textarea {
  min-height: 60px;
  resize: vertical;
}

.admin-body .repeater-template {
  display: none;
}

.admin-body .section-form .button-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.remove-row {
  justify-self: start;
}

.admin-body .items-manager {
  grid-column: 1 / -1;
}

.admin-body .items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-body .items-header h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

.admin-body .items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-body .item-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.admin-body .item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-body .item-card-header strong {
  color: #fff;
  font-size: 1rem;
}

.admin-body .item-card-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-body .item-card-actions button {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.admin-body .item-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.admin-body .item-card-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.admin-body .item-card-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-body .item-card-form input,
.admin-body .item-card-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
}

.admin-body .item-card-form .form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.admin-body .new-item-form {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.admin-body .new-item-form h4 {
  color: #fff;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.admin-body .current-image {
  margin-bottom: 0.5rem;
}

.admin-body .current-image img {
  max-width: 150px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.admin-tile {
  display: block;
}

.admin-tile:hover {
  border-color: rgba(95, 182, 234, 0.38);
  transform: translateY(-2px);
}

.admin-summary {
  display: grid;
  place-items: center;
  min-width: 120px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(95, 182, 234, 0.08);
  border: 1px solid var(--border);
}

.admin-summary strong {
  font-size: 2rem;
}

.admin-summary span {
  color: var(--muted);
}

.admin-auth {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.admin-auth .admin-card {
  width: min(100% - 2rem, 460px);
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #fff;
  font-weight: 600;
}

.form-grid .button {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-wrapper h2 {
  margin-bottom: 1.5rem;
}

.content-card .compact-form {
  margin-top: 1rem;
}

.content-card .compact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.content-card .compact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
}

.content-card .compact-form input,
.content-card .compact-form textarea,
.content-card .compact-form select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.85rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.content-card .compact-form input:focus,
.content-card .compact-form textarea:focus,
.content-card .compact-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.content-card .compact-form .form-actions {
  margin-top: 0.5rem;
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.compact-form input,
.compact-form textarea,
.compact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
}

.compact-form input:focus,
.compact-form textarea:focus,
.compact-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.compact-form .form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 500px) {
  .compact-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 1.25rem;
  }
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-grid textarea {
  resize: vertical;
  min-height: 120px;
}

.admin-body .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-form {
  display: grid;
  gap: 1rem;
}

.section-editor {
  margin-bottom: 1.5rem;
}

.section-editor-head {
  margin-bottom: 1rem;
}

.admin-body .repeater-field {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.repeater-items {
  display: grid;
  gap: 0.85rem;
}

.repeater-row {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.repeater-template {
  display: none;
}

.message-list {
  display: grid;
  gap: 1rem;
}

.message-item {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.admin-card.wide {
  padding: 1.5rem;
}

.admin-card h3 {
  margin-bottom: 0.5rem;
}

.admin-body .section-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.section-editor {
  margin-bottom: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.section-editor-head {
  margin-bottom: 1.5rem;
}

.section-editor-head h2 {
  margin-bottom: 0.25rem;
}

.admin-body .section-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
}

.admin-body .section-form input,
.admin-body .section-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.95rem;
}

.admin-body .section-form input:focus,
.admin-body .section-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-body .section-form textarea {
  resize: vertical;
  min-height: 80px;
}

.admin-body .section-form .full-width {
  grid-column: 1 / -1;
}

.admin-body .repeater-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.admin-body .repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-body .repeater-items {
  display: grid;
  gap: 1rem;
}

.admin-body .repeater-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-body .repeater-row.full-width {
  grid-template-columns: 1fr;
}

.admin-body .repeater-row label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
}

.admin-body .repeater-row input,
.admin-body .repeater-row textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.9rem;
}

.admin-body .repeater-row textarea {
  min-height: 60px;
  resize: vertical;
}

.admin-body .repeater-template {
  display: none;
}

.admin-body .section-form .button-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}



.code-editor {
  font-family: Consolas, "Courier New", monospace;
  min-height: 520px;
}

.admin-body .message-list {
  display: grid;
  gap: 1rem;
}

.admin-body .message-item {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-body .message-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.admin-body .messages-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-body .messages-table .table-header {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 0.5fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.admin-body .messages-table .table-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 0.5fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
}

.admin-body .messages-table .table-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.admin-body .messages-table .msg-from {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-body .messages-table .msg-from strong {
  color: #fff;
    font-size: 0.95rem;
}

.admin-body .messages-table .msg-from small {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-body .messages-table .msg-subject {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-body .messages-table .msg-subject strong {
  color: #fff;
  font-size: 0.95rem;
}

.admin-body .messages-table .msg-subject p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.admin-body .messages-table .msg-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-body .messages-table .msg-actions {
  display: flex;
  justify-content: flex-end;
}

.link-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 182, 234, 0.38);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.price-tag {
  margin: 0.35rem 0 0.65rem;
}



.dna-bg svg {
    width: 100%;
    height: auto;
}

.dna-left { left: 0; }

.dna-right { right: 0; }

@keyframes dnaScroll {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .footer-grid,
  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .form-grid,
  .admin-body .form-grid,
  .admin-body .section-form,
  .admin-body .repeater-row {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .admin-section-header,
  .footer-bottom,
  .message-meta,
  .site-header-inner,
  .admin-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-summary {
    width: 100%;
    justify-content: center;
  }

  .repeater-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-meta {
    flex-direction: column;
  }
}

/* Repeater Preview Cards */
.admin-body .repeater-preview {
  margin-bottom: 1rem;
}

.admin-body .preview-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.admin-body .preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.admin-body .preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(95, 182, 234, 0.08);
  border: 1px solid rgba(95, 182, 234, 0.2);
}

.admin-body .preview-card strong {
  color: var(--text);
  font-size: 0.9rem;
}

.admin-body .preview-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-body .preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(95, 182, 234, 0.08);
  border: 1px solid rgba(95, 182, 234, 0.2);
}

.admin-body .preview-card strong {
  color: var(--text);
  font-size: 0.9rem;
}

.admin-body .preview-card span {
  color: var(--muted);
  font-size: 0.8rem;
}
