:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a202c;
  background-color: #f7fafc;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.brand {
  margin: 0;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  color: #4a5568;
  letter-spacing: 0.12em;
  margin: 0 0 8px 0;
}
h1 {
  font-size: 32px;
  font-weight: 800;
  color: #173b5c;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 12px 0;
}
.subtitle {
  color: #718096;
  margin: 0;
  font-size: 15px;
}
.pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #173b5c;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  padding: 28px;
  margin-bottom: 24px;
}
.card.discreet {
  background: #fcfdfd;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #173b5c;
  background: #ffffff;
  color: #173b5c;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}
.button:hover:not(:disabled) {
  background: #edf2f7;
}
.button.primary {
  background: #173b5c;
  color: #ffffff;
  border-color: #173b5c;
}
.button.primary:hover:not(:disabled) {
  background: #0f283e;
}
.button.secondary {
  border-color: #cbd5e0;
  color: #4a5568;
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
label {
  display: block;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
  font-size: 14px;
}
input[type="email"], select {
  display: block;
  width: 100%;
  max-width: 480px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  margin-bottom: 16px;
  background: #ffffff;
  transition: border-color 0.15s ease-in-out;
}
input:focus-visible, select:focus-visible {
  outline: 2px solid #173b5c;
  outline-offset: 1px;
}
.oauth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  max-width: 480px;
  color: #a0aec0;
  font-size: 13px;
}
.oauth-separator::before, .oauth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.oauth-separator span {
  padding: 0 10px;
}
.muted {
  color: #718096;
  font-size: 14px;
}
.verified {
  color: #276749;
  font-weight: 600;
}
.hidden {
  display: none !important;
}
.error {
  color: #c53030;
  font-weight: 600;
}
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #a0aec0;
  font-size: 13px;
}
@media (max-width: 640px) {
  .shell {
    padding: 20px 16px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  h1 {
    font-size: 26px;
  }
  .card {
    padding: 20px;
  }
}


/* Calendly-style Booking & Restitution UI */
.booking-section {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}
.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.booking-badge.confirmed {
  background: #def7ec;
  color: #03543f;
  border: 1px solid #84e1bc;
}
.booking-badge.pending {
  background: #fef08a;
  color: #713f12;
  border: 1px solid #fde047;
}

.appointment-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
}
.appointment-card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #1e293b;
}
.appointment-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.appointment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #334155;
}
.appointment-icon {
  font-size: 18px;
}

.meet-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00897b;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 137, 123, 0.2);
  transition: background 0.15s ease;
}
.meet-button:hover {
  background: #00695c;
}

/* Slot Picker (Calendly Style) */
.scheduler-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
.scheduler-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}
.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.date-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 72px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.date-pill:hover:not(:disabled) {
  border-color: #173b5c;
  background: #f1f5f9;
}
.date-pill.selected {
  background: #173b5c;
  border-color: #173b5c;
  color: #ffffff;
}
.date-pill .day-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.date-pill .day-number {
  font-size: 18px;
  font-weight: 800;
}
.date-pill.selected .day-name, .date-pill.selected .day-number {
  color: #ffffff;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.time-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.time-slot:hover {
  border-color: #173b5c;
  background: #f8fafc;
}
.time-slot.selected {
  background: #173b5c;
  color: #ffffff;
  border-color: #173b5c;
}

/* Upgrade Card */
.upgrade-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.upgrade-badge {
  background: #166534;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Documents List */
.doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #ffffff;
}
.doc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 15px;
}
.doc-desc {
  font-size: 13px;
  color: #64748b;
}

/* Admin Dashboard, Tabs & Tables */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-button {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  margin-bottom: -2px;
}
.tab-button:hover {
  color: #173b5c;
}
.tab-button.active {
  color: #173b5c;
  border-bottom-color: #173b5c;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #173b5c;
  margin-bottom: 4px;
}
.stat-card .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 12px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.data-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: #f8fafc;
}
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-tag.success {
  background: #dcfce7;
  color: #15803d;
}
.badge-tag.info {
  background: #e0f2fe;
  color: #0369a1;
}
.badge-tag.warning {
  background: #fef9c3;
  color: #a16207;
}
.badge-tag.danger {
  background: #fee2e2;
  color: #b91c1c;
}
.badge-tag.neutral {
  background: #f1f5f9;
  color: #475569;
}
