/* ============================================================
   PREMIUM UI — SaaS-grade visual polish (no layout changes)
   ============================================================ */

/* ── 1. GLOBAL ─────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { color: #fff; background: rgba(99,102,241,.55); }

/* ── 2. SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,.16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,.3); }
* { scrollbar-width: thin; scrollbar-color: rgba(99,102,241,.16) transparent; }

/* ── 3. DEPTH SYSTEM — cards / containers ──────────────────── */
.toolbar, .panel, .stat-card, .revenue-card, .month-card,
.search-hero, .detail-hero, .detail-card, .month-detail, .auth-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.04);
  box-shadow:
    0 1px 2px rgba(0,0,0,.03),
    0 4px 14px rgba(99,102,241,.05),
    0 12px 36px rgba(99,102,241,.035);
  transition:
    box-shadow .32s cubic-bezier(.4,0,.2,1),
    transform .32s cubic-bezier(.4,0,.2,1);
}

.stat-card:hover, .revenue-card:hover, .month-card:hover,
.search-card:hover, .detail-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 6px 16px rgba(99,102,241,.08),
    0 20px 52px rgba(99,102,241,.1);
}

.search-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.04);
  transition: box-shadow .32s cubic-bezier(.4,0,.2,1), transform .32s cubic-bezier(.4,0,.2,1);
}

.modal { border-radius: 16px; }
.monthly-table { border-radius: 12px; }

