.nav-links .nav-portal:hover,
.nav-links .nav-portal:focus-visible {
  background: #302e29;
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 22, 20, .18);
  transform: translateY(-1px);
}

.login-preview-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
}
.login-preview-note > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: rgba(226, 173, 49, .16);
  color: #f1ca67;
}
.login-preview-note strong,
.login-preview-note small,
.role-copy strong,
.role-copy small { display: block; }
.login-preview-note small { color: rgba(255, 255, 255, .62); margin-top: 2px; }
.role-login-form { display: grid; gap: 12px; }
.role-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(23, 22, 20, .1);
  border-radius: 18px;
  background: #fffdfa;
  color: var(--ink);
  text-align: right;
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.role-card:hover,
.role-card:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  border-color: rgba(185, 131, 14, .45);
  background: #fff;
  box-shadow: 0 12px 30px rgba(28, 23, 16, .09);
}
.role-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, #25231f, #3a3630);
  color: #efc75f;
}
.role-copy strong { font-size: 1.05rem; }
.role-copy small { color: var(--muted); margin-top: 1px; }
.role-arrow { color: var(--gold2); font-size: 1.25rem; transition: transform .2s; }
.role-card:hover .role-arrow { transform: translateX(-4px); }

/* Consistent dashboard controls, including native date/time fields */
.app-main input:not([type="hidden"]),
.app-main select,
.app-main textarea,
.employee-wrap input:not([type="hidden"]),
.employee-wrap select,
.employee-wrap textarea {
  min-height: 48px;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(23, 22, 20, .12);
  border-radius: 14px;
  background-color: #fffdfa;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.app-main input:not([type="hidden"]):hover,
.app-main select:hover,
.app-main textarea:hover,
.employee-wrap input:not([type="hidden"]):hover,
.employee-wrap select:hover,
.employee-wrap textarea:hover { border-color: rgba(185, 131, 14, .35); }
.app-main input:not([type="hidden"]):focus,
.app-main select:focus,
.app-main textarea:focus,
.employee-wrap input:not([type="hidden"]):focus,
.employee-wrap select:focus,
.employee-wrap textarea:focus {
  border-color: var(--gold);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(226, 173, 49, .13);
}
.app-main input[type="date"],
.app-main input[type="time"],
.app-main input[type="month"],
.app-main input[type="datetime-local"],
.employee-wrap input[type="date"],
.employee-wrap input[type="time"],
.employee-wrap input[type="month"],
.employee-wrap input[type="datetime-local"] {
  min-width: 190px;
  color-scheme: light;
  direction: rtl;
  cursor: pointer;
}
.app-main input::-webkit-calendar-picker-indicator,
.employee-wrap input::-webkit-calendar-picker-indicator {
  width: 20px;
  height: 20px;
  padding: 5px;
  border-radius: 7px;
  background-color: rgba(226, 173, 49, .14);
  cursor: pointer;
}
.app-main select,
.employee-wrap select { cursor: pointer; }
.app-main .toolbar input,
.app-main .toolbar select { min-height: 44px; background-color: #fff; }
.app-main .data-table select { min-width: 145px; min-height: 40px; padding-block: 6px; }
.app-main input[type="checkbox"],
.employee-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 6px;
  accent-color: var(--gold2);
  vertical-align: middle;
  cursor: pointer;
}
@media (max-width: 560px) {
  .app-main input[type="date"],
  .app-main input[type="time"],
  .app-main input[type="month"],
  .app-main input[type="datetime-local"],
  .employee-wrap input[type="date"],
  .employee-wrap input[type="time"],
  .employee-wrap input[type="month"],
  .employee-wrap input[type="datetime-local"] { width: 100%; min-width: 0; }
}

/* Employee dashboard: prevent the dues table from crushing the entry form */
.employee-wrap .grid-2 {
  grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
  align-items: start;
}
.employee-wrap .grid-2 > * { min-width: 0; }
.employee-wrap .field input:not([type="checkbox"]),
.employee-wrap .field select,
.employee-wrap .field textarea {
  width: 100%;
  min-width: 0;
}
.employee-wrap .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
.employee-wrap .data-table { min-width: 520px; }
@media (max-width: 760px) {
  .employee-wrap .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

.reward-banner {
  background: linear-gradient(135deg, #b9830e, #8d6107);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 10px 24px rgba(115, 76, 4, .18);
}

/* Admin featured-service toggle */
.featured-toggle{display:flex!important;align-items:center;gap:14px;margin:0;padding:15px 16px;border:1px solid rgba(23,22,20,.1);border-radius:17px;background:#fffdfa;cursor:pointer;transition:border-color .2s,background-color .2s,box-shadow .2s}.featured-toggle:hover{border-color:rgba(185,131,14,.38);background:#fff}.featured-toggle input{position:absolute;width:1px!important;height:1px!important;min-height:1px!important;margin:-1px;padding:0!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.featured-toggle-control{position:relative;width:52px;height:30px;flex:0 0 52px;border:1px solid rgba(23,22,20,.12);border-radius:999px;background:#ded8ce;transition:background-color .2s,border-color .2s,box-shadow .2s}.featured-toggle-control span{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(23,22,20,.2);transition:transform .22s}.featured-toggle input:checked+.featured-toggle-control{border-color:var(--gold2);background:linear-gradient(135deg,var(--gold),var(--gold2))}.featured-toggle input:checked+.featured-toggle-control span{transform:translateX(-22px)}.featured-toggle input:focus-visible+.featured-toggle-control{box-shadow:0 0 0 4px rgba(226,173,49,.2)}.featured-toggle-copy{min-width:0}.featured-toggle-copy strong,.featured-toggle-copy small{display:block}.featured-toggle-copy strong{font-size:.98rem}.featured-toggle-copy small{margin-top:2px;color:var(--muted);font-weight:500;line-height:1.55}

/* Mobile polish across public pages and dashboards */
.table-wrap { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .site-header { position: sticky; }
  .app-header { position: relative; }
  .app-tabs-wrap { top: 0; }
  .app-tabs { scroll-snap-type: x proximity; padding-inline: 2px; }
  .app-tabs a { min-height: 44px; display: inline-flex; align-items: center; scroll-snap-align: start; }
  .app-main { padding-top: 24px; }
  .dashboard-heading { gap: 14px; margin-bottom: 18px; }
  .dashboard-heading > *,
  .dashboard-heading form,
  .dashboard-heading input:not([type="hidden"]) { width: 100%; }
  .dashboard-heading .inline-actions { width: 100%; }
  .dashboard-heading .inline-actions > *,
  .dashboard-heading .inline-actions form { flex: 1 1 180px; }
  .dashboard-heading .inline-actions button { width: 100%; }
  .toolbar,
  .toolbar form { width: 100%; }
  .toolbar input:not([type="hidden"]),
  .toolbar select { flex: 1 1 160px; }
  .panel-head { align-items: flex-start; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: calc(100dvh - 20px); padding: 20px 16px; border-radius: 22px; }
  .modal .inline-actions,
  .modal .inline-actions .btn,
  .modal .inline-actions .btn-outline { width: 100%; }
  .login-page { display: block; padding: 12px; }
  .login-shell { margin: 0 auto; border-radius: 25px; }
  .role-card { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 11px; padding: 13px; }
  .role-icon { width: 44px; height: 44px; }
  .role-copy small { line-height: 1.55; }
  .client-shell { padding-top: 24px; }
  .client-copy h1 { overflow-wrap: anywhere; }
  .member-card { padding: 20px 16px; border-radius: 26px; }
  .member-card-top { align-items: flex-start; }
  .qr-real { max-width: 100%; }
}
@media (max-width: 480px) {
  .app-user-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .app-user-actions .quiet-btn { width: 100%; padding-inline: 9px; }
  .dashboard-heading h1 { font-size: 1.8rem; }
  .panel-head { flex-wrap: wrap; }
  .stamp-row { grid-template-columns: repeat(3, 1fr); }
  .login-intro,
  .login-form { padding: 24px 18px; }
  .login-intro img { width: 84px; margin-bottom: 22px; }
  .login-intro h1 { font-size: 1.9rem; }
  .role-card { text-align: right; }
  .footer-grid { text-align: center; }
  .featured-toggle { align-items: flex-start; padding: 14px; }
}
