/* ==========================================================================
   Stakd Admin Panel Styles
   ========================================================================== */

/* --- Shared keyframes --- */
@keyframes adminFadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes adminSlideUpDesktop {
  from { opacity: 0; transform: translate(-50%, 24px) scale(0.98); filter: blur(4px) }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0) }
}

@keyframes adminSlideUpDevice {
  from { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(4px) }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) }
}

@keyframes adminSlideUp {
  0% { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(4px) }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) }
}

@keyframes adminCardIn {
  0% { opacity: 0; transform: translateY(24px) scale(.92); filter: blur(4px) }
  60% { opacity: 1; filter: blur(0px) }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px) }
}

@keyframes adminRowIn {
  0% { opacity: 0; transform: translateX(-18px) scale(.95) }
  60% { opacity: 1; transform: translateX(3px) scale(1.01) }
  100% { opacity: 1; transform: translateX(0) scale(1) }
}

@keyframes adminPopIn {
  0% { opacity: 0; transform: scale(.92) translateY(16px) }
  100% { opacity: 1; transform: scale(1) translateY(0) }
}

@keyframes adminShake {
  0%, 100% { transform: translateX(0) }
  15% { transform: translateX(-8px) }
  30% { transform: translateX(7px) }
  45% { transform: translateX(-5px) }
  60% { transform: translateX(4px) }
  75% { transform: translateX(-2px) }
}

@keyframes adminPulse {
  0%, 100% { opacity: 1 }
  50% { opacity: .4 }
}

@keyframes adminSpin {
  to { transform: rotate(360deg) }
}

@keyframes adminDotPop {
  from { transform: scale(0); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}

@keyframes skShimAdmin {
  0% { transform: translateX(-100%) }
  100% { transform: translateX(100%) }
}

@keyframes drawerFadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%) }
  to { transform: translateX(0) }
}

/* --- Skeleton primitives --- */
.adm-sk {
  background: var(--bg2);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

.adm-sk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.07) 50%, transparent 100%);
  animation: skShimAdmin 1.4s linear infinite;
}

html[data-theme="light"] .adm-sk {
  background: var(--bg2);
}

html[data-theme="light"] .adm-sk::after {
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.04) 50%, transparent 100%);
}

.adm-sk-row {
  height: 62px;
  border-radius: var(--r-md);
}

.adm-sk-stat {
  height: 80px;
  border-radius: 14px;
  flex: 1;
}

.adm-sk-text {
  height: 16px;
  border-radius: 8px;
  width: 60%;
}

.adm-sk-text.short { width: 35% }
.adm-sk-text.long { width: 85% }

.adm-sk-btn {
  height: 56px;
  border-radius: var(--r-md);
}

.adm-sk-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- View transitions --- */
.admin-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .2s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.admin-view--out {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .15s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}

.admin-view--in {
  animation: adminViewIn .4s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes adminViewIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Analytics & Generic Admin Classes --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-stat-icon {
  margin-bottom: 4px;
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--t0);
}

.admin-stat-label {
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
}

.admin-filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--bd);
  background: var(--bg1);
  color: var(--t1);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}

.admin-filter-btn:hover {
  background: var(--bg2);
}

.admin-filter-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.admin-alert {
  padding: 16px;
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-alert-warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: var(--yellow, #eab308);
}

.admin-alert-danger {
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.2);
  color: var(--red);
}

.admin-alert p {
  color: var(--t1);
}

.admin-rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.admin-card-danger {
  border-color: rgba(229, 62, 62, 0.3) !important;
}

.admin-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.admin-badge-red {
  background: rgba(229, 62, 62, 0.15);
  color: var(--red);
}

.admin-badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}
.admin-auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg0);
  animation: adminFadeIn .2s ease both;
}

.admin-auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg1);
  border-radius: 20px;
  border: 1px solid var(--bd);
  padding: 32px 24px;
  animation: adminCardIn .6s cubic-bezier(.34, 1.4, .64, 1) both;
}

.admin-auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-auth-logo img {
  border-radius: var(--r-md);
}

.admin-auth-logo h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--t0);
  margin: 0;
}

.admin-auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg0);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 20px;
  position: relative;
}

.admin-tab {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--t1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.admin-tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 92, 92, .25);
}

.admin-tab:not(.active):active {
  background: var(--bg2);
  transform: scale(.97);
  transition: transform 0s;
}

.admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field > span,
.admin-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.admin-field input,
.admin-field select,
.admin-settings-input,
.admin-settings-timeout input {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  background: var(--bg0);
  color: var(--t0);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s cubic-bezier(.34, 1.56, .64, 1), background .2s ease;
  -webkit-tap-highlight-color: transparent;
  color-scheme: dark;
}

html[data-theme="light"] .admin-field input,
html[data-theme="light"] .admin-field select,
html[data-theme="light"] .admin-settings-input,
html[data-theme="light"] .admin-settings-timeout input {
  color-scheme: light;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-settings-input:focus,
.admin-settings-timeout input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
  background: var(--bg1);
}

