/* ----- RESET & GLOBAL ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  background: #f4f6fb;
  background-image: radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
                    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.10) 0%, transparent 45%),
                    linear-gradient(145deg, #f9fafc 0%, #eef1f8 100%);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: background 0.3s ease;
}

/* ----- GLASS CARD (White iOS) ----- */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 36px;
  box-shadow: 0 25px 50px -20px rgba(31, 41, 55, 0.15),
              inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s ease;
}

.glass-press:active {
  transform: scale(0.985);
  box-shadow: 0 15px 30px -15px rgba(31, 41, 55, 0.2);
}

/* ----- AUTH OVERLAY ----- */
.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 246, 251, 0.75);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  z-index: 1000;
  padding: 20px;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 42px 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 35px 60px -25px rgba(31, 41, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: fadeSlideUp 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(30px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card h2 {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 28px;
  font-weight: 400;
}

.input-group {
  margin-bottom: 16px;
  text-align: left;
}

.input-group input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 22px;
  font-size: 0.95rem;
  color: #1e293b;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.input-group input:focus {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), inset 0 2px 5px rgba(0,0,0,0.04);
  background: #ffffff;
}

.input-group input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.btn-primary {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s;
  box-shadow: 0 15px 25px -10px rgba(99, 102, 241, 0.5);
  margin-top: 8px;
  margin-bottom: 16px;
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 8px 15px -8px rgba(99, 102, 241, 0.6);
}

/* ----- APP LAYOUT ----- */
.app-layout {
  display: flex;
  width: 100%;
  max-width: 1400px;
  min-height: 90vh;
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 45px 70px -30px rgba(31, 41, 55, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  overflow: hidden;
  animation: fadeIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1); }
}

/* ----- MOBILE HAMBURGER (hidden on desktop) ----- */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 22px;
  left: 18px;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 20px -8px rgba(31, 41, 55, 0.2);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.2s ease, background 0.2s;
}

.hamburger-btn:active {
  transform: scale(0.92);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #4f46e5;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* hamburger open state */
.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* dark overlay behind mobile nav */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ----- SIDEBAR ----- */
.sidebar {
  width: 270px;
  padding: 28px 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  z-index: 1050;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding-left: 10px;
}

.logo .icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
}

.logo h1 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #4f46e5;
  line-height: 1.2;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 28px;
  transition: background 0.2s;
  box-shadow: 0 4px 10px -4px rgba(31, 41, 55, 0.08);
}

.avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 16px -8px rgba(99, 102, 241, 0.5);
  transition: transform 0.2s ease;
}

.avatar-img:hover {
  transform: scale(1.02);
}

.user-profile .greet {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.user-profile b {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: 18px;
  color: #64748b;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.15);
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #4f46e5;
  box-shadow: 0 8px 18px -10px #6366f1;
}

.logout-btn {
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #dc2626;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-size: 0.9rem;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  transform: scale(1.01);
}

/* ----- MAIN CONTENT ----- */
.main-content {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.main-content::-webkit-scrollbar {
  width: 4px;
}
.main-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.top-bar h2 {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #1e293b, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.date-display {
  font-size: 0.85rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 18px;
  border-radius: 40px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 10px -4px rgba(31, 41, 55, 0.06);
}

.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 30px -20px rgba(31, 41, 55, 0.12);
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 25px 40px -18px rgba(99, 102, 241, 0.35);
}

.stat-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #1e293b, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-card small {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
  display: block;
  transition: color 0.2s;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.content-card {
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 30px -20px rgba(31, 41, 55, 0.12);
  transition: all 0.2s ease;
}

.content-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #4f46e5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 22px;
  font-size: 0.95rem;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  font-weight: 400;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.form-group input:focus {
  border-color: rgba(99, 102, 241, 0.7);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.add-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  padding: 16px;
  border-radius: 24px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 15px 25px -12px #6366f1;
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.add-btn:active {
  transform: scale(0.97);
  box-shadow: 0 8px 15px -8px #6366f1;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  padding: 8px;
  transition: transform 0.25s;
  filter: drop-shadow(0 8px 15px rgba(99, 102, 241, 0.15));
}

.chart-wrapper:hover {
  transform: scale(1.02);
}

canvas#expenseChart {
  width: 100% !important;
  height: auto !important;
  border-radius: 30px;
}

.expense-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.expense-list::-webkit-scrollbar {
  width: 3px;
}
.expense-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.15s ease;
  animation: itemFade 0.3s ease;
  box-shadow: 0 4px 10px -6px rgba(31, 41, 55, 0.08);
}

@keyframes itemFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.item:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.25);
  transform: scale(1.005);
}

