/* ============================================================
   Hotel Rooms – Mi Cuenta (Customer Portal) Styles
   ============================================================ */

/* Paleta alineada con Kuiraweb Auth Shield (kwa-auth.css); respeta --kwa-* si existen en el sitio */
:root {
  --mc-primary:    var(--kwa-primary, var(--hr-primary-500, #978667));
  --mc-accent:     var(--kwa-accent, var(--hr-primary-500, #978667));
  --mc-dark2:      var(--hr-primary-700, #6b5e49);
  --mc-blue:       var(--hr-primary-500, #978667);
  --mc-text:       #1e293b;
  --mc-muted:      #64748b;
}

/* ── Outer wrapper ──────────────────────────────────────────── */
.hr-mc-wrap {
  max-width: 100%;  
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--mc-text);
  font-size: 15px;
  line-height: 1.6;
}

.hr-mc-wrap,
.hr-mc-wrap * {
  box-sizing: border-box;
}

.hr-mc-wrap button,
.hr-mc-wrap input,
.hr-mc-wrap textarea,
.hr-mc-wrap select {
  font: inherit;
}

.hr-mc-wrap button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.hr-mc-wrap a,
.hr-mc-wrap button,
.hr-mc-wrap span,
.hr-mc-wrap strong,
.hr-mc-wrap label,
.hr-mc-wrap i {
  font-family: inherit;
}

/* ════════════════════════════════════════════════════════════
   ACCESS SCREEN (before login)
   ════════════════════════════════════════════════════════════ */
.hr-mc-access {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: calc(100vh - 120px);
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 0 !important;
}

.hr-mc-auth-shell {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: calc(100vh - 120px);
  background: var(--mc-card-bg) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.hr-mc-auth-brand {
  background: #ffffff;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 64px 52px !important;
  text-align: center;
}

.hr-mc-auth-brand-inner {
  width: 100%;
  max-width: 360px;
}

.hr-mc-auth-logo {
  margin-bottom: 22px;
}

.hr-mc-auth-logo img {
  max-width: 230px;
  max-height: 78px;
  width: auto;
  height: auto;
  display: block;
}

.hr-mc-auth-logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: var(--mc-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.hr-mc-auth-brand-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--mc-primary);
  letter-spacing: -0.01em;
}

.hr-mc-auth-brand-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #6b7a99;
}

.hr-mc-auth-divider {
  width: 48px;
  height: 3px;
  margin: 32px auto 36px;
  border-radius: 2px;
  background: var(--mc-primary);
}

.hr-mc-auth-brand-link-copy {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #8899bb;
}

.hr-mc-auth-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 11px 24px;
  border: 2px solid var(--mc-primary) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--mc-primary) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  font-weight: 800;
  transition: background .18s, color .18s, border-color .18s;
}

.hr-mc-auth-outline:hover {
  background: var(--mc-primary) !important;
  color: #fff !important;
}

.hr-mc-auth-form-side {
  background: var(--mc-primary);
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 64px 52px !important;
}

.hr-mc-auth-form-side::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hr-mc-auth-form-side::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hr-mc-access-card {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.hr-mc-access-card h2,
.hr-mc-access-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.hr-mc-access-card .hr-mc-access-sub,
.hr-mc-access-sub {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.5;
}

.hr-mc-access-sub-verify {
  margin-bottom: 18px;
}

.hr-mc-verify-note {
  padding: 0 0 4px;
}

/* WP Login button */
.hr-mc-wrap .hr-mc-btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--mc-dark) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .18s;
  box-shadow: none !important;
}
.hr-mc-wrap .hr-mc-btn-login:hover {
  background: var(--mc-dark2) !important;
  color: #fff !important;
}
.hr-mc-btn-login i {
  font-size: 18px;
  color: var(--mc-accent);
}

/* Divider */
.hr-mc-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--mc-muted);
  font-size: 13px;
}
.hr-mc-divider::before,
.hr-mc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mc-border);
}

/* Input */
.hr-mc-input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.hr-mc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid var(--mc-border);
  border-radius: 6px;
  font-size: 15px;
  color: var(--mc-text);
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  box-shadow: none;
}
.hr-mc-input:focus {
  border-color: var(--mc-primary);
  background: #fff;
  box-shadow: none;
}