.admin-field.field-error input,
.admin-field.field-error select {
  border-color: var(--red, #e53e3e);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, .15);
}

.admin-field-err {
  font-size: 12px;
  color: var(--red, #e53e3e);
  font-weight: 500;
  margin-top: -2px;
}

.admin-field select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

.admin-field select option {
  background: var(--bg1);
  color: var(--t0);
}

html[data-theme="dark"] .admin-field select option {
  background: #2a2a2c;
  color: #e5e5e5;
}

html[data-theme="light"] .admin-field select option {
  background: #fff;
  color: #1a1a1a;
}

.admin-slug-preview {
  display: flex;
  align-items: center;
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  background: var(--bg0);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-slug-preview:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
}

.admin-slug-prefix {
  padding: 0 2px 0 16px;
  color: var(--t2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-slug-preview input {
  border: none;
  border-radius: 0;
  padding-left: 0;
  background: transparent;
}

.admin-slug-preview input:focus {
  border: none;
  box-shadow: none;
}

.admin-error {
  padding: 12px 16px;
  background: rgba(255, 80, 80, .1);
  border: 1px solid rgba(255, 80, 80, .2);
  border-radius: var(--r-md);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  animation: adminPopIn .3s cubic-bezier(.22, .9, .36, 1) both;
}

.admin-message {
  padding: 12px 16px;
  background: var(--green-bg);
  border: 1px solid var(--green-bd);
  border-radius: var(--r-md);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  animation: adminPopIn .3s cubic-bezier(.22, .9, .36, 1) both;
}

.admin-submit {
  height: 56px;
  border: none;
  border-radius: var(--r-md);
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  transition: background .15s ease, transform .15s cubic-bezier(.34, 1.56, .64, 1), opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.admin-submit:hover {
  opacity: .9;
}

.admin-submit:active {
  transform: scale(.97);
  opacity: .8;
  transition: transform 0s, opacity 0s;
}

.admin-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.admin-submit.secondary {
  background: var(--bg2);
  color: var(--t0);
  box-shadow: none;
}

.admin-submit.secondary:active {
  background: var(--bg3);
}

/* --- Header and Nav --- */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top));
  background: rgba(37, 37, 38, .78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
}

html[data-theme="light"] .admin-header {
  background: rgba(243, 243, 243, .78);
  border-bottom-color: rgba(0, 0, 0, .1);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-header-left img {
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.admin-company-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--t0);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-slug-badge {
  font-size: 11px;
  color: var(--t2);
  font-family: monospace;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-user-badge {
  font-size: 13px;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-role-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--green-bg);
  color: var(--green);
}

.admin-role-tag.manager {
  background: rgba(100, 149, 237, .12);
  color: #6495ED;
}

.admin-role-tag.cashier {
  background: var(--bg3);
  color: var(--t1);
}

.admin-role-tag.owner {
  background: rgba(248, 81, 73, .12);
  color: #F85149;
}

.admin-icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--t1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.admin-icon-btn:hover {
  background: rgba(120, 120, 128, .12);
  color: var(--t0);
}

.admin-icon-btn:active {
  background: rgba(120, 120, 128, .18);
  color: var(--t0);
  transition: background 0s;
}

.admin-icon-btn i {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
  will-change: transform;
}

.admin-icon-btn:active i {
  transform: rotate(-15deg) scale(.9);
  transition: transform 0s;
}

/* --- Admin Tabs (nav bar) --- */
.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  background: var(--bg1);
  border-bottom: 1px solid var(--bd);
  overflow-x: auto;
}

.admin-tabs .admin-tab {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  min-height: 44px;
  font-size: 14px;
}

.admin-tabs .admin-tab i {
  font-size: 14px;
}

.admin-tabs .admin-tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 92, 92, .25);
}

/* --- Admin Content --- */
.admin-content {
  flex: 1;
  padding: 20px 16px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  animation: adminSlideUp .25s cubic-bezier(.22, .9, .36, 1) both;
}

/* --- Mode selection screen --- */
.admin-mode-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg0);
}

.admin-mode-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: adminCardIn .5s cubic-bezier(.34, 1.4, .64, 1) both;
}

.admin-mode-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.admin-mode-logo img {
  border-radius: var(--r-md);
}

.admin-mode-logo h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--t0);
  margin: 0;
}

.admin-mode-logo p {
  font-size: 14px;
  color: var(--t1);
  margin: 0;
}

.admin-mode-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-mode-btn {
  width: 100%;
  min-height: 72px;
  padding: 18px 20px;
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  background: var(--bg1);
  color: var(--t0);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: border-color .15s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  animation: adminRowIn .45s cubic-bezier(.34, 1.4, .64, 1) both;
}

.admin-mode-btn:nth-child(1) { animation-delay: .02s }
.admin-mode-btn:nth-child(2) { animation-delay: .06s }

.admin-mode-btn:active {
  transform: scale(.97);
  transition: transform 0s;
}

.admin-mode-btn:hover {
  border-color: var(--brand-bd);
}

.admin-mode-btn.primary {
  border-color: var(--brand-bd);
  background: var(--brand-bg);
}

.admin-mode-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--brand);
  flex-shrink: 0;
}

.admin-mode-btn.primary .admin-mode-btn-icon {
  background: var(--brand);
  color: #fff;
}

.admin-mode-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-mode-btn-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--t0);
}

.admin-mode-btn-sub {
  font-size: 12px;
  color: var(--t2);
  font-weight: 500;
}

.admin-mode-signout {
  border: none;
  background: none;
  color: var(--t2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  min-height: 44px;
  border-radius: var(--r-sm);
  transition: color .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.admin-mode-signout:hover { color: var(--t1) }
.admin-mode-signout:active { color: var(--t0) }

/* --- Panel shared --- */
.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-new-drop-btn {
  padding: 8px 14px;
  font-size: 13px;
  height: auto;
  white-space: nowrap;
}

.admin-panel-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--t0);
  margin: 0;
}

.admin-date-input,
.admin-select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  background: var(--bg1);
  color: var(--t0);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  color-scheme: dark;
}

