.naghilo-booking-app {
  --nb-navy: #151f2a;
  --nb-navy2: #232f3d;
  --nb-tan: #a3916d;
  --nb-tan2: #cbbfa1;
  --nb-bg: #f4f6f5;
  --nb-border: #dfe3df;
  --nb-text: #1c2530;
  --nb-muted: #69737d;
  direction: rtl;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  color: var(--nb-text);
  padding: 42px 16px;
  background: linear-gradient(180deg, #f7f8f7 0, #eef1f0 100%);
  min-height: 70vh;
}
.naghilo-booking-shell {
  max-width: 1120px;
  margin: auto;
}
.naghilo-booking-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.naghilo-booking-brand strong {
  display: block;
  font-size: 17px;
}
.naghilo-booking-brand small {
  display: block;
  color: var(--nb-muted);
  font-size: 11px;
}
.naghilo-booking-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--nb-navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(21, 31, 42, 0.15);
}
.naghilo-booking-shell > h1 {
  font-size: 30px;
  margin: 0 0 24px;
  font-weight: 900;
}
.nb-booking-card,
.nb-dashboard,
.nb-payment-result {
  background: #fff;
  border: 1px solid var(--nb-border);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(21, 31, 42, 0.07);
  padding: 28px;
}
.nb-booking-intro h2 {
  margin: 4px 0 6px;
  font-size: 24px;
}
.nb-booking-intro p,
.nb-dashboard p {
  color: var(--nb-muted);
  margin: 0;
}
.nb-eyebrow {
  color: var(--nb-tan);
  font-weight: 800;
  font-size: 12px;
}
.nb-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0;
  padding: 13px 16px;
  background: #f7f8f7;
  border-radius: 16px;
  color: var(--nb-muted);
  font-size: 12px;
}
.nb-stepper span {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.nb-stepper span.is-active {
  color: var(--nb-navy);
  font-weight: 800;
}
.nb-stepper b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e3e7e6;
  color: var(--nb-navy);
}
.nb-stepper .is-active b {
  background: var(--nb-navy);
  color: #fff;
}
.nb-stepper i {
  height: 1px;
  background: var(--nb-border);
  flex: 1;
}
.nb-booking-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}
.nb-calendar-panel,
.nb-slots-panel {
  border: 1px solid var(--nb-border);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
}
.nb-calendar-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.nb-calendar-head strong {
  text-align: center;
  font-size: 17px;
}
.nb-calendar-head button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--nb-border);
  background: #fff;
  border-radius: 12px;
  font-size: 25px;
  cursor: pointer;
  color: var(--nb-navy);
}
.nb-weekdays,
.nb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.nb-weekdays {
  margin-bottom: 7px;
}
.nb-weekdays span {
  text-align: center;
  color: var(--nb-muted);
  font-size: 11px;
  font-weight: 800;
}
.nb-day {
  height: 43px;
  border: 1px solid transparent;
  background: #f7f8f7;
  border-radius: 11px;
  cursor: pointer;
  color: var(--nb-text);
  font-family: inherit;
}
.nb-day:hover:not(:disabled) {
  border-color: var(--nb-tan);
  background: #faf8f2;
}
.nb-day.is-selected {
  background: var(--nb-navy);
  color: #fff;
  border-color: var(--nb-navy);
  box-shadow: 0 7px 15px rgba(21, 31, 42, 0.15);
}
.nb-day:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.nb-calendar-note {
  font-size: 11px;
  color: var(--nb-muted);
  margin-top: 16px;
}
.nb-selected-date {
  font-weight: 800;
  font-size: 17px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--nb-border);
}
.nb-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 15px;
  max-height: 310px;
  overflow: auto;
  padding: 2px;
}
.nb-slot {
  border: 1px solid var(--nb-border);
  background: #fff;
  border-radius: 12px;
  padding: 11px 5px;
  font-family: inherit;
  cursor: pointer;
  color: var(--nb-navy);
  font-weight: 700;
}
.nb-slot:hover:not(:disabled),
.nb-slot.is-selected {
  background: var(--nb-navy);
  border-color: var(--nb-navy);
  color: #fff;
}
.nb-slot.is-busy {
  background: #f1f2f1;
  color: #a1a7ab;
  text-decoration: line-through;
}
.nb-slot:disabled {
  cursor: not-allowed;
}
.nb-empty,
.nb-loading {
  padding: 28px 10px;
  text-align: center;
  color: var(--nb-muted);
  font-size: 13px;
}
.nb-booking-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
.nb-price {
  color: var(--nb-muted);
  font-size: 13px;
}
.nb-price strong {
  color: var(--nb-navy);
  font-size: 20px;
}
.nb-primary,
.nb-secondary,
.nb-danger {
  font-family: inherit;
  border: 0;
  border-radius: 13px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nb-primary {
  background: var(--nb-navy);
  color: #fff;
  box-shadow: 0 9px 20px rgba(21, 31, 42, 0.16);
}
.nb-primary:hover {
  background: var(--nb-navy2);
  color: #fff;
}
.nb-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.nb-secondary {
  background: #f1f3f2;
  color: var(--nb-navy);
}
.nb-danger {
  background: #fff0ef;
  color: #a43e38;
}
.nb-message {
  margin-top: 14px;
  min-height: 20px;
  font-size: 13px;
}
.nb-message.is-error {
  color: #a43e38;
}
.nb-message.is-success {
  color: #3c7252;
}
.nb-modal[hidden],
.nb-reschedule-box[hidden] {
  display: none;
}
.nb-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(15, 23, 31, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}
body.nb-modal-open {
  overflow: hidden;
}
.nb-modal-box {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}
.nb-modal-close {
  position: absolute;
  left: 15px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--nb-muted);
  cursor: pointer;
}
.nb-modal-icon {
  width: 44px;
  height: 44px;
  background: var(--nb-navy);
  color: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 12px;
}
.nb-modal-box h3 {
  margin: 0 0 7px;
  font-size: 20px;
}
.nb-modal-box p {
  margin: 0 0 18px;
  color: var(--nb-muted);
  font-size: 13px;
}
.nb-modal-box label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.nb-modal-box input,
.naghilo-booking-app select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--nb-border);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.nb-modal-box input:focus {
  border-color: var(--nb-tan);
  box-shadow: 0 0 0 3px rgba(163, 145, 109, 0.12);
}
.nb-modal-box .nb-primary {
  width: 100%;
  margin-top: 5px;
}
.nb-two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nb-modal-message {
  font-size: 12px;
  color: #a43e38;
  margin-top: 12px;
}
.nb-link-button {
  border: 0;
  background: transparent;
  color: var(--nb-tan);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 9px 4px;
  text-decoration: none;
}
.nb-link-button:hover {
  text-decoration: underline;
}
.nb-auth-step .nb-link-button {
  display: block;
  margin: 3px auto 0;
}
.nb-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.nb-dashboard-head h2,
.nb-dashboard-head h3 {
  margin: 3px 0;
}
.nb-appointments {
  display: grid;
  gap: 10px;
}
.nb-appointment {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--nb-border);
  border-radius: 16px;
  padding: 16px;
}
.nb-ap-date strong,
.nb-ap-date span,
.nb-appointment small {
  display: block;
}
.nb-ap-date strong {
  font-size: 16px;
}
.nb-appointment small {
  font-size: 11px;
  color: var(--nb-muted);
  margin-top: 3px;
}
.nb-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #edf2ee;
}
.nb-status-cancelled,
.nb-status-payment_failed {
  background: #fff0ef;
  color: #a43e38;
}
.nb-status-pending {
  background: #fff7df;
  color: #80631d;
}
.nb-ap-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.nb-reschedule-box {
  margin-top: 25px;
  border-top: 1px solid var(--nb-border);
  padding-top: 25px;
}
.nb-reschedule-box .nb-booking-layout {
  margin-bottom: 16px;
}
.nb-r-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15px;
}
.nb-link-button {
  display: inline-flex;
}
.nb-login-required,
.nb-payment-result {
  text-align: center;
}
.nb-login-required h2,
.nb-payment-result h2 {
  margin: 0 0 10px;
}
.nb-login-required p {
  color: var(--nb-muted);
  margin-bottom: 22px;
}
.nb-payment-result {
  padding: 60px 30px;
}
.nb-payment-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: #eef5ef;
  color: #3e7451;
  font-size: 30px;
  font-weight: 900;
}
.nb-payment-error .nb-payment-icon {
  background: #fff0ef;
  color: #a43e38;
}
.nb-payment-info .nb-payment-icon {
  background: #fff7df;
  color: #8a6b22;
}
.nb-payment-result p {
  color: var(--nb-muted);
}
.nb-payment-result .nb-primary {
  margin-top: 15px;
}
@media (max-width: 800px) {
  .naghilo-booking-app {
    padding: 24px 10px;
  }
  .naghilo-booking-shell > h1 {
    font-size: 24px;
  }
  .nb-booking-card,
  .nb-dashboard,
  .nb-payment-result {
    padding: 18px;
    border-radius: 18px;
  }
  .nb-stepper {
    overflow: auto;
  }
  .nb-stepper span {
    font-size: 10px;
  }
  .nb-booking-layout {
    grid-template-columns: 1fr;
  }
  .nb-slots {
    max-height: none;
  }
  .nb-booking-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nb-booking-actions .nb-primary {
    width: 100%;
  }
  .nb-appointment {
    grid-template-columns: 1fr 1fr;
  }
  .nb-ap-actions {
    grid-column: 1/-1;
  }
  .nb-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .nb-dashboard-head .nb-primary {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .nb-calendar-grid {
    gap: 4px;
  }
  .nb-day {
    height: 39px;
    border-radius: 9px;
  }
  .nb-slots,
  .nb-r-slots {
    grid-template-columns: repeat(2, 1fr);
  }
  .nb-two-fields {
    grid-template-columns: 1fr;
  }
  .nb-appointment {
    grid-template-columns: 1fr;
  }
  .nb-ap-actions .nb-secondary,
  .nb-ap-actions .nb-danger {
    flex: 1;
  }
  .nb-stepper i {
    min-width: 18px;
  }
}

.nb-dashboard-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nb-small-btn {
  padding: 9px 12px;
  font-size: 11px;
}
.nb-text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--nb-muted);
  text-decoration: none;
  font-size: 12px;
}
.nb-profile-page {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
}
.nb-profile-card,
.nb-profile-form,
.nb-receipt {
  background: #fff;
  border: 1px solid var(--nb-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 45px rgba(21, 31, 42, 0.06);
}
.nb-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.nb-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--nb-navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  flex: 0 0 auto;
}
.nb-profile-card h2 {
  margin: 3px 0 7px;
}
.nb-profile-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}
.nb-profile-form input {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--nb-border);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.nb-profile-form .nb-primary {
  margin-left: 8px;
}
.nb-receipt-page {
  max-width: 760px;
  margin: auto;
}
.nb-receipt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.nb-receipt {
  box-shadow: 0 18px 50px rgba(21, 31, 42, 0.08);
}
.nb-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--nb-border);
  padding-bottom: 18px;
}
.nb-receipt-head strong,
.nb-receipt-head span {
  display: block;
}
.nb-receipt-head strong {
  font-size: 22px;
}
.nb-receipt-head span {
  color: var(--nb-muted);
  font-size: 12px;
  margin-top: 4px;
}
.nb-receipt-head > b {
  font-size: 20px;
}
.nb-receipt-status {
  display: inline-flex;
  margin: 18px 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf5ef;
  color: #3c7252;
  font-weight: 800;
  font-size: 12px;
}
.nb-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--nb-border);
  border: 1px solid var(--nb-border);
  border-radius: 14px;
  overflow: hidden;
}
.nb-receipt-grid > div {
  background: #fff;
  padding: 14px;
}
.nb-receipt-grid span,
.nb-receipt-grid strong {
  display: block;
}
.nb-receipt-grid span {
  font-size: 11px;
  color: var(--nb-muted);
  margin-bottom: 5px;
}
.nb-receipt-grid strong {
  font-size: 13px;
}
.nb-receipt-note {
  margin: 18px 0 0;
  color: var(--nb-muted);
  font-size: 11px;
}
.nb-profile-form .nb-secondary {
  margin-top: 8px;
}
@media (max-width: 800px) {
  .nb-profile-page {
    grid-template-columns: 1fr;
  }
  .nb-profile-card {
    padding: 18px;
  }
  .nb-dashboard-head-actions {
    width: 100%;
  }
  .nb-dashboard-head-actions > * {
    flex: 1;
  }
  .nb-appointment {
    padding: 13px;
  }
  .nb-receipt-actions {
    justify-content: stretch;
  }
  .nb-receipt-actions > * {
    flex: 1;
  }
  .nb-receipt {
    padding: 16px;
  }
  .nb-receipt-grid {
    grid-template-columns: 1fr;
  }
  .nb-profile-form .nb-primary,
  .nb-profile-form .nb-secondary {
    width: 100%;
    margin: 5px 0 0;
  }
  .nb-booking-card,
  .nb-dashboard {
    box-shadow: 0 10px 30px rgba(21, 31, 42, 0.06);
  }
}
@media (max-width: 480px) {
  .naghilo-booking-app {
    padding: 15px 7px;
  }
  .naghilo-booking-shell > h1 {
    font-size: 21px;
    margin-bottom: 16px;
  }
  .nb-booking-card,
  .nb-dashboard,
  .nb-payment-result {
    padding: 13px;
    border-radius: 15px;
  }
  .nb-calendar-panel,
  .nb-slots-panel {
    padding: 13px;
    border-radius: 15px;
  }
  .nb-stepper {
    gap: 7px;
    margin: 15px 0;
    padding: 10px;
    scrollbar-width: none;
  }
  .nb-stepper b {
    width: 23px;
    height: 23px;
  }
  .nb-stepper span {
    font-size: 9px;
  }
  .nb-booking-layout {
    gap: 12px;
  }
  .nb-slot {
    padding: 10px 4px;
  }
  .nb-appointment {
    gap: 10px;
  }
  .nb-ap-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .nb-ap-actions .nb-small-btn {
    width: 100%;
  }
  .nb-dashboard-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .nb-dashboard-head-actions > * {
    width: auto;
  }
  .nb-receipt-head strong {
    font-size: 18px;
  }
  .nb-receipt-head > b {
    font-size: 16px;
  }
}
@media print {
  body {
    background: #fff !important;
  }
  .site-header-wrap,
  .site-footer,
  .naghilo-booking-brand,
  .naghilo-booking-shell > h1,
  .nb-receipt-actions {
    display: none !important;
  }
  .naghilo-booking-app {
    padding: 0 !important;
    background: #fff !important;
  }
  .naghilo-booking-shell {
    max-width: none !important;
  }
  .nb-receipt {
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .nb-receipt-grid {
    break-inside: avoid;
  }
  .nb-receipt-page {
    max-width: none !important;
  }
}


/* Temporary test-login notice; remove when OTP is fully enabled. */
.nb-test-otp-notice {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid #e5d7b5;
  border-radius: 13px;
  background: #fbf7ed;
  color: #65532e;
  font-size: 12px;
  line-height: 1.9;
  text-align: right;
}
