/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #005ab6;
  --primary-container: #1672df;
  --on-primary: #ffffff;
  --surface: #f7f9ff;
  --on-surface: #141c25;
  --on-surface-variant: #414753;
  --outline: #727785;
  --outline-variant: #c1c6d5;
  --surface-container: #e6effb;
  --surface-container-low: #edf4ff;
  --surface-container-high: #e0e9f5;
  --surface-variant: #dae3ef;
  --secondary: #475f89;
  --tertiary: #934700;
  --error: #ba1a1a;
  --font-headline: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.mt-6 { margin-top: 1.5rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s ease-out both;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid #f1f5f9;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1536px;
  margin: 0 auto;
  padding: 12px 16px;
}

@media (min-width: 768px) {
  .navbar-inner { padding: 12px 32px; }
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link { display: flex; align-items: center; gap: 8px; }
.brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.05em;
}

.nav-links-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

.nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #64748b;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  background: #f8fafc;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.join-link-desktop {
  display: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  padding: 8px 16px;
}

@media (min-width: 768px) {
  .join-link-desktop { display: inline-block; }
}

.btn-primary-sm {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 6px rgba(0, 90, 182, 0.2);
  transition: all 0.2s;
}

.btn-primary-sm:hover {
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: block;
  padding: 8px;
  color: #475569;
  border-radius: 8px;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid #f1f5f9;
  padding: 8px 16px 16px;
}

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

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s;
}