html[data-theme="light"] .admin-date-input,
html[data-theme="light"] .admin-select {
  color-scheme: light;
}

.admin-select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.admin-date-input:focus,
.admin-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
}

/* --- Custom Select & DatePicker --- */
.admin-custom-select,
.admin-custom-datepicker {
  position: relative;
}

.admin-select-trigger,
.admin-datepicker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  background: var(--bg1);
  color: var(--t0);
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
  gap: 8px;
}

.admin-datepicker-trigger {
  justify-content: flex-start;
}

.admin-select-trigger:focus,
.admin-datepicker-trigger:focus,
.admin-select-trigger.open,
.admin-datepicker-trigger.open {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
  background: var(--bg2);
}

.admin-select-dropdown,
.admin-datepicker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  min-width: 100%;
  animation: adminPopIn .35s cubic-bezier(.34, 1.4, .64, 1) both;
}

.admin-select-dropdown {
  display: flex;
  flex-direction: column;
  padding: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.admin-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: transparent;
  border: none;
  color: var(--t0);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
}

.admin-select-option:hover {
  background: var(--bg2);
}

.admin-select-option.selected {
  background: var(--brand-bg);
  color: var(--brand);
  font-weight: 700;
}

/* React DayPicker styling overrides */
.admin-datepicker-dropdown {
  padding: 12px;
}

.rdp {
  --rdp-cell-size: 36px;
  --rdp-accent-color: var(--brand);
  --rdp-background-color: var(--bg2);
  --rdp-accent-color-dark: var(--brand-h);
  --rdp-background-color-dark: var(--bg3);
  --rdp-outline: 2px solid var(--brand);
  --rdp-outline-selected: 2px solid rgba(0, 0, 0, 0.5);
  margin: 0;
  color: var(--t0);
}

.rdp-day_selected, 
.rdp-day_selected:focus-visible, 
.rdp-day_selected:hover {
  background-color: var(--brand);
  color: white;
  font-weight: bold;
}

.rdp-day_today {
  font-weight: bold;
  color: var(--brand);
}

.rdp-button:hover:not([disabled]):not(.rdp-day_selected) {
  background-color: var(--bg2);
}

.rdp-head_cell {
  color: var(--t2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Filter bar */
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-filter-bar .admin-select,
.admin-filter-bar .admin-date-input {
  height: 40px;
  font-size: 13px;
}

/* --- Stats row --- */
.admin-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.admin-stat {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: adminCardIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
}

.admin-stat:nth-child(1) { animation-delay: .02s }
.admin-stat:nth-child(2) { animation-delay: .06s }
.admin-stat:nth-child(3) { animation-delay: .10s }
.admin-stat:nth-child(4) { animation-delay: .14s }

.admin-stat-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--t0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.3px;
}

.admin-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* --- Table --- */
.admin-table-wrap {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: adminCardIn .6s cubic-bezier(.34, 1.4, .64, 1) both;
  animation-delay: .08s;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table tbody tr {
  animation: adminRowIn .45s cubic-bezier(.22, 1, .36, 1) both;
}

.admin-table tbody tr:nth-child(1) { animation-delay: .05s }
.admin-table tbody tr:nth-child(2) { animation-delay: .10s }
.admin-table tbody tr:nth-child(3) { animation-delay: .15s }
.admin-table tbody tr:nth-child(4) { animation-delay: .20s }
.admin-table tbody tr:nth-child(5) { animation-delay: .25s }
.admin-table tbody tr:nth-child(6) { animation-delay: .30s }

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: .6px;
  background: var(--bg2);
  border-bottom: 1px solid var(--bd);
}

.admin-table td {
  padding: 14px 16px;
  color: var(--t0);
  border-bottom: 1px solid var(--bd);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table .admin-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

.admin-table .admin-time {
  color: var(--t2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* --- Btn-sm (touch-friendly) --- */
.admin-btn-sm {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  background: var(--bg2);
  color: var(--t0);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, transform .15s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  min-height: 40px;
}

.admin-btn-sm:hover {
  background: var(--bg3);
}

.admin-btn-sm:active {
  transform: scale(.92);
  background: var(--bg3);
  transition: transform 0s, background 0s;
}

.admin-btn-sm.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* --- Admin Drops and Row Styles --- */
.admin-staff-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  gap: 12px;
  cursor: pointer;
  min-height: 60px;
  transition: border-color .15s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: adminRowIn .45s cubic-bezier(.22, 1, .36, 1) both;
}

.admin-staff-card:nth-child(1) { animation-delay: .02s }
.admin-staff-card:nth-child(2) { animation-delay: .06s }
.admin-staff-card:nth-child(3) { animation-delay: .10s }
.admin-staff-card:nth-child(4) { animation-delay: .14s }
.admin-staff-card:nth-child(5) { animation-delay: .18s }
.admin-staff-card:nth-child(6) { animation-delay: .22s }

.admin-staff-card.inactive {
  opacity: .4;
}

.admin-staff-card:active {
  transform: scale(.98);
  transition: transform 0s;
}

.admin-staff-card:hover {
  border-color: var(--t2);
}

.admin-staff-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-bg);
}

.admin-staff-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-staff-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--t1);
  flex-shrink: 0;
  text-transform: uppercase;
}

.admin-staff-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--t0);
}

.admin-staff-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Modals --- */
.staff-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  animation: adminFadeIn .2s ease;
}

.staff-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 48px);
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  animation: modalBounce .45s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes modalBounce {
  0% { transform: scale(.92) translateY(16px); opacity: 0; filter: blur(2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

.staff-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bd);
  flex-shrink: 0;
}

.staff-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--t0);
}

