/* ============================================================
   PEGASUS TKA TRACKING — REDESIGN OVERLAY
   Animations · Backgrounds · Aesthetics · Motion
   ============================================================ */

/* ===== REDUCED MOTION RESPECT ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .login-decor, .app-bg-orb, #airportCanvas { display: none !important; }
}

/* ===== KEYFRAME ANIMATIONS ===== */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-10px) rotate(-1.5deg); }
  66%      { transform: translateY(-6px) rotate(1deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(12px) rotate(-2deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.08); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(30px, -20px) scale(1.05); }
  50%  { transform: translate(-10px, -40px) scale(0.95); }
  75%  { transform: translate(-30px, -10px) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-20px, 15px) scale(0.97); }
  50%  { transform: translate(15px, 30px) scale(1.04); }
  75%  { transform: translate(25px, -15px) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  15%      { transform: rotate(14deg); }
  30%      { transform: rotate(-12deg); }
  45%      { transform: rotate(8deg); }
  60%      { transform: rotate(-6deg); }
  75%      { transform: rotate(3deg); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,159,126,0); }
  50%      { box-shadow: 0 0 12px 2px rgba(13,159,126,.15); }
}

/* ===== LOGIN PAGE ENHANCEMENTS ===== */

#login {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #061A14 0%, #0A3D32 50%, #072A22 100%) !important;
}

#airportCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.login-card {
  animation: fadeInUp .65s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(139,205,185,0.15) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: box-shadow .3s ease, transform .3s ease;
}
.login-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(139,205,185,0.1);
}
.login-card, .login-card h1, .login-card .login-sub, .login-card label {
  color: #E0F0EA !important;
}
.login-card .login-sub {
  color: #8BCDB9 !important;
}
.login-card .login-foot {
  color: rgba(180,220,200,0.5) !important;
}
.login-card .login-foot a {
  color: #8BCDB9 !important;
}
.login-card .inp {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(139,205,185,0.2) !important;
  color: #E0F0EA !important;
}
.login-card .inp::placeholder {
  color: rgba(180,220,200,0.35) !important;
}
.login-card .inp:focus {
  border-color: #0D9F7E !important;
  box-shadow: 0 0 0 3px rgba(13,159,126,0.2), 0 0 20px rgba(13,159,126,0.1);
}
.login-btn {
  background: linear-gradient(135deg, #0D9F7E, #14B88F) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(13,159,126,0.4);
}
.login-btn:hover:not([disabled]) {
  background: linear-gradient(135deg, #14B88F, #1CC99A) !important;
  box-shadow: 0 6px 25px rgba(13,159,126,0.5);
}
.login-card .login-err {
  background: rgba(220,38,38,0.15) !important;
  border-color: rgba(220,38,38,0.3) !important;
  color: #FCA5A5 !important;
}
.login-card .cb-lbl {
  color: rgba(180,220,200,0.7) !important;
}
.login-card .show-pw {
  color: rgba(180,220,200,0.5) !important;
}

.login-logo {
  animation: scaleIn .5s cubic-bezier(.22, 1, .36, 1) .1s backwards;
}
.login-logo img {
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.login-logo:hover img {
  transform: scale(1.08) rotate(-2deg);
}

.login-card h1 {
  animation: fadeInUp .5s ease .2s backwards;
}
.login-sub {
  animation: fadeInUp .5s ease .3s backwards;
}
.login-form {
  animation: fadeInUp .5s ease .35s backwards;
}
.login-foot {
  animation: fadeIn .5s ease .5s backwards;
}

.user-grid {
  animation: fadeIn .4s ease .3s backwards;
}
.user-pick {
  transition: transform .25s cubic-bezier(.22, 1, .36, 1),
              border-color .2s ease,
              background .2s ease,
              box-shadow .25s ease;
}
.user-pick:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(13,159,126,.12);
}
.user-pick:active {
  transform: scale(.97) !important;
}

.login-btn {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1),
              background .15s ease,
              box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.login-btn:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,159,126,.3);
}
.login-btn:active:not([disabled]) {
  transform: scale(.97);
}

