/* Shared UI polish (user + admin) */
:root{
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { 
  scroll-behavior: smooth;
  font-family: var(--font-body);
}

body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.3px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.5px;
}

p {
  font-family: var(--font-body);
  line-height: 1.6;
}

/* === NAVIGATION ICONS === */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

/* Ensure Bootstrap Icons are loaded */
.bi {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* Fix for icon alignment */
.nav-link-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Additional icon fixes */
i.bi {
  font-size: 1.2em !important;
  line-height: 1 !important;
  display: inline-block !important;
}

/* Ensure icons work in all browsers */
[class^="bi-"], [class*=" bi-"] {
  font-family: 'bootstrap-icons' !important;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Icon hover effects */
.nav-link:hover i.bi {
  color: #fff !important;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* === GLOBAL ANIMATIONS === */

.card{
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease, border-color .25s ease;
  animation: slideInUp .5s ease-out;
}

.card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.btn{
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width .6s, height .6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:active{
  transform: translateY(2px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-icon{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.table-hover tbody tr{
  transition: all .25s ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(38, 99, 235, 0.05);
  transform: translateX(4px);
}

.badge{
  letter-spacing: .2px;
  animation: scaleIn .4s ease-out;
}

.fade-in{
  animation: fadeIn .5s ease-in-out;
}

/* === KEYFRAME ANIMATIONS === */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(38, 99, 235, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(38, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(38, 99, 235, 0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* === FORM ANIMATIONS === */

.form-control, .form-select {
  transition: all .3s ease;
  border-radius: 8px;
  animation: slideInUp .5s ease-out both;
}

.form-control:focus, .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #cbd5e1;
  transition: color .3s ease;
}

.form-control:focus::placeholder {
  color: #94a3b8;
}

.form-label {
  transition: all .3s ease;
  animation: slideInLeft .5s ease-out;
  font-weight: 500;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  color: #2563eb;
}

/* === ALERT ANIMATIONS === */

.alert {
  animation: slideInDown .4s ease-out;
  border-radius: 8px;
  border: none;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-dismiss-btn {
  transition: transform .3s ease;
}

.alert-dismiss-btn:hover {
  transform: rotate(90deg);
}

/* === LINK ANIMATIONS === */

a {
  transition: all .3s ease;
}

a:hover {
  text-decoration: none;
}

.text-muted:hover {
  color: #2563eb !important;
  transform: translateX(2px);
}

/* === STAGGER ANIMATIONS FOR MULTIPLE ITEMS === */

.stagger-item {
  animation: slideInUp .5s ease-out both;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* === ENHANCED HOME/DASHBOARD ANIMATIONS === */

/* Hero Section */
.hero-section {
  margin-bottom: 2rem;
}

.hero-card {
  border: none;
  position: relative;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmerHero 3s infinite;
}

@keyframes shimmerHero {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: bgFloat 6s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-content {
  animation: slideInUp 0.8s ease-out;
}

.hero-title {
  font-weight: 700;
  letter-spacing: -1px;
  animation: slideInDown 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  animation: fadeIn 1s ease-out 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(15deg); }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-hover-scale {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hover-scale:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Stats Section */
.stats-section {
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #f0f1f3;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card.success::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.stat-card.warning::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-card.info::before {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-card.danger::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.stat-card-premium {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.stat-card-premium:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.stat-card.success .stat-icon {
  color: #10b981;
  animation: float 3.2s ease-in-out infinite;
}

.stat-card.warning .stat-icon {
  color: #f59e0b;
  animation: float 3.4s ease-in-out infinite;
}

.stat-card.info .stat-icon {
  color: #3b82f6;
  animation: float 3.6s ease-in-out infinite;
}

.stat-card.danger .stat-icon {
  color: #ef4444;
  animation: float 3.8s ease-in-out infinite;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 10px 0;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.stat-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  animation: expandWidth 2s ease-out forwards;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 100%; }
}

/* Quick Actions Section */
.quick-actions-section {
  margin-bottom: 3rem;
}

.quick-header {
  position: relative;
  overflow: hidden;
}

.quick-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
  animation: shimmer 3s ease-in-out infinite;
}

.btn-action-card {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: var(--white);
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.btn-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--success-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-action-card:hover::before {
  transform: scaleX(1);
}

.btn-action-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.action-icon-wrapper {
  position: relative;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.action-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.action-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--success-color);
  color: var(--white);
  font-size: 7px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 1; 
  }
  50% { 
    transform: scale(1.1); 
    opacity: 0.8; 
  }
}

.action-content {
  flex: 1;
  min-width: 0;
}

.action-content h6 {
  font-size: 10px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 2px;
  margin-top: 0;
}

.action-content p {
  font-size: 8px;
  color: #6b7280;
  margin: 0;
  line-height: 1.1;
}

.action-arrow {
  color: var(--primary-color);
  font-size: 11px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-4px);
}

.btn-action-card:hover .action-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Specific button colors */
.deposit-btn:hover .action-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.deposit-btn:hover .action-badge {
  background: #10b981;
}

.invest-btn:hover .action-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.invest-btn:hover .action-badge {
  background: #f59e0b;
}

.withdraw-btn:hover .action-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.withdraw-btn:hover .action-badge {
  background: #ef4444;
}

.profile-btn:hover .action-icon {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.profile-btn:hover .action-badge {
  background: #6b7280;
}

.team-btn:hover .action-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.team-btn:hover .action-badge {
  background: #3b82f6;
}

.transactions-btn:hover .action-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.transactions-btn:hover .action-badge {
  background: #8b5cf6;
}

.investments-btn:hover .action-icon {
  background: linear-gradient(135deg, #14b8a6 0%, #059669 100%);
}

.investments-btn:hover .action-badge {
  background: #14b8a6;
}

/* Finance Buttons Section */
.finance-buttons-section {
  margin-bottom: 3rem;
}

.finance-btn-card {
  background: var(--white);
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid transparent;
  background-clip: padding-box;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.finance-btn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--success-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.finance-btn-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.finance-btn-card:hover::before {
  transform: scaleX(1);
}

.finance-btn-card:hover::after {
  opacity: 1;
}

.finance-btn-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}

.deposit-btn-card:hover::before {
  background: linear-gradient(90deg, #10b981, #059669, #047857);
}

.withdraw-btn-card:hover::before {
  background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
}

.finance-btn-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 35px;
  display: flex;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
}

.finance-btn-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: rotate 10s linear infinite;
}

.finance-btn-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.finance-btn-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.deposit-btn-card .finance-btn-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.withdraw-btn-card .finance-btn-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

.finance-btn-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: iconRotate 6s linear infinite;
}

.finance-btn-card:hover .finance-btn-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.finance-btn-title h4 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.finance-btn-title p {
  color: #6b7280;
  font-size: 15px;
  margin: 0;
  font-weight: 500;
}

.finance-btn-body {
  padding: 35px;
  text-align: center;
  position: relative;
}

.balance-info {
  margin-bottom: 30px;
  position: relative;
}

.balance-info::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  transform: translate(-50%, -50%);
}

.balance-label {
  display: block;
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.balance-amount {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  position: relative;
  z-index: 1;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--white);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-action::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-action:hover::before {
  left: 100%;
}

.btn-action:hover::after {
  opacity: 1;
}

.btn-deposit-action {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.btn-deposit-action:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.5);
}

.btn-withdraw-action {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

.btn-withdraw-action:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.5);
}

/* Finance Section Animations */
@keyframes financeSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes iconRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.finance-btn-card {
  animation: financeSlideIn 0.8s ease-out;
}

.finance-btn-card:nth-child(2) {
  animation-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .finance-btn-header {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .finance-btn-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .finance-btn-title h4 {
    font-size: 20px;
  }
  
  .finance-btn-body {
    padding: 20px;
  }
  
  .balance-amount {
    font-size: 24px;
  }
  
  .btn-action {
    padding: 12px 20px;
    font-size: 14px;
  }
}

.quick-header {
  border-bottom: 2px solid #f0f1f3;
  transition: all 0.3s ease;
}

.shadow-elevation {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: none;
}

.shadow-elevation:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.quick-actions-grid {
  gap: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.btn-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  min-width: 80px;
  max-width: 110px;
  color: white;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-action-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-action-card:hover::before {
  width: 400px;
  height: 400px;
}

.action-icon {
  font-size: 2rem;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-action-card:hover .action-icon {
  transform: scale(1.15) rotate(5deg);
}

.deposit-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.deposit-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.4);
}

.invest-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.invest-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.4);
}

.withdraw-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.withdraw-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4);
}

.profile-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.profile-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.4);
}

/* Investments & Transactions Section */
.investments-section {
  margin-bottom: 3rem;
}

.table-row-animate {
  transition: all 0.3s ease;
}

.table-row-animate:hover {
  background: rgba(99, 102, 241, 0.05);
  transform: translateX(4px);
}

.empty-state {
  text-align: center;
  padding: 30px;
  font-size: 1.1rem;
}

.empty-state i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 10px;
  display: block;
}

.link-highlight {
  color: #2563eb;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.link-highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2563eb;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.link-highlight:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Features Section */
.features-section {
  margin-bottom: 3rem;
}

.feature-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  border: 1px solid #f0f1f3;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  border-color: #667eea;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
  color: #667eea;
  animation: bounce 2s ease-in-out infinite;
}

.feature-icon.success {
  color: #10b981;
}

.feature-icon.info {
  color: #3b82f6;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Plans Section */
.plans-section {
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 0;
}

.plan-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 10;
}

.plan-card:hover::before {
  transform: scaleX(1);
}

.plan-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}