.staff-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.staff-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

/* --- Permissions toggles --- */
.staff-drawer-perms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-perm-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg0);
  border: 1px solid var(--bd);
  border-radius: var(--r-md);
  cursor: pointer;
  gap: 12px;
  min-height: 52px;
  transition: border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.staff-perm-toggle:active {
  border-color: var(--brand-bd);
}

.staff-perm-toggle > span {
  font-size: 14px;
  font-weight: 600;
  color: var(--t0);
}

.perm-switch {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  border: none;
  background: var(--bg3);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .2s ease;
}

.perm-switch.on {
  background: var(--green);
}

.perm-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform .35s cubic-bezier(.34, 1.4, .64, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.perm-switch.on .perm-switch-knob {
  transform: translateX(20px);
}

/* --- Sub-permissions indent --- */
.staff-perm-sub {
  margin-left: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--bd);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-perm-toggle.disabled {
  opacity: .35;
  pointer-events: none;
}

.admin-staff-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-staff-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--t2);
  padding: 4px 0;
}

.admin-staff-section-title.deactivated {
  color: var(--red);
  opacity: .7;
}

/* --- Drops toolbar --- */
.admin-drops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-drops-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg0);
  border-radius: var(--r-sm);
  padding: 3px;
}

.admin-view-toggle .admin-btn-sm {
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
  height: 36px;
  min-height: 36px;
}

.admin-view-toggle .admin-btn-sm.active {
  background: var(--brand);
  color: #fff;
  border: none;
}

.admin-filter-summary {
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
  padding: 4px 0;
}

/* --- Export button --- */
.admin-export-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  background: var(--bg1);
  color: var(--t1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, color .15s ease, transform .15s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.admin-export-btn:hover {
  background: var(--bg2);
  color: var(--t0);
}

.admin-export-btn:active {
  background: var(--bg3);
  transform: scale(.92);
  transition: background 0s, transform 0s;
}

/* --- Graph container --- */
.admin-graph-card {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 20px;
  animation: adminCardIn .6s cubic-bezier(.34, 1.4, .64, 1) both;
  animation-delay: .06s;
  overflow: hidden;
}

/* Add stagger to chart elements if any */
.admin-graph-card canvas, 
.admin-graph-card .recharts-wrapper {
  animation: adminFadeIn .8s cubic-bezier(.34, 1.4, .64, 1) both;
  animation-delay: .2s;
}

.admin-graph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-graph-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t0);
}

.admin-graph-toggles {
  display: flex;
  gap: 4px;
  background: var(--bg0);
  border-radius: var(--r-sm);
  padding: 3px;
}

.admin-graph-toggle {
  border: none;
  background: transparent;
  color: var(--t2);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.admin-graph-toggle.active {
  background: var(--brand);
  color: #fff;
}

.admin-graph-body {
  position: relative;
  padding: 4px 0;
}

.admin-graph-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.admin-graph-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  color: var(--t2);
  font-size: 13px;
  font-weight: 500;
}

/* --- Stat count-up animation --- */
.admin-stat-value.counting {
  animation: adminPopIn .3s cubic-bezier(.22, .9, .36, 1) both;
}

/* --- Theme toggle in settings --- */
.admin-theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bd);
  background: var(--bg0);
  color: var(--t1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color .2s ease, transform .15s cubic-bezier(.22, .9, .36, 1), background .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.admin-theme-btn.active {
  border-color: var(--brand);
  background: var(--brand-bg);
  color: var(--brand);
}

.admin-theme-btn:active {
  transform: scale(.9);
  transition: transform 0s;
}

/* --- Employee breakdown view --- */
.admin-employee-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-emp-card {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  animation: adminRowIn .4s cubic-bezier(.22, 1, .36, 1) both;
}

.admin-emp-card:nth-child(1) { animation-delay: .02s }
.admin-emp-card:nth-child(2) { animation-delay: .08s }
.admin-emp-card:nth-child(3) { animation-delay: .14s }

.admin-emp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-emp-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--t0);
}

.admin-emp-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.admin-emp-meta {
  font-size: 12px;
  color: var(--t2);
  font-weight: 500;
  margin-top: 3px;
}

.admin-emp-drops {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--bd);
  padding-top: 8px;
}

.admin-emp-drop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
}

/* --- Add form --- */
.admin-add-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  animation: adminCardIn .35s cubic-bezier(.22, 1, .36, 1) both;
}

/* --- Empty / loading states --- */
.admin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  gap: 16px;
  color: var(--t2);
  animation: adminFadeIn .3s ease both;
}

.admin-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--bd);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: adminSpin .7s linear infinite;
}

.admin-loading-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: var(--t2);
  font-size: 14px;
}

.admin-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--t2);
  animation: adminPopIn .35s cubic-bezier(.22, .9, .36, 1) both;
}

.admin-empty-state i {
  font-size: 36px;
  margin-bottom: 14px;
  opacity: .35;
  display: block;
}

.admin-empty-state p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  gap: 16px;
  text-align: center;
  padding: 24px;
  color: var(--t1);
  animation: adminFadeIn .4s ease both;
}

.admin-empty h2 {
  color: var(--t0);
  margin: 0;
}

.admin-empty p {
  margin: 0 0 8px;
}

/* --- PIN Pad --- */
.pin-pad-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg0);
}

.pin-pad-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.admin-pin-container {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: adminCardIn .6s cubic-bezier(.34, 1.4, .64, 1) both;
}

