* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #F5F5F5;
  min-height: 100vh;
}

.font-serif {
  font-family: 'DM Serif Display', serif;
}

/* Disclaimer banner */
.disclaimer-banner {
  background: repeating-linear-gradient(
    45deg,
    #FFD700,
    #FFD700 10px,
    #FFC800 10px,
    #FFC800 20px
  );
  color: #000;
  text-align: center;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  border-bottom: 3px solid #000;
  text-shadow: none;
}

/* Login screen */
.login-bg {
  background: linear-gradient(175deg, #8B0000 0%, #CD1409 35%, #a01008 70%, #6B0000 100%);
  min-height: 100vh;
  padding-top: 48px;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-width: 420px;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #8B0000, #CD1409);
  padding: 32px 24px 28px;
  text-align: center;
  position: relative;
}

.login-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFCD41, #FFE082, #FFCD41);
}

.gold-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, #FFCD41, transparent);
  margin: 8px 0;
}

.btn-red {
  background: #CD1409;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.btn-red:hover {
  background: #a01008;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(205,20,9,0.4);
}

.btn-red:active {
  transform: translateY(0);
}

/* Input styles */
.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.input-field:focus {
  border-color: #CD1409;
  box-shadow: 0 0 0 3px rgba(205,20,9,0.1);
}

/* Dashboard header */
.dash-header {
  background: linear-gradient(135deg, #8B0000, #CD1409, #a01008);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Nav tabs */
.nav-tab {
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #fff;
}

.nav-tab.active {
  color: #fff;
  border-bottom-color: #FFCD41;
  font-weight: 700;
}

/* Account cards */
.account-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-top: 4px solid #CD1409;
  padding: 24px;
  transition: all 0.3s;
}

.account-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Total balance card */
.total-balance-card {
  background: linear-gradient(135deg, #8B0000, #CD1409);
  border-radius: 16px;
  padding: 40px 32px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(139,0,0,0.3);
}

.total-balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,205,65,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.total-balance-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

/* Quick action buttons */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-action:hover {
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.2s;
}

/* Transactions table */
.txn-row {
  transition: background 0.15s;
}

.txn-row:hover {
  background: rgba(205,20,9,0.04) !important;
}

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 10000;
  pointer-events: none;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a1a;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 10000;
  animation: toast-in 0.4s ease-out;
  font-weight: 600;
  border-left: 4px solid #FFCD41;
}

@keyframes toast-in {
  0% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Horse animation */
.galloping-horse {
  position: fixed;
  font-size: 64px;
  z-index: 10001;
  pointer-events: none;
  animation: gallop 3s linear forwards;
}

@keyframes gallop {
  0% { left: -100px; top: 40%; transform: scaleX(1); }
  25% { top: 35%; }
  50% { top: 45%; }
  75% { top: 38%; }
  100% { left: calc(100vw + 100px); top: 42%; }
}

/* Session timeout modal */
.timeout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
  background: #CD1409;
  border-radius: 4px;
}

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .dash-header {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .nav-tabs-desktop {
    display: none;
  }
  .nav-tabs-mobile {
    display: flex !important;
    width: 100%;
    overflow-x: auto;
    gap: 0;
    padding-top: 8px;
  }
  .total-balance-card {
    padding: 28px 20px;
  }
}

@media (min-width: 769px) {
  .nav-tabs-mobile {
    display: none !important;
  }
}

/* Number counter animation */
@keyframes pulse-gold {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 20px rgba(255,205,65,0.5); }
}

.balance-glow {
  animation: pulse-gold 2s ease-in-out;
}

.footer-link {
  color: #CD1409;
  text-decoration: none;
  font-weight: 500;
}
.footer-link:hover {
  text-decoration: underline;
}