.mobile-nav-link:hover { background: #f8fafc; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.btn-primary:hover { background: var(--primary-container); }
.btn-primary:active { transform: scale(0.95); }

.btn-white {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: var(--primary);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
}

.btn-white:hover { background: #f8fafc; }
.btn-white:active { transform: scale(0.95); }

.btn-outline-white {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.1); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  transition: all 0.2s;
}

.btn-ghost:hover { background: rgba(0, 90, 182, 0.05); }

.btn-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  height: 36px;
  box-shadow: var(--shadow-md), 0 4px 6px rgba(0, 90, 182, 0.2);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-form:hover { background: #2563EB; }
.btn-form:active { transform: scale(0.98); }
.btn-form:disabled { opacity: 0.5; pointer-events: none; }

/* ===== HERO ===== */
.hero-section {
  padding: 96px 16px 40px;
  background: linear-gradient(to bottom, #eff6ff, #ffffff);
  border-bottom: 1px solid rgba(219, 234, 254, 0.5);
}

@media (min-width: 768px) {
  .hero-section { padding: 96px 32px 40px; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #0f172a;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
}

.hero-subtitle {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 32px;
  max-width: 576px;
}

.hero-search-form {
  background: white;
  padding: 6px;
  border-radius: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 90, 182, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 512px;
  width: 100%;
  border: 1px solid #dbeafe;
}

.search-icon {
  color: #94a3b8;
  margin-left: 12px;
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-size: 0.875rem;
  padding: 10px 0;
  min-width: 0;
}

.hero-search-input::placeholder { color: #94a3b8; }

.hero-search-btn {
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 90, 182, 0.2);
  transition: all 0.2s;
  white-space: nowrap;
}

.hero-search-btn:hover { background: var(--primary-container); }
.hero-search-btn:active { transform: scale(0.95); }

/* ===== SECTIONS ===== */
.section-white {
  padding: 40px 16px;
  background: white;
}

.section-gray {
  padding: 40px 16px;
  background: #f8fafc;
}

.section-default {
  padding: 40px 16px;
}

@media (min-width: 768px) {
  .section-white, .section-gray, .section-default { padding: 40px 32px; }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.section-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.view-all-link:hover { text-decoration: underline; }
.view-all-link svg { transition: transform 0.2s; }
.view-all-link:hover svg { transform: translateX(4px); }

/* ===== SPECIALTIES ===== */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .specialty-grid { grid-template-columns: repeat(6, 1fr); }
}

.specialty-card {
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #eff6ff;
  transition: all 0.3s;
}

.specialty-card:hover {
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.specialty-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.spec-rose { background: #fff1f2; color: #f43f5e; }
.spec-indigo { background: #eef2ff; color: #6366f1; }
.spec-amber { background: #fffbeb; color: #f59e0b; }
.spec-emerald { background: #ecfdf5; color: #10b981; }
.spec-sky { background: #f0f9ff; color: #0ea5e9; }
.spec-violet { background: #f5f3ff; color: #8b5cf6; }

.specialty-card:hover .spec-rose { background: #f43f5e; color: white; }
.specialty-card:hover .spec-indigo { background: #6366f1; color: white; }
.specialty-card:hover .spec-amber { background: #f59e0b; color: white; }
.specialty-card:hover .spec-emerald { background: #10b981; color: white; }
.specialty-card:hover .spec-sky { background: #0ea5e9; color: white; }
.specialty-card:hover .spec-violet { background: #8b5cf6; color: white; }

.specialty-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.75rem;
}

.specialty-sub {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== DOCTOR CARDS ===== */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .doctor-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.doctor-card {
  display: block;
  background: white;
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s;
  border: 1px solid #f1f5f9;
}

.doctor-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.doctor-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.doctor-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.doctor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2px white, var(--shadow-sm);
}

.promoted-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fbbf24;
  color: white;
  padding: 2px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.doctor-info-brief { min-width: 0; }

.doctor-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.doctor-card:hover .doctor-name { color: var(--primary); }

.doctor-spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
}

.doctor-workplace {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doctor-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doctor-exp {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.loading-text {
  text-align: center;
  padding: 48px 0;
  color: #94a3b8;
  font-size: 0.875rem;
  animation: pulse 2s infinite;
}

/* ===== CTA SECTION ===== */
.cta-box {
  background: var(--primary);
  border-radius: 16px;
  padding: 32px;
  color: var(--on-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 48px;
    flex-direction: row;
    align-items: center;
  }
}

.cta-bg-svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 10;
  flex: 1;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .cta-title { font-size: 1.875rem; }
}

.cta-desc {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 448px;
  line-height: 1.6;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-info-card {
  display: none;
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
  .cta-info-card { display: block; }
}

.cta-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cta-info-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.cta-info-title {
  font-weight: 700;
  font-size: 1rem;
}

.cta-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.cta-info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-info-list svg { color: #93c5fd; }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

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

.footer-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: white;
  display: block;
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.7;
}

.footer-heading {
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-links a:hover {
  color: #60a5fa;
  transition: color 0.2s;
}

.footer-bottom {
  max-width: 1280px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.75rem;
  }
}

.footer-bottom a {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(0, 90, 182, 0.5);
}

/* ===== SEARCH PAGE ===== */
.search-page {
  padding-top: 80px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .search-page { flex-direction: row; }
}

.search-sidebar {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .search-sidebar { width: 288px; }
}

.sidebar-sticky {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.filter-clear {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
}

.filter-clear:hover { text-decoration: underline; }

.filter-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.filter-search-wrap {
  position: relative;
}

.filter-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.filter-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: #f8fafc;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.2s;
}

.filter-search-input:focus {
  box-shadow: 0 0 0 2px rgba(0, 90, 182, 0.2);
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 8px;
}

.filter-checkboxes::-webkit-scrollbar { width: 4px; }
.filter-checkboxes::-webkit-scrollbar-track { background: transparent; }
.filter-checkboxes::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  accent-color: var(--primary);
}

.filter-checkbox-label span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
}

.filter-checkbox-label:hover span { color: var(--primary); }
.filter-checkbox-label span.active {
  color: var(--primary);
  font-weight: 700;
}

.filter-select {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.filter-select:focus {
  box-shadow: 0 0 0 2px rgba(0, 90, 182, 0.2);
}

.sidebar-cta {
  display: none;
  background: rgba(0, 90, 182, 0.05);
  border: 1px solid rgba(0, 90, 182, 0.1);
  border-radius: 16px;
  padding: 24px;
}

@media (min-width: 768px) {
  .sidebar-cta { display: block; }
}

.sidebar-cta h4 {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}

.sidebar-cta a:hover { text-decoration: underline; }

/* Search Results */
.search-main { flex: 1; }

.search-results-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .search-results-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.search-results-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.search-results-count {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 4px;
}

.sort-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px 16px;
  gap: 16px;
}

.sort-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
}

.sort-select {
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  outline: none;
  cursor: pointer;
}

/* Search Doctor Cards */
.search-doctor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1280px) {
  .search-doctor-grid { grid-template-columns: repeat(2, 1fr); }
}

.search-doctor-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s;
}

.search-doctor-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.sdc-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .sdc-inner { flex-direction: row; }
}

.sdc-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.sdc-avatar-box {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 0 0 4px white, var(--shadow-lg);
}

.sdc-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sdc-verified {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #10b981;
  color: white;
  padding: 4px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.sdc-content { flex: 1; }

.sdc-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  transition: color 0.2s;
}

.search-doctor-card:hover .sdc-name { color: var(--primary); }

.sdc-spec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
  padding: 4px 12px;
  background: rgba(0, 90, 182, 0.05);
  border-radius: 9999px;
}

.sdc-designation {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 12px;
  font-weight: 500;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sdc-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}

.sdc-detail-item {
  background: #f8fafc;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
}

.sdc-detail-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.sdc-detail-value {
  font-weight: 700;
  color: #374151;
  font-size: 0.75rem;
}

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

.sdc-view-btn {
  flex: 1;
  padding: 14px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.2s;
  box-shadow: 0 8px 16px rgba(0, 90, 182, 0.2);
  display: block;
}

.sdc-view-btn:hover { background: var(--primary-container); }
.sdc-view-btn:active { transform: scale(0.98); }

.sdc-call-btn {
  padding: 14px;
  background: white;
  color: var(--primary);
  border: 1px solid rgba(0, 90, 182, 0.2);
  border-radius: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdc-call-btn:hover { background: rgba(0, 90, 182, 0.05); }

.empty-state {
  grid-column: 1 / -1;
  padding: 96px 16px;
  text-align: center;
  background: #f8fafc;
  border-radius: 24px;
  border: 2px dashed #e2e8f0;
}

.empty-state svg {
  color: #d1d5db;
  margin: 0 auto 16px;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 320px;
  margin: 0 auto;
}

.empty-state button {
  margin-top: 24px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.empty-state button:hover { text-decoration: underline; }

/* ===== DOCTOR PROFILE PAGE ===== */
.profile-page {
  padding-top: 80px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
  padding: 16px;
}

@media (min-width: 768px) {
  .profile-hero { padding: 16px 32px; }
}

@media (min-width: 1024px) {
  .profile-hero {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.profile-image-wrap {
  position: relative;
}

.profile-image-box {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #f1f5f9;
}

.profile-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.profile-image-wrap:hover .profile-image-box img {
  transform: scale(1.05);
}

.profile-exp-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  padding: 28px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 4px solid #f8fafc;
  display: none;
}

@media (min-width: 768px) {
  .profile-exp-badge { display: block; }
}

.profile-exp-number {
  font-family: var(--font-headline);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.profile-exp-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  margin-top: 4px;
}

.profile-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.profile-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  border: 1px solid #dbeafe;
}

.profile-name {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #0f172a;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .profile-name { font-size: 2.25rem; }
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.profile-tag {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.profile-tag-primary {
  background: rgba(0, 90, 182, 0.1);
  color: var(--primary);
}

.profile-tag-gray {
  background: #f1f5f9;
  color: #475569;
}

.profile-designation {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.profile-designation svg { color: #94a3b8; }

.profile-quote {
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 672px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .profile-stats { grid-template-columns: repeat(4, 1fr); }
}

.profile-stat-item {
  padding: 20px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
}

.profile-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.profile-stat-value {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.profile-stat-value-sm { font-size: 0.875rem; }

.profile-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .profile-cta { flex-direction: row; }
}

.profile-call-btn {
  flex: 1;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-xl), 0 8px 16px rgba(0, 90, 182, 0.2);
  transition: all 0.2s;
}

.profile-call-btn:hover { background: var(--primary-container); }
.profile-call-btn:active { transform: scale(0.95); }

.profile-share-btn {
  padding: 12px 32px;
  background: #f1f5f9;
  color: #374151;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
  border: none;
}

.profile-share-btn:hover { background: #e2e8f0; }
.profile-share-btn:active { transform: scale(0.95); }

/* Profile Info Section */
.profile-info-section {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(241, 245, 249, 0.5);
  padding: 24px;
  margin: 0 16px 32px;
  border: 1px solid #f8fafc;
}

@media (min-width: 768px) {
  .profile-info-section { padding: 48px; margin: 0 32px 32px; }
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 1024px) {
  .profile-info-grid { grid-template-columns: 2fr 1fr; }
}

.info-heading {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-heading-bar {
  width: 6px;
  height: 32px;
  background: var(--primary);
  border-radius: 9999px;
}

.chamber-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .chamber-grid { grid-template-columns: repeat(2, 1fr); }
}

.chamber-card {
  padding: 32px;
  border-radius: 32px;
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.chamber-card-primary { background: #f8fafc; }
.chamber-card-blue { background: #eff6ff; border-color: #dbeafe; }

.chamber-card-icon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 16px;
  color: white;
  border-radius: 0 0 0 16px;
}

.chamber-card-icon-primary { background: var(--primary); }
.chamber-card-icon-blue { background: #3b82f6; }

.chamber-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.chamber-card p {
  color: #64748b;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
}

.chamber-card .visiting-hours {
  color: #1d4ed8;
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.chamber-card .location-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chamber-card .phone-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Professional Details */
.prof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .prof-grid { grid-template-columns: repeat(2, 1fr); }
}

.prof-item-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.prof-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.prof-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prof-item-icon-orange { background: #fff7ed; color: #ea580c; }
.prof-item-icon-purple { background: #faf5ff; color: #7c3aed; }

.prof-registration {
  background: #f8fafc;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #f1f5f9;
}

.prof-registration h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.prof-reg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.prof-reg-row:last-child { border-bottom: none; }

.prof-reg-row .label {
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
}

.prof-reg-row .value {
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
}

.prof-reg-row .value-green {
  color: #059669;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Emergency Sidebar */
.emergency-card {
  background: #0f172a;
  color: white;
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.emergency-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: rgba(0, 90, 182, 0.2);
  border-radius: 50%;
  margin-right: -64px;
  margin-top: -64px;
  filter: blur(48px);
}

.emergency-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.emergency-card p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.emergency-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.emergency-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.2s;
}

.emergency-contact:hover .emergency-contact-icon {
  transform: scale(1.1);
}

.emergency-contact-avail {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.emergency-contact-number {
  font-size: 1.25rem;
  font-weight: 700;
}

.emergency-chat-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: white;
  color: #0f172a;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.emergency-chat-btn:hover { background: #f1f5f9; }

/* ===== ABOUT PAGE ===== */
.about-hero-section {
  padding: 96px 16px 48px;
  background: linear-gradient(to bottom, #eff6ff, #ffffff);
  text-align: center;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 90, 182, 0.1);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.about-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #0f172a;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .about-title { font-size: 2.25rem; }
}

.about-desc {
  font-size: 0.875rem;
  color: #475569;
  max-width: 672px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Mission Cards */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
}

.mission-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
}

.mission-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mission-icon-blue { background: #eff6ff; color: var(--primary); }
.mission-icon-green { background: #ecfdf5; color: #10b981; }

.mission-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.mission-card p {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.6;
}

/* How It Works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}

.how-col h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.how-step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  color: white;
}

.how-step-num-blue { background: var(--primary); }
.how-step-num-green { background: #10b981; }

.how-step h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.how-step p {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.stat-card {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
}

.stat-card svg {
  color: var(--primary);
  margin: 0 auto 8px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.stat-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  padding: 20px;
  background: white;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  text-align: center;
}

.contact-card svg {
  color: var(--primary);
  margin: 0 auto 8px;
}

.contact-card .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.contact-card .value {
  font-size: 0.75rem;
  color: #64748b;
}

.developer-section {
  padding-top: 32px;
  border-top: 1px solid #f1f5f9;
  width: 100%;
  text-align: center;
  margin-top: 32px;
}

.developer-section .dev-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.developer-section h4 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.05em;
}

.developer-section .dev-role {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* ===== JOIN PAGE ===== */
.join-page {
  max-width: 672px;
  margin: 0 auto;
  padding: 96px 16px 32px;
}

.join-header {
  text-align: center;
  margin-bottom: 32px;
}

.join-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.join-header p {
  font-size: 0.875rem;
  color: #64748b;
}

/* Progress Steps */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.progress-line {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
  transform: translateY(calc(-50% - 10px));
}

.progress-line-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  background: var(--primary);
  z-index: 0;
  transition: width 0.5s;
  transform: translateY(calc(-50% - 10px));
}

.progress-step {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: white;
  padding: 0 8px;
}

.progress-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  transition: all 0.3s;
}

.progress-step-num.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 6px rgba(0, 90, 182, 0.2);
}

.progress-step-num.inactive {
  background: white;
  color: #94a3b8;
  border: 2px solid #e2e8f0;
}

.progress-step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.progress-step-label.active { color: var(--primary); }
.progress-step-label.inactive { color: #94a3b8; }

/* Form Card */
.form-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .form-card { padding: 32px; }
}

.form-step { display: none; }
.form-step.active { display: block; }

.form-step h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

.form-label .required { color: #ef4444; }

.form-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}

.form-input::placeholder { color: #94a3b8; }

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 90, 182, 0.1);
}

.form-select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 90, 182, 0.1);
}

.upload-area {
  border: 2px dashed rgba(0, 90, 182, 0.3);
  background: rgba(0, 90, 182, 0.05);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.upload-area:hover { background: rgba(0, 90, 182, 0.1); }

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 8px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  margin-top: 20px;
}

.form-footer-end {
  display: flex;
  justify-content: flex-end;
}

.form-info {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.75rem;
  color: #1d4ed8;
  font-weight: 500;
  margin-top: 16px;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 500;
  margin-top: 8px;
}

/* Success State */
.success-page {
  padding-top: 96px;
  padding-bottom: 64px;
  max-width: 512px;
  margin: 0 auto;
  text-align: center;
  padding-left: 16px;
  padding-right: 16px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-page h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.success-page p {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 24px;
  line-height: 1.6;
}

.success-notice {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.75rem;
  color: #92400e;
  font-weight: 500;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: 80px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.login-card {
  width: 100%;
  max-width: 448px;
  padding: 32px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 90, 182, 0.05);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(0, 90, 182, 0.1);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.login-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 8px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.login-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}

.login-input::placeholder { color: #94a3b8; }
.login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 90, 182, 0.1);
}

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 12px;
  border: 1px solid #fecaca;
  font-size: 11px;
  font-weight: 500;
}

.login-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-md), 0 4px 6px rgba(0, 90, 182, 0.2);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.login-submit:hover { background: #2563EB; }
.login-submit:disabled { opacity: 0.5; pointer-events: none; }

.login-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.login-footer a {
  color: var(--primary);
  font-weight: 700;
}

.login-footer a:hover { text-decoration: underline; }