.pin-pad-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.pin-pad-header img {
  border-radius: 12px;
  width: 48px;
  height: 48px;
}

.pin-pad-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pin-pad-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--t0);
  margin: 0;
  line-height: 1.2;
}

.pin-pad-header .admin-slug-badge {
  font-size: 13px;
  color: var(--t2);
  display: block;
}

.pin-pad-prompt {
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  margin: 0 0 16px 4px;
  text-align: left;
  width: 100%;
}

/* --- PIN dots --- */
.pin-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 28px;
  padding: 4px 0;
  margin-bottom: 24px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--t0);
  animation: dotPop .15s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes dotPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.pin-dots.shake {
  animation: pinShake .4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes pinShake {
  10%, 90% { transform: translateX(-4px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

/* --- Search Bar --- */
.admin-search-bar {
  position: relative;
  width: 100%;
}

.admin-search-bar i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t2);
  pointer-events: none;
}

/* --- PIN grid --- */
.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.pin-key {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  font-size: 28px;
  font-weight: 700;
  color: var(--t0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease, transform .15s cubic-bezier(.34, 1.56, .64, 1), box-shadow .12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  animation: adminPopIn .4s cubic-bezier(.34, 1.4, .64, 1) both;
}

.pin-key:nth-child(1) { animation-delay: .02s }
.pin-key:nth-child(2) { animation-delay: .04s }
.pin-key:nth-child(3) { animation-delay: .06s }
.pin-key:nth-child(4) { animation-delay: .08s }
.pin-key:nth-child(5) { animation-delay: .10s }
.pin-key:nth-child(6) { animation-delay: .12s }
.pin-key:nth-child(7) { animation-delay: .14s }
.pin-key:nth-child(8) { animation-delay: .16s }
.pin-key:nth-child(9) { animation-delay: .18s }
.pin-key:nth-child(10) { animation-delay: .20s }
.pin-key:nth-child(11) { animation-delay: .22s }
.pin-key:nth-child(12) { animation-delay: .24s }

.pin-key:active {
  background: var(--bg3);
  transform: scale(.9);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .15);
  transition: transform 0s, background 0s, box-shadow 0s;
}

.pin-key:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.pin-key-action {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
}

.pin-submit {
  width: 100%;
  height: 56px;
  margin-top: 24px;
}

/* --- Staff selection list (PIN pad step 1) --- */
.pin-staff-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pin-staff-list.scrollable {
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar for pin staff list */
.pin-staff-list.scrollable::-webkit-scrollbar {
  width: 6px;
}
.pin-staff-list.scrollable::-webkit-scrollbar-track {
  background: transparent;
}
.pin-staff-list.scrollable::-webkit-scrollbar-thumb {
  background: var(--bg3);
  border-radius: 4px;
}

.pin-staff-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  min-height: 72px;
  transition: border-color .15s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  animation: adminRowIn .45s cubic-bezier(.34, 1.4, .64, 1) both;
}

.pin-staff-btn:nth-child(1) { animation-delay: .02s }
.pin-staff-btn:nth-child(2) { animation-delay: .06s }
.pin-staff-btn:nth-child(3) { animation-delay: .10s }
.pin-staff-btn:nth-child(4) { animation-delay: .14s }
.pin-staff-btn:nth-child(5) { animation-delay: .18s }
.pin-staff-btn:nth-child(6) { animation-delay: .22s }

.pin-staff-btn:active {
  transform: scale(.97);
  transition: transform 0s;
}

.pin-staff-btn:hover {
  border-color: var(--brand-bd);
}

.pin-staff-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--t0);
}

.pin-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin-bottom: 24px;
  margin-left: -16px;
  border-radius: var(--r-sm);
}

.pin-back-btn:hover {
  color: var(--t0);
  background: var(--bg1);
}

.pin-back-btn:active {
  transform: scale(0.95);
  transition: transform 0s;
}

/* --- Kiosk banner (shown above counter when cashier is PIN'd in) --- */
.kiosk-active {
  --kiosk-h: 36px;
}

.kiosk-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: calc(var(--kiosk-h) + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  animation: adminSlideDown .3s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes adminSlideDown {
  from { transform: translateY(-100%) }
  to { transform: translateY(0) }
}

.kiosk-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kiosk-banner-name {
  font-weight: 800;
  font-size: 13px;
}

.kiosk-banner-timer {
  font-variant-numeric: tabular-nums;
  opacity: .85;
  font-size: 12px;
  font-weight: 700;
}

.kiosk-banner-timer.low {
  opacity: 1;
  animation: adminPulse 1s ease infinite;
}

.kiosk-banner-btn {
  border: none;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  transition: background .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.kiosk-banner-btn:active {
  background: rgba(255, 255, 255, .35);
  transition: background 0s;
}

/* Offset fixed elements when kiosk banner is present */
.kiosk-active .gh-header {
  top: var(--kiosk-h);
}

.kiosk-active .main-content {
  padding-top: calc(58px + env(safe-area-inset-top) + 14px + var(--kiosk-h));
}

/* --- Owner mode accent --- */
.admin-shell.owner-mode .admin-header {
  border-bottom-color: var(--brand);
  border-bottom-width: 2px;
}

/* --- Settings panel --- */
.admin-settings-card {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  overflow: hidden;
  animation: adminCardIn .4s cubic-bezier(.22, 1, .36, 1) both;
}

.admin-settings-row {
  padding: 16px 18px;
  border-bottom: 1px solid var(--bd);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-settings-row:last-child {
  border-bottom: none;
}

.admin-settings-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--t2);
}

.admin-settings-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}

