.account-page {
  min-height: 100vh;
  background: #080808;
}

.account-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 32px;
}

.hidden {
  display: none !important;
}

.auth-view {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(480px, 100%);
  padding: 32px;
  background: rgba(15, 18, 15, 0.92);
  border: 1px solid rgba(244, 253, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.account-brand b {
  color: var(--green-hi);
}

.brand-ring {
  width: 48px;
  height: 48px;
  display: inline-flex;
  overflow: hidden;
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(120, 185, 60, 0.48);
}

.brand-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mono-label {
  margin: 0 0 10px;
  color: var(--green-hi);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.auth-copy {
  margin: 34px 0 22px;
}

.auth-copy h1,
.profile-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-tab,
.account-primary,
.account-secondary,
.provider-btn,
.cancel-btn {
  min-height: 44px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab,
.account-secondary,
.provider-btn,
.cancel-btn {
  background: rgba(244, 253, 255, 0.04);
  border: 1px solid rgba(244, 253, 255, 0.14);
  color: var(--white);
}

.auth-tab.active {
  background: rgba(120, 185, 60, 0.14);
  border-color: rgba(120, 185, 60, 0.45);
  color: var(--green-hi);
}

.account-form {
  display: grid;
  gap: 16px;
}

.account-primary {
  border: 0;
  background: var(--green);
  color: #080808;
}

.auth-link-btn {
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-hi);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.form-message {
  min-height: 20px;
  margin: 16px 0 0;
  color: #ffb4a8;
  font-size: 14px;
}

.form-message.success {
  color: var(--green-hi);
}

.provider-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.provider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.provider-btn:hover {
  border-color: rgba(120, 185, 60, 0.45);
  color: var(--green-hi);
}

button.provider-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-form {
  margin-top: 16px;
  padding: 24px;
  background: rgba(15, 18, 15, 0.66);
  border: 1px solid rgba(244, 253, 255, 0.08);
  border-radius: 8px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.profile-form input[readonly] {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  cursor: default;
  color: var(--white);
}

.profile-form input[readonly]:focus {
  box-shadow: none;
  border-color: transparent;
}

.profile-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: flex-start;
}

.profile-actions .account-secondary.hidden,
.profile-form-actions.hidden {
  display: none !important;
}

.appointments-title {
  margin: 32px 0 16px;
  font-size: 24px;
}
.profile-view {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-meta {
  margin: 10px 0 0;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  gap: 10px;
}

.account-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
}

.appointments-list {
  display: grid;
  gap: 12px;
}

.appointment-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr auto;
  gap: 18px;
  padding: 18px;
  background: rgba(15, 18, 15, 0.82);
  border: 1px solid rgba(244, 253, 255, 0.1);
  border-radius: 8px;
}

.appointment-time {
  font-family: 'JetBrains Mono', monospace;
  color: var(--green-hi);
}

.appointment-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.appointment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(120, 185, 60, 0.35);
  border-radius: 999px;
  color: var(--green-hi);
  font-size: 12px;
  font-weight: 800;
}

.cancel-btn {
  min-width: 110px;
  padding: 0 12px;
}

.cancel-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.empty-state {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(15, 18, 15, 0.66);
  border: 1px solid rgba(244, 253, 255, 0.08);
  border-radius: 8px;
}

.account-page .modal-content {
  max-width: 720px;
}

.account-page .modal-body {
  padding: 28px 30px;
}

.account-page .picker-section {
  margin: 18px 0;
}

.account-page .calendar-grid .day {
  min-height: 42px;
}

.account-page .time-slots-container {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .account-shell {
    padding: 18px;
  }

  .auth-card {
    padding: 24px;
  }

  .profile-header,
  .profile-actions,
  .appointment-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .account-page .modal-body {
    padding: 22px 18px;
  }
}