/* Buttons */
.hr-mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .18s, opacity .18s;
  line-height: 1;
}
.hr-mc-wrap .hr-mc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 6px !important;
  background: var(--mc-primary) !important;
  color: #fff !important;
  width: 100%;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hr-mc-wrap .hr-mc-btn-primary:hover {
  opacity: 0.92;
  background: var(--mc-primary) !important;
}
.hr-mc-wrap .hr-mc-btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.hr-mc-wrap .hr-mc-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--mc-border) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--mc-text) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hr-mc-wrap .hr-mc-btn-ghost:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: var(--mc-primary) !important;
}

.hr-mc-wrap .hr-mc-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hr-mc-access .hr-mc-auth-field {
  margin-bottom: 20px;
}

.hr-mc-access .hr-mc-auth-field label {
  display: block !important;
  margin: 0 0 8px !important;
  color: rgba(255,255,255,.50) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.hr-mc-access .hr-mc-input {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  padding: 12px 16px;
}

.hr-mc-access .hr-mc-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.hr-mc-access .hr-mc-input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
}

.hr-mc-access .hr-mc-btn-primary {
  margin-top: 10px;
  min-height: 48px;
  background: #fff !important;
  color: var(--mc-primary) !important;
  border-radius: 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.hr-mc-access .hr-mc-btn-primary:hover {
  background: #fff !important;
  color: var(--mc-primary) !important;
  opacity: 0.92;
}

.hr-mc-access .hr-mc-btn-ghost {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.82) !important;
}

.hr-mc-access .hr-mc-btn-ghost:hover {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.28) !important;
  color: #fff !important;
}

.hr-mc-btn-outline {
  background: transparent;
  color: var(--mc-primary);
  border: 1.5px solid var(--mc-primary);
}
.hr-mc-btn-outline:hover {
  background: rgba(28, 52, 100, 0.06);
}

.hr-mc-btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 7px;
}

/* Error / notice */
.hr-mc-error {
  color: #fecaca;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
.hr-mc-error.visible { display: block; }

/* OTP code display */
.hr-mc-otp-hint {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.58);
  margin-bottom: 14px;
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD SHELL
   ════════════════════════════════════════════════════════════ */
.hr-mc-dashboard {
  display: flex;
  gap: 0;
  min-height: 640px;
  background: var(--mc-card-bg);
  border-radius: var(--mc-radius);
  border: 1px solid var(--mc-border);
  box-shadow: var(--mc-shadow);
  overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────── */
.hr-mc-sidebar {
  width: var(--mc-sidebar-w);
  flex-shrink: 0;
  background: var(--mc-primary);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hr-mc-sidebar::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hr-mc-sidebar::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

/* User block at top of sidebar */
.hr-mc-user-block {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hr-mc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .03em;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.hr-mc-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hr-mc-user-name {
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr-mc-user-email {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar nav */
.hr-mc-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}
.hr-mc-sidebar-footer {
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}
.hr-mc-wrap .hr-mc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 20px;
  background: transparent !important;
  border: none !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  position: relative;
}
.hr-mc-sidebar-footer .hr-mc-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 20px;
  background: transparent !important;
  border: none !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  position: relative;
}
.hr-mc-wrap .hr-mc-nav-item span,
.hr-mc-wrap .hr-mc-nav-item i,
.hr-mc-sidebar-footer .hr-mc-nav-item span,
.hr-mc-sidebar-footer .hr-mc-nav-item i {
  color: inherit !important;
}
.hr-mc-nav-item i {
  font-size: 18px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.hr-mc-nav-item > span:not(.hr-mc-nav-badge) {
  flex: 1;
}
.hr-mc-nav-item:hover {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.9) !important;
}
.hr-mc-nav-item.active,
.hr-mc-nav-item.is-active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-left-color: var(--mc-accent) !important;
  font-weight: 600;
}
.hr-mc-nav-badge {
  margin-left: auto;
  background: var(--mc-accent);
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  min-width: 18px;
  height: 18px;
  line-height: 14px;
  text-align: center;
  flex-shrink: 0;
}
.hr-mc-nav-badge.is-unread {
  background: #ef4444;
}

/* Sign out at bottom */
.hr-mc-wrap .hr-mc-signout {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  position: relative;
  z-index: 1;
  transition: all .15s ease;
  border: none !important;
  border-radius: 0 !important;
}
.hr-mc-wrap .hr-mc-signout span {
  color: inherit !important;
}
.hr-mc-wrap .hr-mc-signout:hover {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.9) !important;
}
.hr-mc-wrap .hr-mc-signout i {
  font-size: 18px;
  width: 20px;
  text-align: center;
  color: inherit !important;
}

/* ── Main content area ──────────────────────────────────── */
.hr-mc-main {
  flex: 1;
  min-width: 0;
  background: var(--mc-bg);
  display: flex;
  flex-direction: column;
}

/* Panel */
.hr-mc-panel {
  display: none;
  padding: 28px 28px 40px;
  flex: 1;
}
.hr-mc-panel.active,
.hr-mc-panel.is-active { display: block; }

.hr-mc-panel-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--mc-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hr-mc-panel-title i {
  color: var(--mc-accent);
  font-size: 22px;
}

/* Empty state */
.hr-mc-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--mc-muted);
}
.hr-mc-empty i {
  font-size: 48px;
  color: var(--mc-border);
  display: block;
  margin-bottom: 14px;
}
.hr-mc-empty p {
  margin: 0;
  font-size: 15px;
}