.admin-settings-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--t0);
}

.admin-settings-value.mono {
  font-family: monospace;
  font-size: 14px;
  color: var(--t1);
}

.admin-settings-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-settings-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  background: var(--bg0);
  color: var(--t0);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-settings-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-bg);
}

/* --- Responsive: small screens --- */
@media (max-width: 480px) {
  .admin-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .admin-user-badge {
    font-size: 12px;
  }
}

/* --- Desktop / Horizontal optimization --- */
@media (min-width: 768px) {
  .admin-auth-card {
    max-width: 440px;
    padding: 40px 32px;
  }

  .admin-content {
    max-width: 900px;
    padding: 24px 32px;
  }

  .admin-stat {
    padding: 20px;
  }

  .admin-stat-value {
    font-size: 22px;
  }

  .admin-staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
  }

  .admin-table th,
  .admin-table td {
    padding: 14px 20px;
  }

  .pin-pad-card {
    max-width: 440px;
    width: 100%;
  }

  .pin-key {
    height: 80px;
    font-size: 28px;
    border-radius: 18px;
  }

  .pin-staff-list {
    max-width: 100%;
  }

  .kiosk-banner {
    font-size: 14px;
  }

  .admin-mode-card {
    max-width: 420px;
  }
}

/* Desktop: counter app layout improvements */
@media (min-width: 768px) {
  .main-content {
    max-width: 600px;
  }

  .gh-header {
    padding-left: max(16px, calc((100% - 600px) / 2));
    padding-right: max(16px, calc((100% - 600px) / 2));
  }

  .sticky-footer {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
    border-left: 1px solid var(--bd);
    border-right: 1px solid var(--bd);
  }

  .sticky-footer.keyboard-up {
    transform: translateX(-50%) translateY(calc(100% + env(safe-area-inset-bottom, 0px)));
  }

  .sticky-footer.footer-entering {
    animation: footerSlideUpDesktop .5s cubic-bezier(.34, 1.3, .64, 1) both;
  }
}