/* Login floating decorations (legacy, kept for compat) */
.login-decor { display: none; }

/* ===== EVENT PARTICLE EFFECTS ===== */
.event-particle {
  will-change: transform, opacity;
}

/* ===== APP SHELL BACKGROUND ===== */

.main {
  position: relative;
  background: var(--bg);
}
.main::before {
  content: '';
  position: fixed;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--glow-a), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift 20s ease-in-out infinite;
}
.main::after {
  content: '';
  position: fixed;
  bottom: 0; left: 236px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--glow-b), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift2 25s ease-in-out infinite;
}

.content {
  position: relative;
  z-index: 1;
}

/* ===== SIDEBAR ENHANCEMENTS ===== */

.sidebar {
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  border-right: 1px solid rgba(255,255,255,.04);
}

.sb-logo {
  animation: fadeInLeft .4s ease;
}
.sb-logo .ic img {
  transition: transform .3s ease;
}
.sb-logo:hover .ic img {
  transform: rotate(-8deg) scale(1.1);
}

.sb-item {
  transition: background .2s ease,
              color .2s ease,
              transform .2s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.sb-item:hover {
  transform: translateX(4px);
}
.sb-item.on {
  transform: translateX(0);
  box-shadow: inset 3px 0 0 var(--accent);
}
.sb-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,184,143,.08), transparent);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.sb-item:hover::after {
  opacity: 1;
}
.sb-item svg {
  transition: transform .2s ease;
}
.sb-item:hover svg {
  transform: scale(1.15);
}

.sb-badge {
  animation: scaleIn .3s cubic-bezier(.22, 1, .36, 1);
  transition: transform .15s ease;
}
.sb-badge:hover {
  transform: scale(1.1);
}

.sb-foot {
  animation: fadeInUp .4s ease .2s backwards;
}
.sb-foot .avatar {
  transition: transform .2s ease, box-shadow .2s ease;
}
.sb-foot .avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(13,159,126,.3);
}

/* ===== TOPBAR ENHANCEMENTS ===== */

.topbar {
  animation: fadeInDown .35s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg-card) 85%, transparent) !important;
}

.topbar h2 {
  animation: fadeInLeft .4s ease .1s backwards;
}

.bell, .theme-btn {
  transition: background .2s ease, color .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1);
}
.bell:hover, .theme-btn:hover {
  transform: scale(1.1);
}
.bell:active, .theme-btn:active {
  transform: scale(.92);
}

.bell i {
  animation: pulse 2s ease-in-out infinite;
}

.bell.ring svg {
  animation: bellShake .6s ease;
}

/* ===== CONTENT & CARDS ===== */

.card {
  animation: fadeInUp .45s cubic-bezier(.22, 1, .36, 1) backwards;
  transition: box-shadow .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
  border: 1px solid var(--line-soft);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(10,61,50,.1);
  transform: translateY(-2px);
}

/* Stagger cards */
.card:nth-child(1) { animation-delay: .04s; }
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4) { animation-delay: .16s; }
.card:nth-child(5) { animation-delay: .20s; }
.card:nth-child(6) { animation-delay: .24s; }

/* ===== METRIC CARDS ===== */

.metric {
  animation: fadeInUp .4s cubic-bezier(.22, 1, .36, 1) backwards;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1),
              box-shadow .25s ease;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.metric::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity .25s ease;
}
.metric:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,61,50,.12);
}
.metric:hover::before {
  opacity: 1;
}

.metric:nth-child(1) { animation-delay: .06s; }
.metric:nth-child(2) { animation-delay: .10s; }
.metric:nth-child(3) { animation-delay: .14s; }
.metric:nth-child(4) { animation-delay: .18s; }
.metric:nth-child(5) { animation-delay: .22s; }
.metric:nth-child(6) { animation-delay: .26s; }

.metric .v {
  animation: countUp .4s ease backwards;
  animation-delay: inherit;
}

/* ===== TABS ===== */