/* ════════════════════════════════════════════════════════════
   BOOKING CARDS
   ════════════════════════════════════════════════════════════ */
.hr-booking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hr-booking-card {
  background: var(--mc-card-bg);
  border-radius: 8px;
  border: 1px solid var(--mc-border);
  overflow: hidden;
  transition: box-shadow .18s;
}
.hr-booking-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

/* Card header (clickable toggle) */
.hr-booking-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}
.hr-booking-thumb,
.hr-booking-thumb-ph {
  width: 152px;
  height: 152px;
  border-radius: 6px;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.hr-booking-thumb-ph i {
  font-size: 34px;
  color: var(--mc-primary);
  opacity: 0.45;
}
.hr-booking-info,
.hr-booking-card-info {
  flex: 1;
  min-width: 0;
}
.hr-booking-name,
.hr-booking-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--mc-dark);
  margin: 0 0 10px;
  line-height: 1.35;
}
.hr-booking-name small {
  color: var(--mc-muted);
  font-size: .88em;
  font-weight: 600;
}
.hr-booking-dates,
.hr-booking-card-meta {
  font-size: 14px;
  color: var(--mc-muted);
  margin: 0;
  line-height: 1.6;
}
.hr-booking-right,
.hr-booking-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.hr-booking-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mc-dark);
}
.hr-booking-arrow,
.hr-booking-card-chevron {
  margin-left: 8px;
  color: var(--mc-muted);
  transition: transform .22s;
  font-size: 20px;
}
.hr-booking-card.open .hr-booking-arrow,
.hr-booking-card.open .hr-booking-card-chevron,
.hr-booking-card.is-open .hr-booking-arrow,
.hr-booking-card.is-open .hr-booking-card-chevron {
  transform: rotate(180deg);
}