/* ── 4. GLASSMORPHISM (controlled) ─────────────────────────── */
.stat-card, .revenue-card, .month-card, .detail-card, .search-card,
.auth-card, .search-hero {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── 5. BUTTONS ────────────────────────────────────────────── */
.btn {
  border-radius: 10px;
  transition:
    transform .18s cubic-bezier(.4,0,.2,1),
    box-shadow .18s cubic-bezier(.4,0,.2,1),
    filter .18s ease, border-color .18s ease,
    background-color .18s ease, opacity .18s ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 4px 16px rgba(99,102,241,.13);
}
.btn:active:not(:disabled) {
  transform: scale(.96);
  box-shadow: none;
  filter: brightness(.97);
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #6366f1);
  background-size: 200% 200%;
  border-color: rgba(99,102,241,.2);
  box-shadow: 0 2px 10px rgba(99,102,241,.26);
}
.btn-primary:hover:not(:disabled) {
  background-position: 100% 0;
  box-shadow: 0 6px 22px rgba(99,102,241,.36);
}
.btn-danger { box-shadow: 0 2px 10px rgba(225,29,72,.18); }
.btn-danger:hover:not(:disabled) { box-shadow: 0 6px 22px rgba(225,29,72,.3); }

.icon-btn {
  border-radius: 10px;
  transition: border-color .18s ease, transform .18s ease,
    background-color .18s ease, box-shadow .18s ease;
}
.icon-btn:hover { box-shadow: 0 2px 10px rgba(99,102,241,.12); }

.table-action, .page-btn {
  border-radius: 8px;
  transition: all .18s cubic-bezier(.4,0,.2,1);
}

/* ── 6. TABLE — floating card rows ─────────────────────────── */
.data-table { border-spacing: 0 5px !important; }
.data-table td { border-bottom: none; }
.data-table tbody tr {
  transition:
    background-color .22s cubic-bezier(.4,0,.2,1),
    box-shadow .22s cubic-bezier(.4,0,.2,1);
}
.data-table tbody tr td:first-child { border-radius: 10px 0 0 10px; }
.data-table tbody tr td:last-child  { border-radius: 0 10px 10px 0; }
.data-table tbody tr:hover {
  background: rgba(99,102,241,.04);
  box-shadow: 0 2px 12px rgba(99,102,241,.07);
}
th {
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 2px solid rgba(99,102,241,.07) !important;
}

/* ── 7. INPUTS — glow focus ────────────────────────────────── */
input, select, textarea {
  border-radius: 10px;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 0 0 2px rgba(99,102,241,.4), 0 0 18px rgba(99,102,241,.06);
}

/* ── 8. NAV ITEMS ──────────────────────────────────────────── */
.nav-item {
  border-radius: 10px;
  transition: background-color .2s ease, color .2s ease,
    transform .15s ease, box-shadow .2s ease;
}
.nav-item.is-active {
  background: rgba(99,102,241,.18);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.1), 0 0 14px rgba(99,102,241,.07);
}
.nav-item:hover { background: rgba(99,102,241,.12); }
.nav-icon { background: rgba(99,102,241,.14); color: #a5b4fc; }

/* ── 9. BADGES ─────────────────────────────────────────────── */
.badge { font-size: .74rem; letter-spacing: .02em; transition: transform .18s ease; }

/* ── 10. TOAST ─────────────────────────────────────────────── */
.toast { border-radius: 12px; backdrop-filter: blur(10px); }

/* ── 11. ANIMATIONS — fade-in + stagger ────────────────────── */
@keyframes enhance-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.view.is-active .stat-card,
.view.is-active .revenue-card,
.view.is-active .month-card,
.view.is-active .toolbar,
.view.is-active .panel,
.view.is-active .search-hero,
.view.is-active .detail-hero,
.view.is-active .detail-card {
  animation: enhance-fade-in .35s cubic-bezier(.4,0,.2,1) both;
}
.view.is-active .stat-card:nth-child(2),
.view.is-active .revenue-card:nth-child(2) { animation-delay: .04s; }
.view.is-active .stat-card:nth-child(3),
.view.is-active .revenue-card:nth-child(3) { animation-delay: .08s; }
.view.is-active .stat-card:nth-child(4) { animation-delay: .12s; }
.view.is-active .stat-card:nth-child(5) { animation-delay: .16s; }

@keyframes row-fade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.data-table tbody tr { animation: row-fade .28s cubic-bezier(.4,0,.2,1) both; }
.data-table tbody tr:nth-child(1) { animation-delay: .02s; }
.data-table tbody tr:nth-child(2) { animation-delay: .04s; }
.data-table tbody tr:nth-child(3) { animation-delay: .06s; }
.data-table tbody tr:nth-child(4) { animation-delay: .08s; }
.data-table tbody tr:nth-child(5) { animation-delay: .10s; }
.data-table tbody tr:nth-child(n+6) { animation-delay: .12s; }

/* ── 12. SKELETON SHIMMER ──────────────────────────────────── */
@keyframes shimmer {
  to { background-position: -200% 0; }
}
.skeleton-line {
  background: linear-gradient(90deg, rgba(99,102,241,.04) 25%, rgba(99,102,241,.1) 50%, rgba(99,102,241,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

/* ── 13. PROGRESS BAR ──────────────────────────────────────── */
.progress-track span { box-shadow: 0 0 10px rgba(99,102,241,.28); }

/* ── 14. TOPBAR ────────────────────────────────────────────── */
.topbar {
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom-color: rgba(99,102,241,.06) !important;
}

/* ── 15. SIDEBAR ───────────────────────────────────────────── */
.sidebar { box-shadow: 4px 0 30px rgba(15,23,42,.2); }
.brand-mark { box-shadow: 0 2px 12px rgba(99,102,241,.28); transition: box-shadow .3s ease; }
.brand-kicker { color: #a5b4fc; }
.mini-stat strong { color: #a5b4fc; }

/* ── 16. AVATAR ────────────────────────────────────────────── */
.avatar {
  box-shadow: 0 2px 10px rgba(99,102,241,.2);
  transition: box-shadow .3s ease, transform .3s ease;
}
.avatar:hover { box-shadow: 0 4px 18px rgba(99,102,241,.35); }

/* ── 17. USER CHIP ─────────────────────────────────────────── */
.user-chip { border-radius: 10px; transition: border-color .2s ease, background-color .2s ease; }

/* ── 18. MODAL ─────────────────────────────────────────────── */
.modal-overlay { transition: opacity .25s cubic-bezier(.4,0,.2,1); }
.modal {
  box-shadow: 0 24px 80px rgba(0,0,0,.16), 0 0 0 1px rgba(99,102,241,.07);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

/* ── 19. ACCENT GRADIENTS ──────────────────────────────────── */
.revenue-card.is-primary { background: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #6366f1); }
.stat-card::before { background: linear-gradient(180deg, #6366f1, #8b5cf6); }
.stat-card.accent-blue::before  { background: linear-gradient(180deg, #3b82f6, #6366f1); }
.stat-card.accent-green::before { background: linear-gradient(180deg, #10b981, #34d399); }
.stat-card.accent-amber::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.stat-card.accent-rose::before  { background: linear-gradient(180deg, #f43f5e, #fb7185); }

/* ── 20. THEME TOGGLE ──────────────────────────────────────── */
#theme-toggle-btn { position: relative; overflow: hidden; }
#theme-toggle-btn i { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease; }

/* ── 21. MOBILE TOUCH ──────────────────────────────────────── */
@media (hover: none) {
  .btn:active:not(:disabled),
  .nav-item:active,
  .table-action:active,
  .page-btn:active:not(:disabled),
  .icon-btn:active { transform: scale(.95); }
}

/* ============================================================
   DARK MODE — body.dark
   ============================================================ */
body.dark {
  --bg: #0f0f1a; --bg-soft: #141428;
  --ink: #e4e4e7; --ink-soft: #a1a1aa; --muted: #71717a;
  --panel: rgba(20,20,35,.9); --panel-strong: #1a1a2e;
  --line: rgba(255,255,255,.05); --line-strong: rgba(255,255,255,.1);
  --shadow: 0 18px 45px rgba(0,0,0,.35);
  --shadow-soft: 0 10px 24px rgba(0,0,0,.28);
  color: var(--ink);
  background: radial-gradient(ellipse at 20% 0%, rgba(99,102,241,.06) 0%, transparent 60%),
    linear-gradient(145deg, #0f0f1a 0%, #141428 40%, #1a1a2e 100%);
}

body.dark input, body.dark select, body.dark textarea {
  color: var(--ink); background: rgba(15,15,26,.8); border-color: rgba(255,255,255,.07);
}
body.dark input:focus, body.dark select:focus, body.dark textarea:focus {
  background: rgba(15,15,26,.95); border-color: rgba(99,102,241,.5);
  box-shadow: 0 0 0 2px rgba(99,102,241,.4), 0 0 22px rgba(99,102,241,.08);
}
body.dark input::placeholder, body.dark textarea::placeholder { color: var(--muted); }

body.dark .topbar { background: rgba(15,15,26,.88); border-bottom-color: rgba(255,255,255,.04); }

body.dark .btn { background: var(--panel-strong); border-color: rgba(255,255,255,.06); color: var(--ink); }
body.dark .btn:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(0,0,0,.28); }
body.dark .btn-primary {
  color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #6366f1);
  background-size: 200% 200%; border-color: rgba(99,102,241,.2);
  box-shadow: 0 2px 14px rgba(99,102,241,.3);
}
body.dark .btn-primary:hover:not(:disabled) { box-shadow: 0 6px 26px rgba(99,102,241,.4); }
body.dark .btn-ghost { background: rgba(26,26,46,.7); }
body.dark .btn-danger { color: #fff; background: linear-gradient(135deg, #e11d48, #be123c); box-shadow: 0 2px 12px rgba(225,29,72,.22); }

body.dark .icon-btn { color: var(--ink); background: rgba(26,26,46,.8); border-color: rgba(255,255,255,.06); }
body.dark .icon-btn:hover { background: rgba(26,26,46,1); border-color: rgba(99,102,241,.35); box-shadow: 0 0 12px rgba(99,102,241,.1); }
body.dark .user-chip { color: var(--ink-soft); background: rgba(26,26,46,.8); border-color: rgba(255,255,255,.06); }

body.dark th { color: var(--muted); background: rgba(15,15,26,.96); }
body.dark .data-table tbody tr:hover { background: rgba(99,102,241,.06); box-shadow: 0 2px 14px rgba(99,102,241,.07); }
body.dark .sticky-right { background: rgba(26,26,46,.98); box-shadow: -12px 0 18px rgba(0,0,0,.18); }
body.dark th.sticky-right { background: rgba(15,15,26,.99); }

body.dark .table-action, body.dark .page-btn { color: var(--ink); background: rgba(26,26,46,.8); border-color: rgba(255,255,255,.06); }
body.dark .table-action:hover, body.dark .page-btn:hover:not(:disabled), body.dark .page-btn.is-active {
  color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: rgba(99,102,241,.35);
  box-shadow: 0 0 12px rgba(99,102,241,.18);
}

body.dark .mobile-card { background: rgba(26,26,46,.82); border-color: rgba(255,255,255,.05); }
body.dark code { color: #a5b4fc; background: rgba(99,102,241,.12); }

body.dark .badge-blue  { color: #93c5fd; background: rgba(59,130,246,.14); }
body.dark .badge-green { color: #86efac; background: rgba(34,197,94,.14); }
body.dark .badge-amber { color: #fcd34d; background: rgba(245,158,11,.14); }
body.dark .badge-muted { color: var(--ink-soft); background: rgba(255,255,255,.06); }

body.dark .revenue-card.is-primary { background: linear-gradient(135deg, #4338ca, #7c3aed); }
body.dark .progress-track { background: rgba(255,255,255,.06); }
body.dark .progress-track span { box-shadow: 0 0 12px rgba(99,102,241,.32); }
body.dark .skeleton-line {
  background: linear-gradient(90deg, rgba(255,255,255,.03) 25%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s ease infinite;
}

body.dark .modal-overlay { background: rgba(0,0,0,.58); }
body.dark .modal { background: var(--panel-strong); border-color: rgba(255,255,255,.07); box-shadow: 0 24px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(99,102,241,.06); }
body.dark .toast { color: #0f0f1a; background: #a5b4fc; }
body.dark .toast.error { color: #fff; background: #be123c; }
body.dark .toast.success { color: #052e16; background: #86efac; }
body.dark .toast.info { color: #172033; background: #93c5fd; }

body.dark .search-card { background: var(--panel); border-color: var(--line); }
body.dark .drawer-overlay { background: rgba(0,0,0,.52); }
body.dark.auth-page { background: radial-gradient(ellipse at 30% 10%, rgba(99,102,241,.06) 0%, transparent 55%), linear-gradient(145deg, #0f0f1a, #141428 40%, #1a1a2e); }
body.dark .auth-brand .brand-title { color: var(--ink); }

body.dark .form-section    { border-top-color: rgba(255,255,255,.06); }
body.dark .month-title     { border-bottom-color: rgba(255,255,255,.06); }
body.dark .detail-row      { border-bottom-color: rgba(255,255,255,.05); }
body.dark .monthly-table   { border-color: rgba(255,255,255,.06); }
body.dark .panel-heading   { border-bottom-color: rgba(255,255,255,.06); }
body.dark .table-toolbar   { border-bottom-color: rgba(255,255,255,.06); }
body.dark .modal-header    { border-bottom-color: rgba(255,255,255,.06); }
body.dark .modal-footer    { border-top-color: rgba(255,255,255,.06); }

body.dark ::-webkit-scrollbar-thumb { background: rgba(99,102,241,.16); }
body.dark ::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,.3); }
body.dark * { scrollbar-color: rgba(99,102,241,.16) transparent; }
body.dark .page-info { color: var(--ink-soft); }
body.dark .month-row strong, body.dark .metric-pair strong { color: var(--ink); }

body.dark .nav-item.is-active {
  background: rgba(99,102,241,.2);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.12), 0 0 18px rgba(99,102,241,.08);
}
body.dark .nav-item:hover { background: rgba(99,102,241,.14); }
body.dark .nav-icon { background: rgba(99,102,241,.16); color: #a5b4fc; }

body.dark .sidebar {
  background: linear-gradient(180deg, rgba(15,15,26,.99), rgba(20,20,40,.99));
  box-shadow: 4px 0 34px rgba(0,0,0,.28);
}
body.dark .brand-mark { box-shadow: 0 2px 14px rgba(99,102,241,.32); }

body.dark .stat-card, body.dark .revenue-card, body.dark .month-card,
body.dark .detail-card, body.dark .search-card,
body.dark .auth-card, body.dark .search-hero {
  border-color: rgba(255,255,255,.05);
  background: rgba(20,20,35,.9);
  backdrop-filter: blur(8px);
}

/* ── 22. ICON-ONLY ACTION BUTTONS ──────────────────────────── */

/* Force the actions cell to never wrap its children */
td.sticky-right {
  white-space: nowrap;
  min-width: fit-content;
}

/* Action group — forced single-line flex row */
.action-group {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

/* Override ALL global button styles inside action group */
.action-group > button,
.action-group > .act-btn {
  display: inline-flex !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 32px !important;
}

/* Icon action button base */
.act-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 8px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f3f4f6;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
  box-shadow: none;
  box-sizing: border-box;
}
.act-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  pointer-events: none;
}

/* Hover lift */
.act-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Click press */
.act-btn:active {
  transform: scale(0.95);
  box-shadow: none;
}

/* View — blue */
.act-btn.act-view {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}
.act-btn.act-view:hover {
  background: rgba(37, 99, 235, 0.18);
}

/* Edit — green */
.act-btn.act-edit {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}
.act-btn.act-edit:hover {
  background: rgba(5, 150, 105, 0.18);
}

/* Delete — red */
.act-btn.act-delete {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.act-btn.act-delete:hover {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.25);
}

/* ── DARK MODE — icon action buttons ─────────────────────── */
body.dark .act-btn {
  background: rgba(26, 26, 46, 0.8);
}
body.dark .act-btn.act-view {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.14);
}
body.dark .act-btn.act-view:hover {
  background: rgba(37, 99, 235, 0.24);
}
body.dark .act-btn.act-edit {
  color: #34d399;
  background: rgba(5, 150, 105, 0.14);
}
body.dark .act-btn.act-edit:hover {
  background: rgba(5, 150, 105, 0.24);
}
body.dark .act-btn.act-delete {
  color: #fb7185;
  background: rgba(239, 68, 68, 0.14);
}
body.dark .act-btn.act-delete:hover {
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #be123c);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.3);
}

/* ── 22b. DELETE CONFIRMATION MODAL ────────────────────────── */

/* Delete button in detail hero */
.btn-delete-client {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

/* Delete confirmation modal body */
.delete-confirm-modal {
  max-width: 420px;
}
.delete-confirm-body {
  text-align: center;
  padding: 28px 24px 16px;
}
.delete-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(225, 29, 72, .08);
  color: #e11d48;
  margin: 0 auto 16px;
}
.delete-confirm-msg {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: inherit;
}
.delete-confirm-sub {
  font-size: .88rem;
  color: #71717a;
  margin: 0;
}

/* Confirm delete button icon alignment */
#confirm-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Fade animation for delete modal */
#delete-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.4, 0, .2, 1);
}
#delete-modal .modal {
  transform: translateY(12px) scale(.97);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
#delete-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
#delete-modal.is-open .modal {
  transform: translateY(0) scale(1);
}

/* Dark mode — delete confirmation */
body.dark .delete-confirm-icon {
  background: rgba(225, 29, 72, .12);
  color: #fb7185;
}
body.dark .delete-confirm-msg {
  color: var(--ink);
}
body.dark .delete-confirm-sub {
  color: var(--muted);
}



/* ── 23. USERS LIST TABLE ──────────────────────────────────── */

.users-list-panel {
  margin-top: 20px;
}

.users-table {
  width: 100%;
}
.users-table th,
.users-table td {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.users-table th:last-child,
.users-table td:last-child {
  text-align: center;
  width: 100px;
}

/* Delete-user modal — reuse delete-modal animation pattern */
#delete-user-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.4, 0, .2, 1);
}
#delete-user-modal .modal {
  transform: translateY(12px) scale(.97);
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
#delete-user-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
#delete-user-modal.is-open .modal {
  transform: translateY(0) scale(1);
}

/* Confirm delete-user button icon alignment */
#confirm-delete-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── 24. PASSWORD SHOW/HIDE TOGGLE ─────────────────────────── */
.pwd-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pwd-display {
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.pwd-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #71717a;
  border-radius: 6px;
  transition: color .18s ease, background-color .18s ease;
}
.pwd-toggle-btn:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, .08);
}
body.dark .pwd-toggle-btn {
  color: #a1a1aa;
}
body.dark .pwd-toggle-btn:hover {
  color: #a5b4fc;
  background: rgba(99, 102, 241, .14);
}

/* ── 25. LOGIN PASSWORD TOGGLE ─────────────────────────────── */
.pwd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pwd-input-wrap input {
  flex: 1;
  padding-right: 38px !important;
}
.pwd-input-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #71717a;
  border-radius: 6px;
  transition: color .18s ease, background-color .18s ease;
}
.pwd-input-toggle:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, .08);
}
body.dark .pwd-input-toggle {
  color: #a1a1aa;
}
body.dark .pwd-input-toggle:hover {
  color: #a5b4fc;
  background: rgba(99, 102, 241, .14);
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .stat-card:hover, .revenue-card:hover, .month-card:hover,
  .search-card:hover, .detail-card:hover,
  .btn:hover:not(:disabled) { transform: none !important; }
  .view.is-active .stat-card, .view.is-active .revenue-card,
  .view.is-active .month-card, .view.is-active .toolbar,
  .view.is-active .panel, .view.is-active .search-hero,
  .view.is-active .detail-hero, .view.is-active .detail-card { animation: none !important; }
  .data-table tbody tr { animation: none !important; }
}

/* ── MONTH CELL — Filing + Payment stacked ──────────────── */
.month-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 62px;
}
.month-cell .badge {
  font-size: 10px;
  padding: 2px 6px;
  line-height: 1.3;
  white-space: nowrap;
}
.mc-pay {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mc-paid {
  background: #dcfce7;
  color: #166534;
}
.mc-pending {
  background: #fee2e2;
  color: #991b1b;
}
.mc-noupdate {
  background: #f1f5f9;
  color: #94a3b8;
}

/* Dark mode support */
body.dark .mc-paid {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
body.dark .mc-pending {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
body.dark .mc-noupdate {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
}