.tabs {
  animation: fadeInUp .35s ease backwards;
  border: 1px solid var(--line-soft);
}
.tab {
  transition: background .2s ease,
              color .2s ease,
              transform .15s cubic-bezier(.22, 1, .36, 1),
              box-shadow .2s ease;
}
.tab:hover:not(.on) {
  background: var(--bg-soft);
  transform: translateY(-1px);
}
.tab:active {
  transform: scale(.96);
}
.tab.on {
  transition: background .2s ease, color .2s ease, box-shadow .25s ease;
}

/* ===== CHIPS ===== */
.chip {
  transition: background .15s ease,
              border-color .15s ease,
              color .15s ease,
              transform .15s cubic-bezier(.22, 1, .36, 1);
}
.chip:hover {
  transform: translateY(-1px);
}
.chip:active {
  transform: scale(.95);
}

/* ===== BUTTONS (spring-like) ===== */

.btn {
  transition: transform .2s cubic-bezier(.22, 1.5, .36, 1),
              box-shadow .2s ease,
              background .15s ease,
              border-color .15s ease;
}
.btn:hover:not([disabled]) {
  transform: translateY(-1px);
}
.btn-p:hover:not([disabled]) {
  box-shadow: 0 4px 16px rgba(13,159,126,.3);
}
.btn:active:not([disabled]) {
  transform: scale(.96);
  transition-duration: .1s;
}

/* ===== TABLE ENHANCEMENTS ===== */

.tbl-wrap {
  animation: fadeInUp .4s ease backwards;
  transition: box-shadow .25s ease;
}
.tbl-wrap:hover {
  box-shadow: 0 4px 16px rgba(10,61,50,.06);
}

tr {
  transition: background .15s ease;
}
tbody tr {
  animation: fadeIn .3s ease backwards;
}
tbody tr:nth-child(1)  { animation-delay: .02s; }
tbody tr:nth-child(2)  { animation-delay: .04s; }
tbody tr:nth-child(3)  { animation-delay: .06s; }
tbody tr:nth-child(4)  { animation-delay: .08s; }
tbody tr:nth-child(5)  { animation-delay: .10s; }
tbody tr:nth-child(6)  { animation-delay: .12s; }
tbody tr:nth-child(7)  { animation-delay: .14s; }
tbody tr:nth-child(8)  { animation-delay: .16s; }
tbody tr:nth-child(9)  { animation-delay: .18s; }
tbody tr:nth-child(10) { animation-delay: .20s; }

tr.click:hover td {
  transition: background .15s ease;
}

/* ===== BADGES ===== */

.badge {
  transition: transform .15s ease, box-shadow .15s ease;
}
.badge:hover {
  transform: scale(1.06);
}

/* Document type badges - add subtle icons */
.d-RPTKA::before, .d-IMTA::before, .d-VISA::before, .d-KITAS::before,
.d-LK::before, .d-LI::before {
  font-size: 10px;
  margin-right: 2px;
}
.d-RPTKA::before { content: '\1F4CB'; }
.d-IMTA::before  { content: '\1F4DC'; }
.d-VISA::before  { content: '\2708'; }
.d-KITAS::before { content: '\1F4B3'; }

/* ===== MODAL ENHANCEMENTS ===== */

.modal-bg {
  animation: fadeIn .2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal {
  animation: scaleIn .3s cubic-bezier(.22, 1, .36, 1);
  border: 1px solid var(--line-soft);
}

/* ===== NOTIFICATION DROPDOWN ===== */

.notif-pop:not([hidden]) {
  animation: slideDown .25s cubic-bezier(.22, 1, .36, 1);
}

.notif-item {
  transition: background .15s ease, transform .15s ease;
}
.notif-item:hover {
  transform: translateX(3px);
}

/* ===== TOAST ===== */

.toast {
  animation: toastSlideUp .35s cubic-bezier(.22, 1, .36, 1) !important;
}

/* ===== AI PANEL ===== */

.ai-fab {
  transition: transform .25s cubic-bezier(.22, 1, .36, 1),
              box-shadow .25s ease;
  animation: scaleIn .4s cubic-bezier(.22, 1, .36, 1) .5s backwards;
}
.ai-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(13,159,126,.4);
}
.ai-fab:active {
  transform: scale(.92);
}
.ai-fab svg {
  transition: transform .3s ease;
}
.ai-fab:hover svg {
  transform: rotate(15deg);
}