.item b {
  font-weight: 600;
  color: #1e293b;
}

.item small {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.del-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
}

.del-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
  transform: scale(1.05);
}

.download-btn {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.download-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
  border-color: #10b981;
}

/* modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(244, 246, 251, 0.75);
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s;
}

.modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-radius: 44px;
  padding: 38px 34px;
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 50px 70px -30px rgba(31, 41, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  animation: modalPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content .close {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.modal-content .close:hover {
  color: #1e293b;
  transform: rotate(90deg);
}

.modal-content h2 {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #1e293b, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  display: block;
  margin-top: 14px;
  margin-bottom: 4px;
}

.modal-content input {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 20px;
  color: #1e293b;
  font-size: 0.9rem;
  outline: none;
  transition: 0.2s;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.modal-content input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), inset 0 2px 6px rgba(0,0,0,0.04);
}

.team-info-box {
  background: rgba(99, 102, 241, 0.06);
  padding: 18px 22px;
  border-radius: 28px;
  border-left: 4px solid #6366f1;
  margin-top: 16px;
}

.team-info-box p {
  margin: 6px 0;
  color: #334155;
  font-size: 0.95rem;
}

.team-info-box b {
  color: #4f46e5;
}

hr {
  border-color: rgba(226, 232, 240, 0.8);
  margin: 18px 0;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 900px) {
  body { padding: 0; align-items: stretch; }

  .app-layout {
    flex-direction: column;
    border-radius: 0;
    min-height: 100vh;
    max-width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
  }

  /* show hamburger on mobile */
  .hamburger-btn { display: flex; }

  /* sidebar becomes slide-in drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 82vw;
    border-radius: 0 32px 32px 0;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    transform: translateX(-105%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 20px 0 50px -20px rgba(31, 41, 55, 0.3);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    padding-top: 84px;
    overflow-y: auto;
    z-index: 1050;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .nav-overlay {
    z-index: 1040;
  }

  /* nav items stagger animation */
  .sidebar .nav-item,
  .sidebar .logout-btn {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, color 0.2s;
  }

  .sidebar.open .nav-item,
  .sidebar.open .logout-btn {
    opacity: 1;
    transform: translateX(0);
  }

  .sidebar.open .nav-item:nth-child(1) { transition-delay: 0.08s; }
  .sidebar.open .nav-item:nth-child(2) { transition-delay: 0.14s; }
  .sidebar.open .nav-item:nth-child(3) { transition-delay: 0.20s; }
  .sidebar.open .nav-item:nth-child(4) { transition-delay: 0.26s; }
  .sidebar.open .logout-btn          { transition-delay: 0.32s; }

  .sidebar .logo,
  .sidebar .user-profile {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .sidebar.open .logo        { opacity: 1; transform: translateY(0); transition-delay: 0.02s; }
  .sidebar.open .user-profile { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }

  /* main content full width */
  .main-content {
    padding: 88px 16px 30px;
    max-height: none;
    overflow-y: visible;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  .top-bar h2 { font-size: 1.5rem; }

  .date-display { font-size: 0.75rem; padding: 8px 14px; }

  .stats-container { grid-template-columns: 1fr; gap: 14px; }
  .stat-card { padding: 20px 22px; border-radius: 28px; }
  .stat-card p { font-size: 2.1rem; }

  .dashboard-grid { grid-template-columns: 1fr; gap: 16px; }

  .content-card { padding: 22px 20px; border-radius: 30px; }
  .content-card h3 { font-size: 1.1rem; }

  .form-group input { padding: 14px 16px; border-radius: 18px; }

  .chart-wrapper { max-width: 200px; }

  .expense-list { max-height: 300px; }
  .item { padding: 13px 14px; border-radius: 22px; }
  .item b { font-size: 0.95rem; }
  .item small { font-size: 0.7rem; }

  .download-btn { font-size: 0.72rem; padding: 9px 15px; }

  .modal-content { padding: 30px 22px; border-radius: 32px; }
  .modal-content h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: 32px; }
  .auth-card h2 { font-size: 1.7rem; }
  .stat-card p { font-size: 1.9rem; }
  .main-content { padding: 80px 12px 24px; }
  .top-bar h2 { font-size: 1.35rem; }
  .content-card { padding: 18px 16px; }
  .hamburger-btn { width: 44px; height: 44px; top: 18px; left: 14px; }
  .sidebar { padding-top: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@supports not (backdrop-filter: blur(10px)) {
  .glass, .auth-card, .sidebar, .stat-card, .content-card, .modal-content {
    background: rgba(255, 255, 255, 0.95);
  }
}