@keyframes footerSlideUpDesktop {
  0% {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) translateY(-3%);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Wide desktop: larger layout */
@media (min-width: 1200px) {
  .admin-content {
    max-width: 1080px;
  }

  .admin-staff-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .main-content {
    max-width: 640px;
  }

  .sticky-footer {
    max-width: 640px;
  }

  .gh-header {
    padding-left: max(16px, calc((100% - 640px) / 2));
    padding-right: max(16px, calc((100% - 640px) / 2));
  }
}

/* ====================================================================
   NEW FEATURE STYLES
   ==================================================================== */

/* --- Date range preset buttons --- */
.admin-range-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.admin-range-btn {
  padding: 6px 14px;
  border: 1px solid var(--bd);
  border-radius: var(--r-full);
  background: var(--bg1);
  color: var(--t1);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.admin-range-btn.active {
  border-color: var(--brand);
  background: var(--brand-bg);
  color: var(--brand);
}

.admin-range-btn:active {
  transform: scale(.95);
  transition: transform 0s;
}

/* --- Date separator in filter bar --- */
.admin-date-sep {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  align-self: center;
  padding: 0 2px;
}

/* --- Variance colors --- */
.admin-variance {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.admin-variance.over {
  color: var(--green, #22c55e);
}

.admin-variance.short {
  color: var(--red, #ef4444);
}

.variance-over {
  color: var(--green, #22c55e);
  font-weight: 600;
}

.variance-short {
  color: var(--red, #ef4444);
  font-weight: 600;
}

/* Stat card variance highlight */
.admin-stat.stat-over {
  border-color: rgba(34, 197, 94, .3);
}

.admin-stat.stat-over .admin-stat-value {
  color: var(--green, #22c55e);
}

.admin-stat.stat-short {
  border-color: rgba(239, 68, 68, .3);
}

.admin-stat.stat-short .admin-stat-value {
  color: var(--red, #ef4444);
}

/* --- Delete drop confirm (inline) --- */
.admin-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.admin-delete-btn {
  opacity: .4;
  transition: opacity .15s ease;
}

.admin-delete-btn:hover {
  opacity: 1;
  color: var(--red, #ef4444);
}

.admin-delete-confirm {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t1);
  animation: adminFadeIn .15s ease both;
}

.admin-btn-danger {
  color: #fff !important;
  background: var(--red, #ef4444) !important;
  border-color: var(--red, #ef4444) !important;
}

/* --- Note row (expandable in table) --- */
.admin-table tbody tr.has-note {
  cursor: pointer;
}

.admin-note-row td {
  padding: 0 !important;
  border-top: none !important;
}

.admin-note-content {
  padding: 8px 16px 12px;
  font-size: 13px;
  color: var(--t1);
  background: var(--bg0);
  border-top: 1px dashed var(--bd);
  animation: adminFadeIn .2s ease both;
}

.admin-note-content i {
  color: var(--t2);
  margin-right: 6px;
}

/* --- Forgot password link --- */
.admin-forgot-link {
  border: none;
  background: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  margin-top: -6px;
  transition: opacity .15s ease;
}

.admin-forgot-link:hover {
  text-decoration: underline;
}

.admin-forgot-link:disabled {
  opacity: .5;
  cursor: default;
  text-decoration: none;
}

/* --- Better PIN feedback (error state) --- */
.pin-dots.shake .pin-dot {
  background: var(--red, #ef4444);
}

@keyframes adminShakeDots {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.pin-dots.shake {
  animation: adminShakeDots .4s ease;
}

/* --- Offline queue badge --- */
.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: rgba(245, 158, 11, .15);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  animation: adminPulse 2s ease infinite;
}

/* --- Settings timeout input --- */
.admin-settings-timeout {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-settings-timeout input {
  width: 70px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  background: var(--bg0);
  color: var(--t0);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.admin-settings-timeout span {
  font-size: 13px;
  color: var(--t2);
  font-weight: 500;
}

/* ====================================================================
   LANDING PAGE
   ==================================================================== */

.landing-page {
  min-height: 100dvh;
  background: var(--bg0);
  color: var(--t0);
  overflow-x: hidden;
}

/* Hero */
.landing-hero {
  padding: 80px 24px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 92, 92, .08) 0%, transparent 60%),
    var(--bg0);
  overflow: hidden;
}

.landing-hero-content {
  max-width: 720px;
  margin: 0 auto 60px;
  animation: adminCardIn .6s cubic-bezier(.22, 1, .36, 1) both;
}

.landing-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-bg);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 99px;
  margin-bottom: 24px;
  border: 1px solid var(--brand-bd);
}

.landing-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
  color: var(--t0);
  background: linear-gradient(180deg, var(--t0) 0%, var(--t1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-tagline {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--t1);
  margin: 0 auto 40px;
  font-weight: 500;
  max-width: 600px;
}

.landing-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-calc-link {
  font-size: 14px;
  color: var(--t2);
  margin-top: 16px;
}

.landing-calc-link a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-calc-link a:hover {
  opacity: 0.85;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.landing-btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.landing-btn.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 92, 92, .3);
}

.landing-btn.primary:active {
  transform: scale(.97);
  transition: transform 0s;
}

.landing-btn.secondary {
  background: var(--bg1);
  color: var(--t0);
  border-color: var(--bd);
}

.landing-btn.secondary:hover {
  border-color: var(--brand-bd);
  background: var(--bg2);
}

.landing-btn.secondary:active {
  transform: scale(.97);
  transition: transform 0s;
}

/* Mockups Layout */
.landing-mockups {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 500px;
  margin: 0 auto;
  perspective: 1000px;
}

.mockup-desktop, .mockup-tablet, .mockup-mobile {
  position: absolute;
  background: var(--bg1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.mockup-desktop {
  width: 760px;
  height: 480px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 16px;
  border: 1px solid var(--bd);
  animation: adminSlideUpDesktop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.mockup-header {
  height: 40px;
  background: var(--bg2);
  border-bottom: 1px solid var(--bd);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bd);
}
.mockup-dot:nth-child(1) { background: #ff5f56; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27c93f; }

.mockup-tablet {
  width: 460px;
  height: 340px;
  right: calc(50% - 460px);
  bottom: 20px;
  z-index: 2;
  border-radius: 16px;
  border: 8px solid var(--bg3);
  animation: adminSlideUpDevice 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

.mockup-mobile {
  width: 260px;
  height: 520px;
  left: calc(50% - 420px);
  bottom: -40px;
  z-index: 3;
  border-radius: 32px;
  border: 8px solid var(--bg3);
  animation: adminSlideUpDevice 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.5s;
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: var(--bg0);
  position: relative;
  overflow: hidden;
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 2;
}

.mockup-tablet .mockup-screen img {
  object-fit: cover;
  object-position: top left;
  background: var(--bg0);
}

.mockup-desktop .mockup-screen img {
  object-fit: cover;
  object-position: top center;
  background: var(--bg0);
}

/* Fallback skeletons */
.mockup-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg0);
  padding: 16px;
}

.mockup-desktop .mockup-fallback {
  display: flex;
  gap: 16px;
}
.mf-sidebar {
  width: 120px;
  height: 100%;
}
.mf-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mf-row {
  height: 60px;
}

.mockup-tablet .mockup-fallback {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mf-header {
  height: 40px;
}
.mockup-tablet .mf-card {
  height: 120px;
}

.mockup-mobile .mockup-fallback {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mf-footer {
  height: 50px;
  margin-top: auto;
}

.mf-sidebar, .mf-row, .mf-header, .mf-card, .mf-footer {
  background: var(--bg2);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.mf-sidebar::after, .mf-row::after, .mf-header::after, .mf-card::after, .mf-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.07) 50%, transparent 100%);
  animation: skShimAdmin 1.4s linear infinite;
}

html[data-theme="light"] .mf-sidebar::after,
html[data-theme="light"] .mf-row::after,
html[data-theme="light"] .mf-header::after,
html[data-theme="light"] .mf-card::after,
html[data-theme="light"] .mf-footer::after {
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.04) 50%, transparent 100%);
}
@media (max-width: 900px) {
  .mockup-desktop { width: 600px; height: 380px; }
  .mockup-tablet { right: 0; bottom: -20px; }
  .mockup-mobile { left: 10px; bottom: 0; }
}

@media (max-width: 600px) {
  .landing-mockups { height: 420px; }
  .mockup-desktop { width: 100%; left: 0; transform: none; border-radius: 12px 12px 0 0; border-bottom: none; animation: adminSlideUpDevice 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .mockup-tablet { display: none; }
  .mockup-mobile { left: 50%; transform: translateX(-50%); bottom: -40px; animation: adminSlideUpDesktop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
}

/* Sections */
.landing-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.landing-section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -.5px;
  color: var(--t0);
}

.landing-section-header p {
  font-size: 16px;
  color: var(--t1);
  margin: 0;
  line-height: 1.5;
}

/* Features */
.landing-features {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
}

.landing-feature-card {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  animation: adminRowIn .5s cubic-bezier(.22, 1, .36, 1) both;
}

.landing-feature-card:nth-child(1) { animation-delay: .05s }
.landing-feature-card:nth-child(2) { animation-delay: .1s }
.landing-feature-card:nth-child(3) { animation-delay: .15s }
.landing-feature-card:nth-child(4) { animation-delay: .2s }
.landing-feature-card:nth-child(5) { animation-delay: .25s }
.landing-feature-card:nth-child(6) { animation-delay: .3s }

.landing-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--brand-bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.landing-feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--t0);
}

.landing-feature-card p {
  font-size: 14px;
  color: var(--t1);
  margin: 0;
  line-height: 1.6;
}

/* How it works */
.landing-how {
  padding: 40px 24px 80px;
  max-width: 600px;
  margin: 0 auto;
}

.landing-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.landing-steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--bd) 0%, var(--bd) 50%, transparent 50%, transparent 100%);
  background-size: 2px 12px;
  z-index: 0;
}

.landing-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.landing-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px var(--bg0); /* Hide line behind number */
}

.landing-step-content {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 24px;
  flex: 1;
  transition: transform .2s ease, border-color .2s ease;
}

.landing-step-content:hover {
  border-color: var(--brand-bd);
  transform: translateX(4px);
}

.landing-step h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--t0);
}

.landing-step p {
  font-size: 14px;
  color: var(--t1);
  margin: 0;
  line-height: 1.6;
}

/* Pricing */
.landing-pricing {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.landing-pricing-card {
  background: var(--bg1);
  border: 1px solid var(--bd);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  animation: adminRowIn .5s cubic-bezier(.22, 1, .36, 1) both;
  position: relative;
  overflow: hidden;
}

.landing-pricing-card.primary {
  border: 2px solid var(--brand);
  transform: scale(1.02);
  z-index: 1;
}

.landing-pricing-header {
  border-bottom: 1px solid var(--bd);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.landing-pricing-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--bg2);
  color: var(--t1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.landing-pricing-card.primary .landing-pricing-icon {
  background: var(--brand-bg);
  color: var(--brand);
}

.landing-pricing-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--t0);
}

.landing-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.landing-pricing-price .amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--t0);
}

.landing-pricing-price .period {
  font-size: 14px;
  color: var(--t2);
  font-weight: 500;
}

.landing-pricing-subtitle {
  font-size: 14px;
  color: var(--t1);
  margin: 0;
  font-weight: 600;
}

.landing-pricing-body {
  flex: 1;
}

.landing-pricing-desc {
  font-size: 14px;
  color: var(--t0);
  margin: 0 0 16px;
}

.landing-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--t1);
  line-height: 1.5;
}