.ai-panel {
  transition: transform .35s cubic-bezier(.22, 1, .36, 1) !important;
  border-left: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.msg {
  animation: fadeInUp .25s ease;
}
.msg.bot {
  animation: fadeInLeft .3s ease;
}
.msg.me {
  animation: fadeInRight .3s ease;
}

/* ===== STAFF / COMPANY / ACCOUNT CARDS ===== */

.staff {
  animation: fadeInUp .4s ease backwards;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1),
              box-shadow .25s ease;
  border: 1px solid var(--line-soft);
}
.staff:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10,61,50,.1);
}
.staff:nth-child(1) { animation-delay: .04s; }
.staff:nth-child(2) { animation-delay: .08s; }
.staff:nth-child(3) { animation-delay: .12s; }
.staff:nth-child(4) { animation-delay: .16s; }
.staff:nth-child(5) { animation-delay: .18s; }

.co {
  animation: fadeInUp .4s ease backwards;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1),
              box-shadow .25s ease,
              border-color .2s ease;
}
.co:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(10,61,50,.1);
  border-color: var(--accent);
}
.co:nth-child(1) { animation-delay: .04s; }
.co:nth-child(2) { animation-delay: .08s; }
.co:nth-child(3) { animation-delay: .12s; }
.co:nth-child(4) { animation-delay: .16s; }

.acc-card {
  animation: fadeInUp .4s ease backwards;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1),
              box-shadow .25s ease;
  border: 1px solid var(--line-soft);
}
.acc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,61,50,.1);
}
.acc-card:nth-child(1) { animation-delay: .04s; }
.acc-card:nth-child(2) { animation-delay: .08s; }
.acc-card:nth-child(3) { animation-delay: .12s; }

.slot {
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.slot:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

/* ===== STAT BUTTONS ===== */

.stat-btn {
  transition: background .15s ease,
              border-color .15s ease,
              transform .15s cubic-bezier(.22, 1, .36, 1);
}
.stat-btn:hover {
  transform: translateY(-2px);
}
.stat-btn:active {
  transform: scale(.95);
}

/* ===== AVATAR ENHANCEMENTS ===== */

.avatar {
  transition: transform .2s ease, box-shadow .2s ease;
}
.tb-user .avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ===== INPUT FOCUS ANIMATION ===== */

.inp {
  transition: border-color .2s ease,
              box-shadow .2s ease,
              background .2s ease;
}
.inp:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light), 0 2px 8px rgba(13,159,126,.08);
  background: var(--bg-card);
}

/* ===== PROGRESS BARS ===== */

.pg i, .load i {
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}

/* ===== CALENDAR ===== */

.cal {
  animation: fadeIn .4s ease backwards;
}
.cal .day {
  transition: background .15s ease, transform .1s ease;
}
.cal .day:hover {
  transform: scale(1.02);
}
.cal .today .n {
  animation: pulse 3s ease-in-out infinite;
}
.cal .ev {
  transition: transform .15s ease;
}
.cal .ev:hover {
  transform: scale(1.04);
}

/* ===== TIMELINE ===== */

.tl li {
  animation: fadeInLeft .35s ease backwards;
}
.tl li:nth-child(1) { animation-delay: .04s; }
.tl li:nth-child(2) { animation-delay: .08s; }
.tl li:nth-child(3) { animation-delay: .12s; }
.tl li:nth-child(4) { animation-delay: .16s; }
.tl li:nth-child(5) { animation-delay: .20s; }
.tl li:nth-child(6) { animation-delay: .24s; }

.tl li::before {
  transition: transform .2s ease, background .2s ease;
}
.tl li:hover::before {
  transform: scale(1.3);
  background: var(--accent-hover);
}

/* ===== COMMENT ANIMATION ===== */