/* Card body (collapsible) */
.hr-booking-detail,
.hr-booking-card-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--mc-border);
}
.hr-booking-card.open .hr-booking-detail,
.hr-booking-card.open .hr-booking-card-body,
.hr-booking-card.is-open .hr-booking-detail,
.hr-booking-card.is-open .hr-booking-card-body {
  display: block;
}
.hr-detail-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 22px;
  padding-top: 16px;
}
.hr-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mc-text);
}
.hr-detail-row i {
  color: var(--mc-primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hr-detail-row strong {
  color: var(--mc-dark);
  font-weight: 700;
}
.hr-detail-policy {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 2px;
}
.hr-detail-policy i {
  font-size: 18px;
  flex-shrink: 0;
}
.hr-booking-actions {
  padding-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cancel button inside card */
.hr-cancel-btn,
.hr-mc-cancel-btn {
  margin-top: 0;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--mc-red) !important;
  background: transparent !important;
  color: var(--mc-red) !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.hr-cancel-btn:hover,
.hr-mc-cancel-btn:hover {
  background: var(--mc-red) !important;
  color: #fff !important;
}

/* WhatsApp Re-agendar button */
.hr-booking-actions .hr-whatsapp-btn.hr-rebook-btn {
  margin-top: 0;
  padding: 8px 18px;
  font-size: 13px;
}

/* ════════════════════════════════════════════════════════════
   STATUS BADGES
   ════════════════════════════════════════════════════════════ */
.hr-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.hr-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.hr-status-badge.pending   { background:#fef9c3; color:#92400e; }
.hr-status-badge.confirmed { background:#dcfce7; color:var(--mc-green); }
.hr-status-badge.approved  { background:#dcfce7; color:var(--mc-green); }
.hr-status-badge.rejected  { background:#fee2e2; color:var(--mc-red); }
.hr-status-badge.cancelled { background:#f3f4f6; color:#6b7280; }
.hr-status-badge.processing{ background:#dbeafe; color:var(--mc-blue); }
.hr-status-badge.completed { background:#e0f2fe; color:#0369a1; }
.hr-status-badge.quoted    { background:#ede9fe; color:#6d28d9; }
.hr-status-badge.expired   { background:#f3f4f6; color:#9ca3af; }

/* ════════════════════════════════════════════════════════════
   NOTIFICATIONS PANEL
   ════════════════════════════════════════════════════════════ */
.hr-notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hr-notif-item {
  background: var(--mc-card-bg);
  border-radius: 10px;
  border: 1.5px solid var(--mc-border);
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hr-notif-item.unread,
.hr-notif-item.is-unread {
  border-left: 3px solid var(--mc-primary);
}
.hr-notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hr-notif-icon i {
  font-size: 18px;
  color: var(--mc-primary);
}
.hr-notif-content { flex: 1; min-width: 0; }
.hr-notif-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--mc-dark);
  margin-bottom: 3px;
}
.hr-notif-message {
  font-size: 13px;
  color: var(--mc-muted);
  line-height: 1.5;
}
.hr-notif-date {
  font-size: 11px;
  color: #bbb;
  margin-top: 5px;
}

/* ════════════════════════════════════════════════════════════
   PROFILE PANEL
   ════════════════════════════════════════════════════════════ */
.hr-mc-profile-card {
  background: var(--mc-card-bg);
  border-radius: 8px;
  border: 1px solid var(--mc-border);
  padding: 28px 24px;
  max-width: 520px;
}
.hr-mc-profile-card h3 {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--mc-primary);
}

.hr-mc-profile-card .hr-mc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mc-muted);
  margin-bottom: 8px;
}

.hr-mc-profile-card .hr-mc-label i {
  font-size: 16px;
  color: var(--mc-accent);
  opacity: 0.9;
}

.hr-mc-profile-card .hr-mc-field-group {
  margin-bottom: 20px;
}

.hr-mc-profile-card .hr-mc-input {
  padding-left: 14px;
  border-radius: 6px;
}

.hr-mc-profile-card .hr-mc-btn-primary {
  margin-top: 8px;
}
.hr-mc-form-row {
  margin-bottom: 16px;
}
.hr-mc-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mc-dark);
  margin-bottom: 5px;
}
.hr-mc-form-row .hr-mc-input {
  padding-left: 14px;
}
.hr-mc-form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hr-mc-profile-save-msg {
  font-size: 13px;
  color: var(--mc-green);
  display: none;
}
.hr-mc-profile-save-msg.visible { display: block; }

/* ════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ════════════════════════════════════════════════════════════ */
.hr-mc-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  background: var(--mc-dark);
  color: #fff;
  padding: 13px 20px 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s, transform .22s;
  pointer-events: none;
}
.hr-mc-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hr-mc-toast.success { border-left: 4px solid #22c55e; }
.hr-mc-toast.error   { border-left: 4px solid var(--mc-red); }
.hr-mc-toast i { font-size: 20px; }
.hr-mc-toast.success i { color: #22c55e; }
.hr-mc-toast.error   i { color: var(--mc-red); }

/* ════════════════════════════════════════════════════════════
   LOADING SPINNER
   ════════════════════════════════════════════════════════════ */
.hr-mc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--mc-muted);
  gap: 12px;
  font-size: 14px;
}
.hr-mc-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--mc-border);
  border-top-color: var(--mc-primary);
  border-radius: 50%;
  animation: hr-spin .7s linear infinite;
}
@keyframes hr-spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════
   CANCEL CONFIRM MODAL
   ════════════════════════════════════════════════════════════ */
.hr-mc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hr-mc-modal {
  background: #fff;
  border-radius: var(--mc-radius);
  padding: 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
}
.hr-mc-modal h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--mc-dark);
}
.hr-mc-modal p {
  margin: 0 0 22px;
  color: var(--mc-muted);
  font-size: 14px;
  line-height: 1.6;
}
.hr-mc-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 900px (sidebar → horizontal tab bar)
   ════════════════════════════════════════════════════════════ */
.hr-mc-wrap {
  max-width: 100%;
}

.hr-mc-wrap .hr-mc-dashboard {
  min-height: 640px;
  border-radius: var(--mc-radius);
  border: 1px solid var(--mc-border);
  box-shadow: var(--mc-shadow);
  background: #fff;
}

.hr-mc-wrap .hr-mc-sidebar {
  background: var(--mc-primary);
}

.hr-mc-wrap .hr-mc-user-block {
  padding: 28px 22px 22px;
}

.hr-mc-wrap .hr-mc-avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.hr-mc-wrap .hr-mc-user-name {
  font-size: 1rem;
}

.hr-mc-wrap .hr-mc-user-email {
  font-size: 12px;
}

.hr-mc-wrap .hr-mc-nav {
  padding: 16px 0;
}

.hr-mc-wrap .hr-mc-nav-item {
  min-height: 48px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
}

.hr-mc-wrap .hr-mc-nav-item.is-active,
.hr-mc-wrap .hr-mc-nav-item.active {
  background: rgba(255, 255, 255, 0.1) !important;
}

.hr-mc-wrap .hr-mc-nav-badge {
  background: var(--mc-accent);
  color: #fff;
}

.hr-mc-wrap .hr-mc-main {
  background: var(--mc-bg);
}

.hr-mc-wrap .hr-mc-panel {
  padding: 28px 28px 36px;
}

.hr-mc-wrap .hr-mc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hr-mc-wrap .hr-mc-panel-title {
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mc-primary);
  letter-spacing: -0.02em;
}

