* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #030508;
  --black-soft: #0a0e14;
  --navy-deep: #0b1a30;
  --navy: #0f2347;
  --navy-mid: #162d52;
  --navy-light: #1e4078;
  --navy-glow: #2a5a9e;
  --navy-accent: #3d7fd4;
  --glass-bg: rgba(15, 35, 71, 0.35);
  --glass-bg-light: rgba(30, 64, 120, 0.2);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-bright: rgba(255, 255, 255, 0.18);
  --glass-blur: 16px;
  --text: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(180, 200, 230, 0.65);
  --text-muted: rgba(140, 165, 200, 0.4);
  --separator: rgba(255, 255, 255, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 980px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Static background (no animation = less GPU load) ── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(30, 64, 120, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 85% 85%, rgba(15, 35, 71, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(42, 90, 158, 0.15) 0%, transparent 50%),
    linear-gradient(165deg, var(--black) 0%, var(--navy-deep) 45%, var(--black-soft) 100%);
  pointer-events: none;
}

/* ── Liquid glass — blur hanya di header & modal ── */
.ios-glass {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(20, 45, 85, 0.88) 0%,
    rgba(10, 20, 40, 0.92) 100%
  );
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-bright);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ios-glass-inset {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

/* ── Layout ── */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  min-height: 100dvh;
}

/* ── Top bar ── */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px 20px;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--navy-accent);
  background: linear-gradient(145deg, rgba(30, 64, 120, 0.5), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(61, 127, 212, 0.25);
  box-shadow: 0 0 20px rgba(30, 64, 120, 0.3);
}

.top-bar h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 520px;
  padding: 0 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(61, 127, 212, 0.45);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-wrap:hover {
  border-color: rgba(90, 160, 255, 0.65);
}

.search-wrap:focus-within {
  border-color: rgba(90, 180, 255, 0.85);
  box-shadow:
    0 0 0 2px rgba(90, 180, 255, 0.3),
    0 0 14px rgba(61, 127, 212, 0.25);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #7ec8ff;
  opacity: 1;
  pointer-events: none;
}

.top-actions input[type="search"] {
  padding: 11px 14px 11px 38px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  width: 100%;
  min-width: 160px;
  background: transparent;
  color: #ffffff;
  -webkit-appearance: none;
}

.top-actions input[type="search"]::placeholder {
  color: rgba(200, 220, 255, 0.65);
  font-weight: 500;
}

.top-actions input[type="search"]:focus {
  outline: none;
}

/* ── Buttons ── */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn:active {
  transform: scale(0.96);
}

