/* Flooki – Modern Financial App (Exact mockup replica) */

[x-cloak] { display: none !important; }

/* ─── SAFE AREAS ─────────────────────────────────────────────────── */
.pt-safe  { padding-top:    env(safe-area-inset-top, 0px); }
.pb-safe  { padding-bottom: env(safe-area-inset-bottom, 0px); }
.mb-safe  { margin-bottom:  env(safe-area-inset-bottom, 0px); }

/* ─── LAYOUT ─────────────────────────────────────────────────────── */
.content-pad { padding-bottom: 7rem; }

/* ─── PAGE TRANSITIONS ───────────────────────────────────────────── */
.page-enter {
  animation: fadeSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── CARDS ──────────────────────────────────────────────────────── */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:active {
  transform: scale(0.97);
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn-glow {
  transition: all 0.2s ease;
}
.btn-glow:active {
  transform: scale(0.93);
}

/* ─── INPUT AUTOFILL ─────────────────────────────────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px #1E2243 inset !important;
  box-shadow: 0 0 0 1000px #1E2243 inset !important;
  caret-color: #ffffff;
  transition: background-color 9999s ease-out 0s;
}

input:not([type="date"]):not([type="number"]):not([type="range"]):not(.auth-input),
select:not(.auth-input),
textarea:not(.auth-input) {
  color: #ffffff;
  background-color: #1E2243;
  transition: all 0.2s ease;
}

input:not([type="date"]):not([type="number"]):not([type="range"]):not(.auth-input):focus,
select:not(.auth-input):focus,
textarea:not(.auth-input):focus {
  background-color: #252B50;
  box-shadow: 0 0 0 2px rgba(240, 255, 75, 0.25);
}

/* ─── NUMBER INPUT ───────────────────────────────────────────────── */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

/* ─── SCROLLBAR ──────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #252B50;
  border-radius: 3px;
}

/* ─── YELLOW BALANCE CARD ────────────────────────────────────────── */
.balance-card {
  background: #F0FF4B;
  border-radius: 1.75rem;
  padding: 1.5rem;
}

/* ─── ACCOUNT CARDS GRID ─────────────────────────────────────────── */
.accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ─── TOAST NOTIFICATIONS ────────────────────────────────────────── */
.toast-enter { animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.toast-leave { animation: toastOut 0.3s ease both; }
@keyframes toastIn  {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

/* ─── MODAL ──────────────────────────────────────────────────────── */
.modal-backdrop {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ─── SKELETON LOADER ────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.skeleton {
  background: linear-gradient(
    90deg,
    #1E2243 0%,
    #252B50 50%,
    #1E2243 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 1rem;
}
.skeleton-yellow {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.15) 50%,
    rgba(0,0,0,0.08) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 0.75rem;
}

/* ─── BOTTOM NAV ─────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.6rem 1rem;
  gap: 0.25rem;
  background: #1E2243;
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}
.nav-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.nav-btn:active {
  transform: scale(0.88);
}
.nav-btn-inactive {
  background: transparent;
}
.nav-btn-active {
  background: #ffffff;
}
.nav-btn-fab {
  width: 3.25rem;
  height: 3.25rem;
  background: #F0FF4B;
  box-shadow: 0 4px 16px rgba(240, 255, 75, 0.45);
}

/* ─── CHART.JS ───────────────────────────────────────────────────── */
canvas.chart { display: block; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.float { animation: float 3s ease-in-out infinite; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.slide-in { animation: slideIn 0.4s ease both; }

/* ─── GRADIENT ───────────────────────────────────────────────────── */
.gradient-border { display: none; } /* legacy - unused */

/* ─── UTILITIES ──────────────────────────────────────────────────── */
.glow-yellow { box-shadow: 0 0 20px rgba(240, 255, 75, 0.35); }