.hr-mc-wrap .hr-booking-list {
  gap: 14px;
}

.hr-mc-wrap .hr-booking-card {
  border-radius: 8px;
  border: 1px solid var(--mc-border);
  box-shadow: none;
}

.hr-mc-wrap .hr-booking-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.hr-mc-wrap .hr-booking-card-header {
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

.hr-mc-wrap .hr-booking-thumb,
.hr-mc-wrap .hr-booking-thumb-ph {
  width: 152px;
  height: 120px;
  border-radius: 6px;
  background: #e2e8f0;
}

.hr-mc-wrap .hr-booking-thumb-ph.group {
  background: #e2e8f0;
}

.hr-mc-wrap .hr-booking-thumb-ph i {
  color: var(--mc-primary);
  opacity: 0.5;
}

.hr-mc-wrap .hr-booking-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hr-mc-wrap .hr-booking-name {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.hr-mc-wrap .hr-booking-name small {
  display: inline-block;
  margin-left: 6px;
  color: var(--mc-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hr-mc-wrap .hr-booking-dates {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mc-muted);
}

.hr-mc-wrap .hr-booking-right {
  gap: 10px;
}

.hr-mc-wrap .hr-booking-total {
  font-size: 1.15rem;
  line-height: 1;
}

.hr-mc-wrap .hr-booking-arrow {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--mc-primary);
  margin-left: 4px;
}

.hr-mc-wrap .hr-booking-detail {
  padding: 0 18px 18px;
}

.hr-mc-wrap .hr-booking-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding-top: 18px;
  align-items: start;
}

.hr-mc-wrap .hr-detail-rows {
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 14px 18px;
  padding: 20px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--mc-border);
}

.hr-mc-wrap .hr-detail-row {
  gap: 10px;
}

.hr-mc-wrap .hr-detail-row i {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 52, 100, 0.08);
  color: var(--mc-primary);
  font-size: 16px;
  margin-top: 0;
}

.hr-mc-wrap .hr-detail-policy {
  padding-top: 6px;
}

.hr-mc-wrap .hr-payment-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  border-radius: 8px;
  background: var(--mc-primary);
  color: #fff;
  box-shadow: none;
}