.btn-ios-primary {
  background: linear-gradient(145deg, var(--navy-light), var(--navy-mid));
  color: #fff;
  border: 1px solid rgba(61, 127, 212, 0.35);
  box-shadow:
    0 4px 20px rgba(15, 35, 71, 0.6),
    0 0 24px rgba(30, 64, 120, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-ios-primary:hover {
  background: linear-gradient(145deg, var(--navy-glow), var(--navy-light));
  box-shadow:
    0 6px 28px rgba(15, 35, 71, 0.7),
    0 0 32px rgba(61, 127, 212, 0.2);
}

.btn-ios-secondary {
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-ios-secondary:hover {
  background: rgba(15, 35, 71, 0.4);
  color: var(--text);
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  contain: layout style;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 52px 24px;
  font-size: 15px;
}

.empty-state.hidden {
  display: none;
}

.login-card {
  border-radius: var(--radius);
  overflow: hidden;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
  background: linear-gradient(160deg, rgba(25, 50, 90, 0.95), rgba(8, 12, 22, 0.98));
  border: 2px solid rgba(61, 127, 212, 0.55);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -3px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-card:hover {
  border-color: rgba(90, 180, 255, 0.9);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(90, 180, 255, 0.4),
    0 0 18px rgba(61, 127, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-card.accent-0,
.login-card.accent-1,
.login-card.accent-2,
.login-card.accent-3,
.login-card.accent-4 {
  --header-bg: linear-gradient(135deg, #1a3a6b, #0f2347);
  --header-color: #ffd166;
  --header-border: rgba(255, 209, 102, 0.45);
}

.card-header {
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--header-color);
  background: var(--header-bg);
  border-bottom: 2px solid var(--header-border);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.card-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(61, 127, 212, 0.35);
  border: 1px solid rgba(90, 160, 255, 0.45);
  color: #a8d4ff;
  text-transform: uppercase;
}

.card-body {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(61, 127, 212, 0.15);
  border-right: 1px solid rgba(61, 127, 212, 0.15);
}

.card-row {
  display: flex;
  min-height: 40px;
  border-bottom: 1px solid rgba(61, 127, 212, 0.25);
}

.card-row:last-child {
  border-bottom: none;
}

.card-label {
  width: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  border-right: 1px solid rgba(61, 127, 212, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.card-value {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  min-height: 40px;
  min-width: 0;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-value.link {
  background: rgba(30, 70, 130, 0.45);
  color: #ffffff;
}

.card-value.username {
  background: rgba(20, 50, 95, 0.5);
  color: #ffffff;
}

.card-value.password {
  background: rgba(15, 40, 80, 0.55);
  color: #ffffff;
}

.card-value.password-row {
  justify-content: space-between;
  gap: 6px;
  white-space: normal;
}

.card-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.password-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  font-size: 13px;
}

.btn-show-pass {
  background: rgba(61, 127, 212, 0.25);
  border: 1px solid rgba(90, 160, 255, 0.4);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 7px;
  flex-shrink: 0;
  color: #ffffff;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-show-pass:hover {
  background: rgba(61, 127, 212, 0.45);
}

.card-value.empty {
  color: rgba(200, 210, 230, 0.6);
  font-weight: 500;
}

.card-value a {
  color: #7ec8ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.card-value a:hover {
  color: #a8dcff;
  text-decoration: underline;
}

/* ── Card actions — distinct button colors ── */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 2px solid rgba(61, 127, 212, 0.35);
}

.card-actions .btn {
  padding: 8px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1;
}

.btn-copy-user {
  background: linear-gradient(145deg, #1565c0, #0d47a1);
  border-color: rgba(100, 180, 255, 0.4);
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.35);
}

.btn-copy-user:hover {
  background: linear-gradient(145deg, #1976d2, #1565c0);
}

.btn-copy-pass {
  background: linear-gradient(145deg, #00695c, #004d40);
  border-color: rgba(80, 220, 180, 0.35);
  box-shadow: 0 2px 8px rgba(0, 105, 92, 0.35);
}

.btn-copy-pass:hover {
  background: linear-gradient(145deg, #00897b, #00695c);
}

.btn-edit {
  background: linear-gradient(145deg, #e65100, #bf360c);
  border-color: rgba(255, 180, 80, 0.4);
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

.btn-edit:hover {
  background: linear-gradient(145deg, #f57c00, #e65100);
}

.btn-delete {
  background: linear-gradient(145deg, #c62828, #8e0000);
  border-color: rgba(255, 120, 120, 0.35);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.35);
}

.btn-delete:hover {
  background: linear-gradient(145deg, #d32f2f, #c62828);
}

/* ── Modal — fade in, centered (bukan slide bawah) ── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal.hidden {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  border: 2px solid rgba(61, 127, 212, 0.55);
  background: linear-gradient(160deg, rgba(25, 50, 90, 0.97), rgba(8, 12, 22, 0.99));
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: modal-fade 0.22s ease;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 22px;
  color: #ffd166;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Form ── */
.form-group {
  border-radius: var(--radius-sm);
  overflow: visible;
  margin-bottom: 22px;
  border: 1px solid rgba(61, 127, 212, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(61, 127, 212, 0.25);
  margin: 0;
  transition: background 0.15s;
}

.form-group label:focus-within {
  background: rgba(30, 64, 120, 0.35);
}

.form-group label.last-row {
  border-bottom: none;
}

.label-text {
  font-size: 13px;
  font-weight: 700;
  width: 82px;
  flex-shrink: 0;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group label.label-select {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.form-group label.label-select .label-text {
  width: auto;
}

.form-group input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  color: #ffffff;
  text-align: right;
  min-width: 0;
}

/* Custom dropdown kategori */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 2px solid rgba(61, 127, 212, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(15, 35, 71, 0.95);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-select-btn:hover,
.custom-select.open .custom-select-btn {
  border-color: rgba(90, 180, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(90, 180, 255, 0.25);
}

.custom-select-chevron {
  color: #7ec8ff;
  font-size: 14px;
  flex-shrink: 0;
}

.custom-select-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 6px;
  border: 2px solid rgba(61, 127, 212, 0.55);
  border-radius: var(--radius-sm);
  background: #0a1628;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  max-height: 200px;
  overflow-y: auto;
}

.custom-select.open .custom-select-list {
  display: block;
}

.custom-select-option {
  padding: 11px 14px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease;
}

.custom-select-option:hover {
  background: rgba(30, 64, 120, 0.65);
}

.custom-select-option.selected {
  background: linear-gradient(145deg, #1e4078, #0f2347);
  color: #ffd166;
  border: 1px solid rgba(90, 160, 255, 0.4);
}

.form-group input::placeholder {
  color: rgba(200, 220, 255, 0.45);
  font-weight: 500;
}

.form-group input:focus {
  outline: none;
}

.password-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.password-field input {
  text-align: right;
  color: #ffffff;
}

.input-masked {
  -webkit-text-security: disc;
  text-security: disc;
}

.btn-toggle-pass {
  background: rgba(61, 127, 212, 0.3);
  border: 1px solid rgba(90, 160, 255, 0.45);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.btn-toggle-pass:hover {
  background: rgba(61, 127, 212, 0.5);
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.modal-actions .btn:active {
  transform: none;
}

.modal-actions .btn-ios-secondary {
  background: linear-gradient(145deg, #64748b, #475569);
  color: #ffffff;
  border: 2px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-actions .btn-ios-secondary:hover,
.modal-actions .btn-ios-secondary:focus-visible {
  background: linear-gradient(145deg, #94a3b8, #64748b);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 3px rgba(148, 163, 184, 0.45),
    0 0 16px rgba(148, 163, 184, 0.35);
}

.modal-actions .btn-ios-primary {
  background: linear-gradient(145deg, #16a34a, #15803d);
  color: #ffffff;
  border: 2px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35);
}

.modal-actions .btn-ios-primary:hover,
.modal-actions .btn-ios-primary:focus-visible {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  border-color: rgba(134, 239, 172, 0.85);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.4),
    0 0 18px rgba(34, 197, 94, 0.4);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 35, 71, 0.96);
  color: var(--text);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  border: 1px solid rgba(61, 127, 212, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  animation: toast-in 2s ease forwards;
}

@keyframes toast-in {
  0% { opacity: 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Category bar ── */
.category-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.category-chip {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.category-chip-group {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(61, 127, 212, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.category-chip-group:hover {
  border-color: rgba(90, 160, 255, 0.65);
  background: rgba(30, 64, 120, 0.4);
}

.category-chip-group.active {
  background: linear-gradient(145deg, #1e4078, #0f2347);
  border-color: rgba(90, 180, 255, 0.75);
  box-shadow: 0 0 12px rgba(61, 127, 212, 0.3);
  color: #ffd166;
}

.category-chip-group .category-chip.active,
.category-chip-group.active .category-chip {
  color: #ffd166;
}

.category-chip-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 100%;
  min-height: 34px;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(255, 100, 100, 0.25);
  background: rgba(198, 40, 40, 0.2);
  color: #ffb3b3;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.category-chip-delete:hover {
  background: rgba(198, 40, 40, 0.45);
  color: #ffffff;
}

.category-filters > .category-chip {
  padding: 8px 16px;
  border: 2px solid rgba(61, 127, 212, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.category-filters > .category-chip:hover {
  border-color: rgba(90, 160, 255, 0.65);
  background: rgba(30, 64, 120, 0.4);
}

.category-filters > .category-chip.active {
  background: linear-gradient(145deg, #1e4078, #0f2347);
  border-color: rgba(90, 180, 255, 0.75);
  box-shadow: 0 0 12px rgba(61, 127, 212, 0.3);
  color: #ffd166;
}

.btn-category-manage {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.12);
  color: #ffd166;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-category-manage:hover {
  border-color: rgba(255, 209, 102, 0.75);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.25);
}

/* ── Category modal ── */
.category-form {
  margin-bottom: 16px;
}

.category-add-row {
  display: flex;
  gap: 10px;
}

.category-add-row input {
  flex: 1;
  padding: 12px 14px;
  border: 2px solid rgba(61, 127, 212, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
}

.category-add-row input::placeholder {
  color: rgba(200, 220, 255, 0.45);
}

.category-add-row input:focus {
  outline: none;
  border-color: rgba(90, 180, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(90, 180, 255, 0.25);
}

.category-add-row .btn {
  padding: 12px 18px;
  white-space: nowrap;
}

.category-list {
  list-style: none;
  border: 1px solid rgba(61, 127, 212, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(61, 127, 212, 0.2);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.category-list-item:last-child {
  border-bottom: none;
}

.btn-delete-cat {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 100, 100, 0.4);
  background: rgba(198, 40, 40, 0.25);
  color: #ffb3b3;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn-delete-cat:hover {
  background: rgba(198, 40, 40, 0.45);
  border-color: rgba(255, 120, 120, 0.6);
}

.category-empty {
  padding: 20px 14px;
  text-align: center;
  color: rgba(200, 220, 255, 0.55);
  font-size: 14px;
}

/* ── Responsive ── */
@media (max-width: 1400px) {
  .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .app {
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .top-bar { padding: 14px 16px; }
  .top-actions { width: 100%; flex: none; }
  .search-wrap { flex: 1; max-width: none; }
  .top-actions input[type="search"] { width: 100%; min-width: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .card-label { width: 72px; font-size: 9px; }
  .card-value { font-size: 13px; }
  .card-actions .btn { font-size: 11px; padding: 9px 8px; }
  .category-bar { flex-direction: column; align-items: stretch; }
  .btn-category-manage { width: 100%; text-align: center; }
}

/* ── Auth page ── */
.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-card {
  padding: 28px 24px 32px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand .brand-icon {
  margin: 0 auto 12px;
}

.auth-brand h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
  background: linear-gradient(145deg, var(--navy-light), var(--navy-mid));
  color: #fff;
  box-shadow: 0 2px 12px rgba(15, 35, 71, 0.5);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form.hidden {
  display: none;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form .label-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.85);
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(61, 127, 212, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(90, 180, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(90, 180, 255, 0.25);
}

.auth-form .password-field {
  justify-content: flex-start;
  width: 100%;
  padding-right: 8px;
  border: 2px solid rgba(61, 127, 212, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
}

.auth-form .password-field:focus-within {
  border-color: rgba(90, 180, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(90, 180, 255, 0.25);
}

.auth-form .password-field input {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 14px;
  box-shadow: none;
}

.auth-form .password-field input:focus {
  border: none;
  box-shadow: none;
}

.auth-error {
  font-size: 13px;
  color: #ff8a80;
  background: rgba(198, 40, 40, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.auth-error.hidden {
  display: none;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
}

.auth-toggle-pass {
  background: rgba(61, 127, 212, 0.25);
  border: 1px solid rgba(90, 160, 255, 0.4);
}

/* ── User badge & logout ── */
.user-badge {
  font-size: 12px;
  font-weight: 600;
  color: #ffd166;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.25);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 100, 100, 0.4);
  background: linear-gradient(145deg, rgba(198, 40, 40, 0.35), rgba(100, 15, 15, 0.45));
  color: #ffb3b3;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-logout:hover {
  background: rgba(198, 40, 40, 0.45);
  box-shadow: 0 0 16px rgba(198, 40, 40, 0.25);
}

.btn-dashboard {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(90, 180, 255, 0.45);
  background: linear-gradient(145deg, rgba(30, 64, 120, 0.55), rgba(8, 16, 32, 0.85));
  color: #c8e4ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(61, 127, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-dashboard svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.btn-dashboard:hover {
  background: linear-gradient(145deg, rgba(42, 90, 158, 0.65), rgba(15, 35, 71, 0.9));
  border-color: rgba(120, 200, 255, 0.65);
  color: #ffffff;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(61, 127, 212, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-panel {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 209, 102, 0.5);
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.18), rgba(120, 80, 10, 0.25));
  color: #ffd166;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(255, 209, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-panel:hover {
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.28), rgba(180, 120, 20, 0.35));
  border-color: rgba(255, 220, 130, 0.7);
  color: #ffe599;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 26px rgba(255, 209, 102, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-panel.hidden {
  display: none;
}

/* ── Control Panel ── */
.panel-app {
  min-height: 100dvh;
}

.panel-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  align-items: start;
}

.panel-sidebar {
  padding: 16px;
  position: sticky;
  top: 12px;
  max-height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.staff-search-wrap {
  position: relative;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.staff-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7ec8ff;
  pointer-events: none;
}

.staff-search-wrap input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 2px solid rgba(61, 127, 212, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}

.staff-search-wrap input::placeholder {
  color: rgba(200, 220, 255, 0.45);
}

.staff-search-wrap input:focus {
  outline: none;
  border-color: rgba(90, 180, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(90, 180, 255, 0.2);
}

.staff-list-wrap {
  flex: 1;
  min-height: 0;
  max-height: calc(100dvh - 280px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin-right: -2px;
  scrollbar-width: thin;
  scrollbar-color: #2a5a9e rgba(0, 0, 0, 0.4);
}

.staff-list-wrap::-webkit-scrollbar {
  width: 7px;
}

.staff-list-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  margin: 4px 0;
}

.staff-list-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4a90e8 0%, #1e4078 50%, #3d7fd4 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 8px rgba(61, 127, 212, 0.35);
}

.staff-list-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5aa0ff 0%, #2a5a9e 50%, #4a90e8 100%);
}

.panel-heading {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd166;
  margin-bottom: 14px;
}

.staff-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.staff-add-form input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid rgba(61, 127, 212, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.staff-add-form input:focus {
  outline: none;
  border-color: rgba(90, 180, 255, 0.85);
}

.staff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-list-item {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.staff-list-item.active {
  border-color: rgba(255, 209, 102, 0.5);
}

.staff-name-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.staff-list-item.active .staff-name-btn,
.staff-name-btn:hover {
  background: rgba(30, 64, 120, 0.45);
}

.staff-name {
  font-size: 14px;
  font-weight: 700;
}

.staff-status {
  font-size: 11px;
  color: rgba(200, 220, 255, 0.55);
  font-weight: 500;
}

.btn-delete-staff {
  width: 36px;
  border: none;
  background: rgba(198, 40, 40, 0.25);
  color: #ffb3b3;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-delete-staff:hover {
  background: rgba(198, 40, 40, 0.45);
}

.staff-empty {
  padding: 16px 8px;
  text-align: center;
  color: rgba(200, 220, 255, 0.5);
  font-size: 13px;
}

.panel-main {
  min-width: 0;
}

.panel-placeholder {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

.staff-detail.hidden {
  display: none;
}

.staff-detail-header {
  padding: 16px 20px;
  margin-bottom: 12px;
}

.staff-detail-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffd166;
  margin-bottom: 4px;
}

.staff-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.card-actions-readonly {
  grid-template-columns: 1fr 1fr;
}

.card-actions-5 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  align-items: stretch;
}

.card-actions-5 .btn-lock-action {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.card-actions-5 .btn-copy-pass {
  grid-column: 1;
  grid-row: 2;
}

.card-actions-5 .btn-delete {
  grid-column: 3;
  grid-row: 2;
}

.login-card-locked {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 209, 102, 0.08);
}

.login-card.is-locked:not(.login-card-locked) {
  border-color: rgba(255, 209, 102, 0.35);
}

.card-header-locked {
  padding: 18px 14px;
  gap: 8px;
}

.lock-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: #ffd166;
}

.lock-badge-inline {
  margin-bottom: 2px;
}

.card-locked-body {
  padding: 20px 16px 22px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 209, 102, 0.2);
}

.card-locked-body p {
  font-size: 13px;
  color: rgba(200, 220, 255, 0.65);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-unlock-card {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 209, 102, 0.5);
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.2), rgba(180, 120, 20, 0.3));
  color: #ffd166;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.15);
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-unlock-card:hover {
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.32), rgba(180, 120, 20, 0.4));
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.28);
}

.btn-lock-action {
  background: linear-gradient(145deg, #5c4d00, #3d3300);
  border-color: rgba(255, 209, 102, 0.4);
  color: #ffd166;
  box-shadow: 0 2px 8px rgba(255, 209, 102, 0.15);
}

.btn-lock-action:hover {
  background: linear-gradient(145deg, #7a6800, #5c4d00);
}

.luxury-modal-sheet--lock {
  border-color: rgba(255, 209, 102, 0.4);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(255, 209, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.luxury-modal-glow--lock {
  background: radial-gradient(ellipse, rgba(255, 209, 102, 0.28) 0%, transparent 70%);
}

.luxury-modal-icon-wrap--lock {
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.28), rgba(180, 120, 20, 0.45));
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.22);
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.lock-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lock-form .label-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.85);
}

.lock-form input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(61, 127, 212, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}

.lock-form input:focus {
  outline: none;
  border-color: rgba(255, 209, 102, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.2);
}

.btn-lock-confirm {
  background: linear-gradient(145deg, #b8860b, #8b6914);
  color: #fff;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 209, 102, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-lock-confirm:hover {
  background: linear-gradient(145deg, #d4a017, #b8860b);
  box-shadow: 0 6px 28px rgba(255, 209, 102, 0.38);
}

.btn-lock-confirm:active {
  transform: scale(0.97);
}

/* ── Luxury confirm modal ── */
.luxury-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.luxury-modal.hidden {
  display: none;
}

.luxury-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: luxuryFadeIn 0.25s ease;
}

.luxury-modal-sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(25, 50, 90, 0.98), rgba(8, 12, 22, 0.99));
  border: 2px solid rgba(255, 100, 100, 0.35);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(198, 40, 40, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: luxuryPopIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  text-align: center;
}

.luxury-modal-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(198, 40, 40, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.luxury-modal-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(198, 40, 40, 0.35), rgba(120, 20, 20, 0.5));
  border: 2px solid rgba(255, 120, 120, 0.4);
  box-shadow: 0 0 24px rgba(198, 40, 40, 0.3);
}

.luxury-modal-icon {
  font-size: 24px;
  line-height: 1;
}

.luxury-modal-sheet h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffd166;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.luxury-modal-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(220, 230, 255, 0.85);
  margin-bottom: 22px;
}

.luxury-modal-text strong {
  color: #ffffff;
  font-weight: 700;
}

.luxury-modal-actions {
  display: flex;
  gap: 10px;
}

.luxury-modal-actions .btn {
  flex: 1;
  padding: 12px 16px;
}

.btn-delete-confirm {
  background: linear-gradient(145deg, #c62828, #8e0000);
  color: #fff;
  border: 1px solid rgba(255, 120, 120, 0.45);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(198, 40, 40, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-delete-confirm:hover {
  background: linear-gradient(145deg, #d32f2f, #c62828);
  box-shadow: 0 6px 28px rgba(198, 40, 40, 0.55);
}

.btn-delete-confirm:active {
  transform: scale(0.97);
}

@keyframes luxuryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes luxuryPopIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.luxury-modal-sheet--warn {
  border-color: rgba(255, 209, 102, 0.4);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(255, 209, 102, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.luxury-modal-glow--warn {
  background: radial-gradient(ellipse, rgba(255, 209, 102, 0.3) 0%, transparent 70%);
}

.luxury-modal-icon-wrap--warn {
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.3), rgba(180, 120, 20, 0.45));
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.25);
}

.btn-warn-confirm {
  background: linear-gradient(145deg, #e65100, #bf360c);
  color: #fff;
  border: 1px solid rgba(255, 180, 80, 0.45);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(230, 81, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-warn-confirm:hover {
  background: linear-gradient(145deg, #f57c00, #e65100);
  box-shadow: 0 6px 28px rgba(230, 81, 0, 0.5);
}

.btn-warn-confirm:active {
  transform: scale(0.97);
}

@media (max-width: 900px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .staff-list-wrap {
    max-height: 360px;
  }

  .user-badge {
    max-width: 120px;
  }
}