.plan-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f3 100%);
  border-bottom: none;
  padding: 20px;
  transition: all 0.3s ease;
}

.plan-card:hover .plan-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.plan-body {
  padding: 25px;
}

.plan-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  height: 150px;
  background: #f0f1f3;
}

.plan-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plan-card:hover .plan-image {
  transform: scale(1.1) rotate(1deg);
}

.price-display {
  font-size: 1.8rem;
  font-weight: 700;
  animation: slideInUp 0.6s ease-out 0.1s both;
}

.plan-details {
  margin: 15px 0;
  animation: slideInUp 0.6s ease-out 0.15s both;
}

.plan-details p {
  margin-bottom: 8px;
}

.plan-details .badge {
  font-size: 0.85rem;
  padding: 6px 12px;
}

.plan-description {
  margin: 15px 0;
  line-height: 1.6;
}

.plan-footer {
  background: #f8f9fa;
  padding: 20px;
  border-top: 1px solid #f0f1f3;
  transition: all 0.3s ease;
}

.plan-card:hover .plan-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-invest {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-invest::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-invest:hover::after {
  width: 300px;
  height: 300px;
}

.btn-invest:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.plan-card:hover .btn-invest {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: transparent;
}

/* Badge Pulse Animation */
.badge-pulse {
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-card {
    margin-bottom: 15px;
  }

  .btn-action-card {
    padding: 20px;
  }

  .plan-card {
    margin-bottom: 20px;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
}