.hr-mc-wrap .hr-payment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hr-mc-wrap .hr-payment-card-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.hr-mc-wrap .hr-payment-card-amount {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hr-mc-wrap .hr-payment-card-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.hr-mc-wrap .hr-payment-meta {
  display: grid;
  gap: 10px;
}

.hr-mc-wrap .hr-payment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hr-mc-wrap .hr-payment-meta-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hr-mc-wrap .hr-payment-meta-value {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.hr-mc-wrap .hr-payment-card-actions {
  padding-top: 4px;
}

.hr-mc-wrap .hr-payment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff;
  color: var(--mc-primary) !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hr-mc-wrap .hr-payment-link:hover {
  opacity: 0.92;
}

.hr-mc-wrap .hr-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hr-mc-wrap .hr-mini-badge.success {
  background: rgba(46, 204, 113, 0.15);
  color: #6fcf97;
}

.hr-mc-wrap .hr-mini-badge.warning {
  background: rgba(245, 158, 11, 0.18);
  color: #f7d38e;
}

.hr-mc-wrap .hr-mini-badge.info {
  background: rgba(96, 165, 250, 0.15);
  color: #c8defe;
}

.hr-mc-wrap .hr-mini-badge.danger {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
}

.hr-mc-wrap .hr-mini-badge.muted {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}

.hr-mc-wrap .hr-booking-actions {
  padding-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hr-mc-wrap .hr-cancel-btn,
.hr-mc-wrap .hr-mc-cancel-btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hr-mc-wrap .hr-status-badge.pending,
.hr-mc-wrap .hr-status-badge.uploaded {
  background: #fef9c3;
  color: #92400e;
}

@media (max-width: 900px) {
  .hr-mc-auth-shell {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hr-mc-auth-brand,
  .hr-mc-auth-form-side {
    padding: 34px 26px;
  }
  .hr-mc-auth-brand {
    border-bottom: 1px solid #ede7dd;
  }
  .hr-mc-auth-brand-inner,
  .hr-mc-access-card {
    max-width: none;
  }
  .hr-mc-dashboard {
    flex-direction: column;
    min-height: unset;
  }
  .hr-mc-sidebar {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hr-mc-user-block {
    display: none;
  }
  .hr-mc-nav {
    display: flex;
    flex-direction: row;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hr-mc-nav::-webkit-scrollbar { display: none; }
  .hr-mc-nav-item {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    font-size: 11px;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    flex-shrink: 0;
    text-align: center;
  }
  .hr-mc-nav-item.active,
  .hr-mc-nav-item.is-active {
    border-bottom-color: #fff !important;
    border-left-color: transparent !important;
  }
  .hr-mc-nav-item i { font-size: 20px; }
  .hr-mc-nav-badge {
    margin-left: 0;
    margin-top: 2px;
  }
  .hr-mc-wrap .hr-mc-signout {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,.08);
    padding: 0 14px;
    justify-content: center;
    flex-direction: column;
    min-width: 84px;
  }
  .hr-mc-wrap .hr-mc-signout {
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hr-mc-panel {
    padding: 20px 16px 32px;
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 520px (mobile)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  .hr-mc-wrap {
    margin: 12px auto;
    padding: 0 8px;
  }
  .hr-mc-access {
    min-height: unset;
  }
  .hr-mc-auth-brand,
  .hr-mc-auth-form-side {
    padding: 26px 18px;
  }
  .hr-mc-auth-shell {
    min-height: unset;
  }
  .hr-mc-auth-brand-title {
    font-size: 1.55rem;
  }
  .hr-mc-access-title {
    font-size: 1.5rem;
  }
  .hr-mc-access-card {
    max-width: none;
  }
  .hr-booking-card-header {
    padding: 13px 14px;
    flex-wrap: wrap;
  }
  .hr-booking-thumb,
  .hr-booking-thumb-ph {
    width: 100%;
    height: 180px;
  }
  .hr-booking-right {
    width: 100%;
    align-items: flex-start;
  }
  .hr-booking-arrow {
    margin-left: auto;
  }
  .hr-booking-detail {
    padding: 0 14px 14px;
  }
  .hr-detail-rows {
    grid-template-columns: 1fr;
  }
  .hr-mc-panel {
    padding: 16px 10px 28px;
  }
  .hr-mc-panel-title {
    font-size: 17px;
  }
  .hr-mc-profile-card {
    padding: 20px 14px;
  }
  .hr-mc-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hr-mc-toast {
    left: 12px;
    right: 12px;
    bottom: 16px;
    max-width: none;
  }
  .hr-mc-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .hr-mc-wrap .hr-booking-detail-grid {
    grid-template-columns: 1fr;
  }

  .hr-mc-wrap .hr-payment-card {
    min-height: unset;
  }
}

@media (max-width: 700px) {
  .hr-mc-wrap .hr-mc-panel-title {
    font-size: 1.55rem;
  }

  .hr-mc-wrap .hr-booking-card-header {
    align-items: flex-start;
  }

  .hr-mc-wrap .hr-booking-thumb,
  .hr-mc-wrap .hr-booking-thumb-ph {
    width: 120px;
    height: 104px;
  }

  .hr-mc-wrap .hr-booking-total {
    font-size: 1.2rem;
  }

  .hr-mc-wrap .hr-detail-rows {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .hr-mc-wrap .hr-booking-actions {
    flex-direction: column;
  }

  .hr-mc-wrap .hr-booking-actions .hr-cancel-btn,
  .hr-mc-wrap .hr-booking-actions .hr-whatsapp-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