.landing-pricing-features li i {
  color: var(--brand);
  font-size: 12px;
  margin-top: 4px;
}

.landing-pricing-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-pricing-for {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
  padding: 12px;
  background: var(--bg2);
  border-radius: var(--r-md);
}

.landing-pricing-footer .landing-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .landing-pricing-card.primary {
    transform: none;
  }
}

/* Bottom CTA */
.landing-bottom-cta {
  padding: 80px 24px;
  background: var(--bg1);
  border-top: 1px solid var(--bd);
}

.landing-bottom-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.landing-bottom-inner h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -.5px;
}

.landing-bottom-inner p {
  font-size: 16px;
  color: var(--t1);
  margin: 0 0 32px;
  line-height: 1.5;
}

/* Footer */
.landing-footer {
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bd);
  max-width: 1000px;
  margin: 0 auto;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: var(--t0);
}

.landing-footer-brand img {
  border-radius: 4px;
}

.landing-footer-copy {
  font-size: 13px;
  color: var(--t2);
}

@media (max-width: 600px) {
  .landing-footer {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Audit Log --- */
.audit-log-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audit-log-entry {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg1);
  transition: background .15s;
}

.audit-log-entry:hover {
  background: var(--bg2, var(--bg1));
}

.audit-log-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bd);
  color: var(--t2);
  font-size: 13px;
}

.audit-log-body {
  flex: 1;
  min-width: 0;
}

.audit-log-main {
  font-size: 13px;
  color: var(--t1);
  line-height: 1.4;
}

.audit-log-main strong {
  color: var(--t0, var(--t1));
  font-weight: 600;
}

.audit-log-target {
  color: var(--t2);
}

.audit-log-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
}

.audit-log-change {
  font-size: 11px;
  color: var(--t2);
  background: var(--bd);
  padding: 1px 6px;
  border-radius: 4px;
}

.audit-log-time {
  font-size: 11px;
  color: var(--t2);
  margin-top: 2px;
}

/* --- Save Drop Note textarea --- */
.save-drop-note {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: var(--bg1);
  color: var(--t1);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 8px;
  outline: none;
  transition: border-color .15s;
}

.save-drop-note:focus {
  border-color: var(--brand);
}

.save-drop-note::placeholder {
  color: var(--t2);
  opacity: .6;
}

/* --- Danger Zone --- */
.admin-danger-zone {
  margin-top: 24px;
  border: 1px solid var(--red, #e53e3e);
  border-radius: 12px;
  padding: 16px;
}

.admin-danger-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--red, #e53e3e);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-btn-danger-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--red, #e53e3e);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}

.admin-btn-danger-full:hover {
  opacity: .9;
}

.admin-btn-danger-full:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.admin-danger-confirm p {
  font-size: 13px;
  color: var(--t1);
  margin: 0 0 8px;
  line-height: 1.5;
}

.admin-danger-confirm strong {
  color: var(--red, #e53e3e);
}