.cmt {
  animation: fadeInLeft .3s ease backwards;
}

/* ===== PENGAJUAN GROUPS ===== */

.grp {
  animation: fadeInUp .4s ease backwards;
  transition: box-shadow .25s ease;
  border: 1px solid var(--line-soft);
}
.grp:hover {
  box-shadow: 0 6px 20px rgba(10,61,50,.08);
}

/* ===== FORM ENHANCEMENTS ===== */

.form-grid {
  animation: fadeIn .35s ease;
}

.field label {
  transition: color .2s ease;
}
.field:focus-within label {
  color: var(--accent);
}

/* ===== OVERLAY ===== */

.overlay.on {
  animation: fadeIn .25s ease;
}

/* ===== ICON BUTTON ENHANCEMENTS ===== */

.icon-btn {
  transition: background .15s ease,
              color .15s ease,
              transform .15s cubic-bezier(.22, 1, .36, 1);
}
.icon-btn:hover {
  transform: scale(1.1);
}
.icon-btn:active {
  transform: scale(.9);
}

/* ===== EMPTY STATE ENHANCEMENTS ===== */

.empty {
  animation: fadeIn .4s ease;
  position: relative;
}
.empty::before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: var(--bg-soft);
  border-radius: 50%;
  border: 2px dashed var(--line);
}

/* ===== SCROLLBAR STYLING ===== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--fg-muted);
}

/* ===== SELECTION COLOR ===== */

::selection {
  background: rgba(13,159,126,.2);
  color: var(--fg);
}

/* ===== FOCUS VISIBLE ===== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== SUBTLE BACKGROUND PATTERN FOR CARDS ===== */

.secure-note {
  animation: fadeIn .4s ease;
  transition: transform .2s ease;
}
.secure-note:hover {
  transform: translateY(-1px);
}

/* ===== SIDEBAR FOOTER LOGOUT ===== */

.sb-foot .icon-btn {
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.sb-foot .icon-btn:hover {
  transform: rotate(-8deg) scale(1.1);
}

/* ===== SERVICE CHECKBOXES ===== */

.svc {
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.svc:hover {
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ANIMATION ADJUSTMENTS ===== */

@media (max-width: 860px) {
  .main::before, .main::after {
    display: none;
  }
  .sidebar.on {
    animation: fadeInLeft .3s cubic-bezier(.22, 1, .36, 1);
  }
}

/* ===== SMOOTH PAGE TRANSITION CLASS ===== */

.page-enter {
  animation: fadeInUp .35s cubic-bezier(.22, 1, .36, 1);
}

/* ===== SKELETON LOADING ===== */

.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--line-soft) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-sm);
}

/* ===== ENHANCED SECURE NOTE ===== */

.secure-note svg {
  animation: float 4s ease-in-out infinite;
}

/* ===== HEADER GRADIENT ACCENTS ===== */

.card-h h3 {
  position: relative;
}

/* ===== PAGE INTRO ===== */

.page-intro {
  animation: fadeIn .4s ease .1s backwards;
}

/* ===== METRICS ROW ANIMATION ===== */

.metrics {
  animation: fadeIn .3s ease;
}

/* ===== PASSWORD STRENGTH METER ===== */

.meter i {
  transition: background .3s ease, transform .15s ease;
}
.meter i.f {
  animation: scaleIn .3s ease backwards;
}

/* ===== CHIP GROUP ===== */

.chips {
  animation: fadeIn .3s ease .1s backwards;
}

/* ===== INFO GRID ===== */

.info-grid div {
  animation: fadeInUp .3s ease backwards;
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-grid div:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(10,61,50,.06);
}
.info-grid div:nth-child(1) { animation-delay: .04s; }
.info-grid div:nth-child(2) { animation-delay: .08s; }
.info-grid div:nth-child(3) { animation-delay: .12s; }
.info-grid div:nth-child(4) { animation-delay: .16s; }
.info-grid div:nth-child(5) { animation-delay: .20s; }
.info-grid div:nth-child(6) { animation-delay: .24s; }
