:root {
  /* Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --dark-gradient: linear-gradient(135deg, #232526 0%, #414345 100%);

  /* Background Colors */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-glass: rgba(255, 255, 255, 0.1);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b4b4b4;
  --text-accent: #64ffda;

  /* Accent Colors */
  --accent-primary: #64ffda;
  --accent-secondary: #ff6b9d;
  --success: #00e676;
  --error: #ff5722;
  --warning: #ffc107;

  /* Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg-primary);
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 107, 157, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(100, 255, 218, 0.2) 0%,
      transparent 50%
    );
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(15, 15, 35, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo i {
  font-size: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

.nav-logo span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-right: 15px;
  margin-left: 15px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  background: rgba(100, 255, 218, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Workspace Selector */
.workspace-selector {
  position: relative;
  margin-right: 1rem;
}

.workspace-current {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 8px;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.workspace-current:hover {
  background: rgba(100, 255, 218, 0.2);
  transform: translateY(-2px);
}

.workspace-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.workspace-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.workspace-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.workspace-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.workspace-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.workspace-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.workspace-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.workspace-item:hover,
.workspace-item.active {
  background: rgba(100, 255, 218, 0.1);
}

.workspace-item:last-child {
  border-bottom: none;
}

.workspace-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: bold;
  font-size: 0.8rem;
}

.owner-badge {
  margin-left: auto;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.workspace-divider {
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workspace-footer {
  padding: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.add-workspace-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-workspace-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.currency-btn {
  padding: 0.5rem 1rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 8px;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.currency-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  transform: translateY(-2px);
}

.currency-btn i {
  font-size: 1rem;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
}

.username {
  font-weight: 500;
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--accent-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 5px;
}

/* Main Content */
.main-content {
  padding-top: 100px;
  min-height: 100vh;
}

/* Full Hero Section */
.hero-section-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  top: 60%;
  right: 10%;
  animation-delay: 7s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  bottom: 20%;
  left: 50%;
  animation-delay: 14s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.1);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  75% {
    transform: translate(20px, 30px) scale(1.05);
  }
}

.hero-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 50px;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
  color: #ffd700;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-primary {
  padding: 1rem 2.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.cta-secondary {
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-pill:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.feature-pill i {
  color: var(--accent-primary);
  font-size: 1.1rem;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Features Showcase Section */
.features-showcase {
  padding: 0 0;
  background: rgba(255, 255, 255, 0.02);
}

.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 0.1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
  border-color: rgba(100, 255, 218, 0.3);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.step-card {
  text-align: center;
  position: relative;
  padding: 2rem;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  z-index: 2;
}

.step-icon {
  width: 100px;
  height: 100px;
  margin: 2rem auto 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(100, 255, 218, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-primary);
  transition: all 0.4s ease;
}

.step-card:hover .step-icon {
  transform: scale(1.1);
  background: rgba(100, 255, 218, 0.1);
  border-color: var(--accent-primary);
}

.step-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Quick Stats Section */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.08);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stat-value.income {
  color: var(--success);
}

.stat-value.expense {
  color: var(--error);
}

/* Balance Card */
.balance-card {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-out 0.6s both;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto 2rem;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(100, 255, 218, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.balance-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.balance-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.balance-header i {
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.balance-header h4 {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.balance-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.balance-trend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.trend-indicator {
  font-size: 1.5rem;
  font-weight: bold;
}

.trend-indicator.positive {
  color: var(--success);
}

.trend-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Budget Card */
.budget-card {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.1) 0%,
    rgba(255, 193, 122, 0.1) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 157, 0.2);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(255, 107, 157, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-out 0.8s both;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto 2rem;
  position: relative;
  overflow: hidden;
}

.budget-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 157, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.budget-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.budget-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.budget-header i {
  color: var(--accent-secondary);
  font-size: 1.5rem;
}

.budget-header h4 {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.set-budget-btn {
  position: absolute;
  right: 0;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.set-budget-btn:hover {
  background: rgba(255, 107, 157, 0.2);
  transform: scale(1.1);
}

.budget-content {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.budget-amount,
.budget-spent,
.budget-remaining {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.budget-limit,
.budget-spent,
.budget-remaining {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.budget-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.budget-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--warning));
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-fill.warning {
  background: linear-gradient(90deg, var(--warning), var(--error));
}

.progress-fill.exceeded {
  background: linear-gradient(90deg, var(--error), #ff5722);
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.budget-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: 8px;
  color: var(--error);
  font-weight: 500;
  animation: pulse 2s infinite;
}

.budget-alert i {
  font-size: 1.2rem;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Dashboard Grid (Mobile First) */
.inc-exp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 2rem;
}

.income-card,
.expense-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.income-card:hover,
.expense-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.income-icon {
  background: var(--success-gradient);
}

.expense-icon {
  background: var(--warning-gradient);
}

.card-content h4 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.money-plus {
  color: var(--success);
  font-size: 1.5rem;
  font-weight: 600;
}

.money-minus {
  color: var(--error);
  font-size: 1.5rem;
  font-weight: 600;
}

/* History Section */
.history-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  animation: fadeInUp 1s ease-out 0.8s both;
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.section-header h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
  margin: 0;
}

.section-header h3 i {
  color: var(--accent-primary);
}

.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-container {
  position: relative;
  max-width: 300px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.advanced-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-select,
.date-input,
.amount-input {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.category-select:focus,
.date-input:focus,
.amount-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(100, 255, 218, 0.1);
}

.category-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.date-filters,
.amount-filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.date-input,
.amount-input {
  cursor: text;
}

.amount-input::placeholder,
.date-input::placeholder {
  color: var(--text-secondary);
}

.clear-filters-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 87, 34, 0.2);
  color: var(--error);
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-filters-btn:hover {
  background: rgba(255, 87, 34, 0.3);
  border-color: var(--error);
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.list {
  list-style: none;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.list::-webkit-scrollbar {
  width: 8px;
}

.list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.list::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

.list li {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
  animation: slideInLeft 0.3s ease-out;
  max-width: 100%;
  word-break: break-word;
}

.list li:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
}

.list li.plus {
  border-left: 4px solid var(--success);
}

.list li.minus {
  border-left: 4px solid var(--error);
}

.delete-btn {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--error);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list li:hover .delete-btn {
  opacity: 1;
}

.delete-btn:hover {
  background: #d32f2f;
  transform: translateY(-50%) scale(1.1);
}

/* Data Management Section */
.data-management-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  animation: fadeInUp 1s ease-out 0.9s both;
}

.data-management-section h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.data-management-section h3 i {
  color: var(--accent-primary);
}

.data-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.export-section,
.import-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.export-section h4,
.import-section h4 {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.export-buttons {
  display: flex;
  gap: 1rem;
}

.export-btn {
  padding: 0.75rem 1.5rem;
  background: var(--success-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.import-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.file-input {
  display: none;
}

.file-label {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.file-label:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

.import-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.import-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.import-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.import-options {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
}

/* Form Section */
.form-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  animation: fadeInUp 1s ease-out 1s both;
}

.form-section h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

.form-section h3 i {
  color: var(--accent-primary);
}

.transaction-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-control label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control input {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-control input::placeholder {
  color: var(--text-secondary);
}

.form-control select {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-control select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-control select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

.form-control small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: italic;
}

.btn-submit {
  padding: 1rem 2rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

/* Footer */
.footer {
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.footer-logo i {
  font-size: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-section h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
}

.footer-bottom .footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-stats span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Transaction Display Improvements */
.transaction-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.transaction-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transaction-text {
  font-weight: 500;
  color: var(--text-primary);
}

.transaction-amount {
  font-weight: 600;
  font-size: 1.1rem;
}

.transaction-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.transaction-category {
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: rgba(100, 255, 218, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  margin-top: 0.25rem;
  display: inline-block;
}

/* Balance Card States */
.balance-card.positive .balance-amount {
  color: var(--success);
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.balance-card.negative .balance-amount {
  color: var(--error);
  text-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
}

.balance-card.neutral .balance-amount {
  color: var(--text-secondary);
  text-shadow: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
    display: flex;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 80%;
    text-align: center;
    margin: 0.5rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .user-profile {
    display: none;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section-full {
    min-height: 90vh;
    padding: 6rem 1.5rem 3rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .hero-features {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-pill {
    justify-content: center;
  }

  .scroll-indicator {
    margin-top: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .features-showcase,
  .how-it-works {
    padding: 4rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .inc-exp-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-bottom .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .balance-amount {
    font-size: 2rem;
  }

  .income-card,
  .expense-card {
    flex-direction: column;
    text-align: center;
  }

  .card-icon {
    width: 50px;
    height: 50px;
  }

  .advanced-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .date-filters,
  .amount-filters {
    justify-content: stretch;
  }

  .date-input,
  .amount-input,
  .category-select {
    flex: 1;
  }

  .data-actions {
    grid-template-columns: 1fr;
  }
}

/* PWA Install Prompt */
.install-prompt {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  animation: slideInUp 0.3s ease-out;
}

.install-prompt-content {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.install-prompt-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.install-prompt-header i {
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.install-prompt-header h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.install-prompt p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.install-prompt-actions {
  display: flex;
  gap: 1rem;
}

.install-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dismiss-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Offline Indicator */
.offline-indicator {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 152, 0, 0.9);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
  animation: slideInDown 0.3s ease-out;
}

/* Update Notification */
.update-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
}

.update-content {
  background: rgba(76, 175, 80, 0.9);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.update-btn {
  background: white;
  color: #4caf50;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.update-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Touch and gesture improvements */
@media (hover: none) and (pointer: coarse) {
  /* Touch device specific styles */
  .filter-btn,
  .export-btn,
  .import-btn,
  .btn-submit {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }

  .delete-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .nav-link {
    padding: 1rem 1.5rem;
  }

  /* Larger tap targets for mobile */
  .category-select,
  .date-input,
  .amount-input,
  .search-input {
    min-height: 48px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .form-control input,
  .form-control select {
    min-height: 48px;
    font-size: 16px;
  }
}

/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Safe area insets for devices with notches */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .main-content {
    padding-left: max(2rem, env(safe-area-inset-left) + 2rem);
    padding-right: max(2rem, env(safe-area-inset-right) + 2rem);
    padding-bottom: max(2rem, env(safe-area-inset-bottom) + 2rem);
  }

  .install-prompt {
    bottom: max(20px, env(safe-area-inset-bottom) + 20px);
    left: max(20px, env(safe-area-inset-left) + 20px);
    right: max(20px, env(safe-area-inset-right) + 20px);
  }
}

.empty-state {
  list-style: none;
  display: flex;
  justify-content: center;
}

.empty-state-content {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px dashed rgba(100, 255, 218, 0.4);
  border-radius: 12px;
  background: rgba(100, 255, 218, 0.05);
}

/* ULTRA SMALL DEVICES (320px)*/
@media (max-width: 360px) {
  /* Global */
  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
  }

  .container {
    padding: 0.75rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Navbar */
  .nav-logo span {
    font-size: 0.9rem;
  }

  .nav-toggle .bar {
    width: 22px;
    height: 2.5px;
  }

  /* Hero */
  .hero-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  /* Balance */
  .balance-card {
    padding: 1rem;
  }

  .balance-amount {
    font-size: 1.5rem;
  }

  /* Income / Expense cards */
  .income-card,
  .expense-card {
    padding: 0.75rem;
  }

  /* Filters */
  .search-input,
  .category-select,
  .date-input,
  .amount-input,
  .filter-btn,
  .clear-filters-btn {
    width: 100%;
    min-width: 0;
    font-size: 0.85rem;
  }

  .filter-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Transaction list */
  .list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  /* Form */
  .transaction-form {
    padding: 1rem;
  }

  .transaction-form input,
  .transaction-form select,
  .btn-submit {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .nav-logo span {
    font-size: 0.85rem;
  }
}

input,
select,
button {
  max-width: 100%;
  min-width: 0;
}

/* ========================
   ANALYTICS DASHBOARD STYLES
   ======================== */

.analytics-dashboard {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.7s both;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.analytics-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.analytics-header h3 i {
  color: var(--accent-primary);
}

.refresh-analytics-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.refresh-analytics-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.analytics-widget {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.analytics-widget:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.widget-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-secondary);
  gap: 0.5rem;
}

.widget-loading i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

/* Velocity Widget */
.velocity-widget {
  grid-column: span 2;
}

.velocity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.velocity-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.velocity-header h4 i {
  color: var(--accent-primary);
}

.velocity-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.velocity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.velocity-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.velocity-stat .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.velocity-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.velocity-stat.projected .stat-value {
  color: var(--warning);
}

.velocity-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Category Chart Widget */
.category-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.category-chart-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-chart-header h4 i {
  color: var(--accent-primary);
}

.total-amount {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.category-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-bar-item {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  align-items: center;
  gap: 1rem;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-icon {
  font-size: 1.1rem;
}

.category-name {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.category-bar-wrapper {
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.category-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.category-stats {
  text-align: right;
}

.category-amount {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.category-percent {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Trends Chart Widget */
.trends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.trends-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trends-header h4 i {
  color: var(--accent-primary);
}

.trends-legend {
  display: flex;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-item.income .legend-dot {
  background: var(--success);
}

.legend-item.expense .legend-dot {
  background: var(--error);
}

.trends-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 150px;
  padding: 0.5rem 0;
  gap: 0.5rem;
}

.trend-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
}

.trend-bar {
  width: 20px;
  border-radius: 5px 5px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 4px;
}

.trend-bar.income {
  background: var(--success);
}

.trend-bar.expense {
  background: var(--error);
}

.trend-bar:hover {
  opacity: 0.8;
  transform: scaleY(1.02);
}

.trend-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
}

.trends-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
  text-align: center;
}

.summary-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.summary-value {
  font-weight: 600;
  font-size: 0.9rem;
}

.summary-value.expense {
  color: var(--error);
}

.summary-value.positive {
  color: var(--success);
}

.summary-value.negative {
  color: var(--error);
}

/* Predictions Widget */
.predictions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.predictions-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.predictions-header h4 i {
  color: var(--accent-primary);
}

.confidence-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(100, 255, 218, 0.2);
  color: var(--accent-primary);
  border-radius: 20px;
}

.prediction-main {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  margin-bottom: 1rem;
}

.prediction-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.prediction-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.prediction-trend {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.prediction-trend.positive {
  color: var(--success);
}

.prediction-trend.negative {
  color: var(--error);
}

.prediction-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.detail-item {
  text-align: center;
  padding: 0.5rem;
}

.detail-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.detail-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Insights Widget */
.insights-widget {
  grid-column: span 2;
}

.insights-header {
  margin-bottom: 1rem;
}

.insights-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.insights-header h4 i {
  color: #ffc107;
}

.insights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.insight-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
}

.insight-card.success {
  border-left-color: var(--success);
}

.insight-card.warning {
  border-left-color: var(--warning);
}

.insight-card.danger {
  border-left-color: var(--error);
}

.insight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(100, 255, 218, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insight-card.success .insight-icon {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success);
}

.insight-card.warning .insight-icon {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning);
}

.insight-card.danger .insight-icon {
  background: rgba(255, 87, 34, 0.2);
  color: var(--error);
}

.insight-icon i {
  color: var(--accent-primary);
}

.insight-content h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.insight-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.insight-suggestion {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-style: italic;
}

/* Responsive Analytics */
@media (max-width: 768px) {
  .analytics-dashboard {
    padding: 1.5rem;
  }

  .analytics-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .refresh-analytics-btn {
    width: 100%;
    justify-content: center;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .velocity-widget,
  .insights-widget {
    grid-column: span 1;
  }

  .velocity-stats {
    grid-template-columns: 1fr;
  }

  .category-bar-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .category-stats {
    text-align: left;
    display: flex;
    gap: 1rem;
  }

  .trends-chart-container {
    height: 120px;
  }

  .trend-bar {
    width: 15px;
  }

  .trends-summary {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .prediction-details {
    grid-template-columns: 1fr;
  }

  .insights-list {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   CURRENCY SUPPORT STYLES
   =============================== */

/* Currency Button in Navbar */
.currency-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 8px;
  color: var(--accent-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.currency-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.currency-btn i {
  font-size: 1rem;
}

/* Currency Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.close-modal {
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-modal:hover {
  color: var(--error);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Currency Select Styling */
.currency-select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.currency-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.currency-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Exchange Rate Info Display */
.exchange-rate-info {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
}

.rate-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: rgba(100, 255, 218, 0.05);
  border-radius: 6px;
  border-left: 3px solid var(--accent-primary);
}

.rate-currency {
  font-weight: 600;
  color: var(--text-primary);
}

.rate-value {
  font-family: "Courier New", monospace;
  color: var(--accent-primary);
  font-weight: 600;
}

.exchange-rate-info small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Modal Buttons */
.btn-cancel {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

/* Currency Badge in Transaction List */
.transaction-currency {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* =========================
   AI CATEGORIZATION STYLES
   ========================= */

/* Description input wrapper */
.description-input-wrapper {
  position: relative;
  width: 100%;
}

/* Category suggestions dropdown */
.category-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-glass);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.category-suggestions.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-suggestions.hidden {
  display: none;
}

/* Suggestion header */
.suggestions-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestions-header i {
  color: var(--accent-primary);
  animation: pulse 2s infinite;
}

.suggestions-header span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Suggestion item */
.suggestion-item {
  padding: 0.875rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: translateX(5px);
}

.suggestion-item.primary {
  background: linear-gradient(
    135deg,
    rgba(100, 255, 218, 0.15),
    rgba(100, 255, 218, 0.05)
  );
}

.suggestion-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.suggestion-category {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.suggestion-category-icon {
  font-size: 1.2rem;
}

.suggestion-reason {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.suggestion-reason i {
  font-size: 0.7rem;
  color: var(--accent-primary);
}

/* Confidence badge */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(100, 255, 218, 0.2),
    rgba(100, 255, 218, 0.1)
  );
  color: var(--accent-primary);
  margin-left: 0.5rem;
}

.confidence-badge.hidden {
  display: none;
}

.confidence-badge i {
  font-size: 0.7rem;
}

/* Confidence bar in suggestion */
.suggestion-confidence {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 60px;
}

.confidence-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.confidence-bar {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--success));
  transition: width 0.3s ease;
}

/* Confidence levels - different colors */
.confidence-high .confidence-fill {
  background: linear-gradient(90deg, #00e676, #00c853);
}

.confidence-medium .confidence-fill {
  background: linear-gradient(90deg, #ffc107, #ff9800);
}

.confidence-low .confidence-fill {
  background: linear-gradient(90deg, #ff5722, #f44336);
}

/* Loading state */
.suggestions-loading {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.suggestions-loading i {
  animation: spin 1s linear infinite;
}

/* ULTRA SMALL DEVICES (320px)*/
@media (max-width: 360px) {
  /* Global */
  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
  }

  .container {
    padding: 0.75rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Navbar */
  .nav-logo span {
    font-size: 0.9rem;
  }

  .nav-toggle .bar {
    width: 22px;
    height: 2.5px;
  }

  /* Hero */
  .hero-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  /* Balance */
  .balance-card {
    padding: 1rem;
  }

  .balance-amount {
    font-size: 1.5rem;
  }

  /* Income / Expense cards */
  .income-card,
  .expense-card {
    padding: 0.75rem;
  }

  /* Filters */
  .search-input,
  .category-select,
  .date-input,
  .amount-input,
  .filter-btn,
  .clear-filters-btn {
    width: 100%;
    min-width: 0;
    font-size: 0.85rem;
  }

  .filter-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Transaction list */
  .list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  /* Form */
  .transaction-form {
    padding: 1rem;
  }

  .transaction-form input,
  .transaction-form select,
  .btn-submit {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .nav-logo span {
    font-size: 0.85rem;
  }
}

input,
select,
button {
  max-width: 100%;
  min-width: 0;
}

/* ========================
   EXPORT MODAL STYLES
   ======================== */

.export-btn.pdf-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.export-btn.pdf-btn:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.export-btn.advanced-btn {
  background: var(--primary-gradient);
}

.export-btn.advanced-btn:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Export Modal */
.export-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.export-modal.active {
  opacity: 1;
  visibility: visible;
}

.export-modal-content {
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.export-modal.active .export-modal-content {
  transform: translateY(0);
}

.export-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.export-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.export-modal-header h3 i {
  color: var(--accent-primary);
}

.export-modal-body {
  padding: 2rem;
}

.export-format-section,
.export-filters-section,
.export-preview-section {
  margin-bottom: 2rem;
}

.export-format-section h4,
.export-filters-section h4,
.export-preview-section h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Format Options */
.format-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.format-option {
  cursor: pointer;
}

.format-option input {
  display: none;
}

.format-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.format-option input:checked + .format-card {
  border-color: var(--accent-primary);
  background: rgba(100, 255, 218, 0.1);
}

.format-card i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.format-card .format-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.format-card .format-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.format-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Filter Grid */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Export Preview */
.export-preview {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.export-preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.preview-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.preview-stat .stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.preview-stat .stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-stat.income .stat-value {
  color: var(--success);
}

.preview-stat.expense .stat-value {
  color: var(--error);
}

.preview-stat.positive .stat-value {
  color: var(--success);
}

.preview-stat.negative .stat-value {
  color: var(--error);
}

.export-preview-loading,
.export-preview-error,
.export-preview-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.export-preview-empty i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.export-preview-error {
  color: var(--error);
}

/* Export Modal Footer */
.export-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Export Notification */
.export-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  font-weight: 500;
}

.export-notification.show {
  transform: translateX(0);
}

.export-notification.success {
  background: linear-gradient(
    135deg,
    rgba(0, 230, 118, 0.9) 0%,
    rgba(0, 200, 83, 0.9) 100%
  );
  color: white;
}

.export-notification.error {
  background: linear-gradient(
    135deg,
    rgba(255, 87, 34, 0.9) 0%,
    rgba(244, 67, 54, 0.9) 100%
  );
  color: white;
}

.export-notification.info {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.9) 0%,
    rgba(118, 75, 162, 0.9) 100%
  );
  color: white;
}

/* Responsive Export Modal */
@media (max-width: 768px) {
  .export-modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .export-modal-body {
    padding: 1.5rem;
  }

  .format-options {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .export-preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .export-modal-footer {
    flex-direction: column;
  }

  .export-modal-footer button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .export-preview-stats {
    grid-template-columns: 1fr;
  }

  .export-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .export-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive Design for Currency Features */
@media (max-width: 768px) {
  .currency-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
  }

  .currency-btn span {
    display: none;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .rate-list {
    gap: 0.5rem;
  }

  /* AI Categorization responsive */
  .category-suggestions {
    max-height: 250px;
  }

  .suggestion-item {
    padding: 0.75rem;
  }

  .suggestion-confidence {
    min-width: 50px;
  }

  .confidence-bar {
    width: 40px;
  }
}

/* =========================
   WIDTH PRESERVATION FIX
   (Keeps original layout)
========================= */

/* Ensure container width stays exactly the same */
.container,
.nav-container,
.footer-container {
  max-width: 1200px;
  /* same as before */
  margin-left: auto;
  margin-right: auto;
}

/* Cards should NOT stretch wider */
.balance-card,
.history-section,
.form-section,
.data-management-section,
.income-card,
.expense-card {
  width: 100%;
  max-width: 100%;
}

/* Grid spacing only – no width change */
.container {
  row-gap: 3.5rem;
}

/* Income / Expense grid keeps original width */
.inc-exp-container {
  grid-template-columns: 1fr 1fr;
  /* unchanged */
  gap: 2.5rem;
}

/* Prevent accidental full-screen stretch */
.main-content {
  width: 100%;
  overflow-x: hidden;
}

/* Mobile stays stacked like before */
@media (max-width: 768px) {
  .inc-exp-container {
    grid-template-columns: 1fr;
  }
}

/* =========================
   REDUCED CARD SPACING
   (Width & style preserved)
========================= */

/* Main container – smaller vertical gap */
.main-content .container {
  row-gap: 1.6rem !important;
}

/* Cards – subtle spacing only */
.balance-card,
.history-section,
.form-section,
.data-management-section {
  margin-top: 0.6rem !important;
  margin-bottom: 0.6rem !important;
}

/* Income & Expense cards */
.inc-exp-container {
  gap: 1.2rem !important;
}

/* Transaction list items */
.list li {
  margin-bottom: 0.6rem !important;
}

/* Footer spacing */
.footer-container {
  row-gap: 1.5rem !important;
}

/* Mobile refinement */
@media (max-width: 768px) {
  .main-content .container {
    row-gap: 1.3rem !important;
  }
}

/* =========================
   RECURRING EXPENSES MODAL
========================= */

/* Recurring Modal Overlay */
.recurring-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 35, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.recurring-modal.active {
  display: flex;
}

/* Modal Content Container */
.recurring-modal-content {
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.98) 0%,
    rgba(22, 33, 62, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.recurring-modal-header {
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(100, 255, 218, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recurring-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.recurring-modal-header h3::before {
  content: "🔄";
  font-size: 1.5rem;
}

/* Modal Close Button */
.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-close-btn:hover {
  background: rgba(255, 87, 34, 0.2);
  color: var(--error);
  border-color: rgba(255, 87, 34, 0.3);
  transform: rotate(90deg);
}

/* Recurring Form */
.recurring-form {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 160px);
}

.recurring-form::-webkit-scrollbar {
  width: 8px;
}

.recurring-form::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.recurring-form::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 10px;
}

.recurring-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.recurring-form .form-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recurring-form .form-control label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recurring-form .form-control input,
.recurring-form .form-control select,
.recurring-form .form-control textarea {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.recurring-form .form-control input:focus,
.recurring-form .form-control select:focus,
.recurring-form .form-control textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(100, 255, 218, 0.08);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.recurring-form .form-control input::placeholder,
.recurring-form .form-control textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.recurring-form .form-control select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

.recurring-form .form-control textarea {
  resize: vertical;
  min-height: 80px;
}

/* Checkbox Control */
.recurring-form .checkbox-control {
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
}

.recurring-form .checkbox-control .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.recurring-form .checkbox-control input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-primary);
  border-radius: 4px;
}

.recurring-form .full-width {
  grid-column: 1 / -1;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.btn-cancel {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-submit {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

/* Recurring Section Styles */
.recurring-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  animation: fadeInUp 1s ease-out 1.2s both;
}

/* Section Header with Button */
.recurring-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.recurring-section .section-header h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: none;
}

.recurring-section .section-header h3 i {
  color: var(--accent-primary);
  font-size: 1.5rem;
}

/* Add Recurring Button */
.add-recurring-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.add-recurring-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

/* Recurring Statistics Container */
.recurring-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Individual Stat Card */
.recurring-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.recurring-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(100, 255, 218, 0.3);
}

.recurring-stat-card.expense {
  border-left: 3px solid var(--error);
}

.recurring-stat-card.income {
  border-left: 3px solid var(--success);
}

.recurring-stat-card.positive {
  border-left: 3px solid var(--success);
}

.recurring-stat-card.negative {
  border-left: 3px solid var(--error);
}

.stat-icon {
  font-size: 1.75rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.recurring-stat-card.expense .stat-icon {
  color: var(--error);
  background: rgba(255, 87, 34, 0.1);
}

.recurring-stat-card.income .stat-icon {
  color: var(--success);
  background: rgba(0, 230, 118, 0.1);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.recurring-stat-card.expense .stat-value {
  color: var(--error);
}

.recurring-stat-card.income .stat-value {
  color: var(--success);
}

.recurring-stat-card.positive .stat-value {
  color: var(--success);
}

.recurring-stat-card.negative .stat-value {
  color: var(--error);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Recurring List Container */
.recurring-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Empty State */
.recurring-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(100, 255, 218, 0.05);
  border: 2px dashed rgba(100, 255, 218, 0.3);
  border-radius: 15px;
  color: var(--text-secondary);
}

.recurring-empty i {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.recurring-empty p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: var(--text-primary);
  font-weight: 500;
}

.recurring-empty small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Individual Recurring Card */
.recurring-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recurring-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(100, 255, 218, 0.3);
}

.recurring-card.expense {
  border-left: 3px solid var(--error);
}

.recurring-card.income {
  border-left: 3px solid var(--success);
}

/* Card Header */
.recurring-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.recurring-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.recurring-card.expense .recurring-icon {
  background: rgba(255, 87, 34, 0.1);
  color: var(--error);
}

.recurring-card.income .recurring-icon {
  background: rgba(0, 230, 118, 0.1);
  color: var(--success);
}

/* Card Info */
.recurring-info {
  flex: 1;
  min-width: 0;
}

.recurring-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recurring-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Card Amount */
.recurring-amount {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.recurring-card.expense .recurring-amount {
  color: var(--error);
}

.recurring-card.income .recurring-amount {
  color: var(--success);
}

/* Card Details */
.recurring-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recurring-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recurring-detail-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.recurring-detail-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Card Actions */
.recurring-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recurring-actions button {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.recurring-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.recurring-actions button.edit-btn {
  border-color: rgba(102, 126, 234, 0.5);
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
}

.recurring-actions button.edit-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.recurring-actions button.delete-btn {
  border-color: rgba(255, 87, 34, 0.5);
  background: rgba(255, 87, 34, 0.1);
  color: var(--error);
}

.recurring-actions button.delete-btn:hover {
  background: rgba(255, 87, 34, 0.2);
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

/* Responsive Recurring Modal */
@media (max-width: 768px) {
  .recurring-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .recurring-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .recurring-modal-header h3 {
    font-size: 1.2rem;
  }

  .recurring-form {
    padding: 1.5rem;
  }

  .recurring-form .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-submit {
    width: 100%;
  }

  /* Recurring Section Responsive */
  .recurring-section {
    padding: 1.5rem;
  }

  .recurring-section .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .add-recurring-btn {
    width: 100%;
    justify-content: center;
  }

  .recurring-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .recurring-card {
    padding: 1.25rem;
  }

  .recurring-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
  }

  .recurring-info {
    order: 2;
  }

  .recurring-icon {
    margin: 0 auto;
  }

  .recurring-amount {
    text-align: center;
    order: 1;
  }

  .recurring-details {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .recurring-actions {
    flex-direction: column;
  }

  .recurring-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .recurring-modal-content {
    border-radius: 15px;
  }

  .recurring-modal-header {
    padding: 1rem 1.25rem;
  }

  .recurring-form {
    padding: 1.25rem;
  }

  .recurring-form .form-control input,
  .recurring-form .form-control select,
  .recurring-form .form-control textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }

  /* Additional 480px Recurring Section Responsive */
  .recurring-section {
    padding: 1rem;
  }

  .recurring-section .section-header h3 {
    font-size: 1.1rem;
  }

  .recurring-stats {
    gap: 0.5rem;
  }

  .recurring-stat-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .recurring-card {
    padding: 1rem;
  }

  .recurring-icon {
    width: 45px;
    height: 45px;
    font-size: 1.75rem;
  }

  .recurring-info h4 {
    font-size: 1rem;
  }

  .recurring-amount {
    font-size: 1.2rem;
  }

  .recurring-details {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .recurring-actions {
    gap: 0.5rem;
  }

  .recurring-actions button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Finance Tips Layout Enhancements */
.hero-section + .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.hero-section + .container .data-management-section {
  grid-column: 1 / -1;
}

.hero-section + .container .balance-card {
  margin: 0;
}

/* Budget Goals Dashboard */
#budget-goals-dashboard {
  max-width: 1200px;
  margin: 6rem auto 3rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-header h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--text-primary);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-actions button {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-actions button.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 10px 35px rgba(102, 126, 234, 0.35);
}

.dashboard-actions button.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.summary-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.metric .value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.budgets-section,
.goals-section,
.alerts-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.budgets-section h3,
.goals-section h3,
.alerts-section h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.budget-item,
.goal-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.budget-header,
.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.budget-header h4,
.goal-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.budget-percentage,
.goal-type {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.budget-progress,
.goal-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
}

.progress-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.goal-details,
.budget-details {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.goal-details .days-left {
  font-weight: 600;
  color: var(--accent-primary);
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.alert-icon {
  font-size: 1.5rem;
}

.alert-content h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.alert-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.alert-content span {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

#budget-modal .modal-content,
#goal-modal .modal-content {
  width: min(90vw, 520px);
  padding: 1.5rem;
}

.modal-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 0.75rem;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
  }

  .hero-section {
    padding: 4rem 1.5rem 2rem;
    text-align: left;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .cta-primary,
  .hero-cta .cta-secondary {
    width: 100%;
  }

  .hero-section + .container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  #budget-goals-dashboard {
    margin: 4.5rem 1rem;
    padding: 1.75rem;
  }

  .dashboard-actions button {
    flex: 1;
    justify-content: center;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .alerts-section {
    order: 3;
  }

  .items-list {
    max-height: 360px;
  }
}

/* ========================
   FINANCIAL GOALS STYLES
   ======================== */

.goals-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.add-goal-btn {
  padding: 0.6rem 1.2rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-goal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.goals-dashboard-container {
  margin-top: 1.5rem;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.goal-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.goal-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
}

.goal-card.completed {
  border-left: 4px solid var(--success);
}

.goal-card.overdue {
  border-left: 4px solid var(--error);
}

.goal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.goal-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.goal-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.goal-priority {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.goal-priority.low {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.goal-priority.medium {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.goal-priority.high {
  background: rgba(255, 87, 34, 0.2);
  color: #ff5722;
}

.goal-priority.critical {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.auto-badge {
  color: var(--accent-primary);
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

.goal-info h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.goal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0.25rem 0 0 0;
}

.goal-progress-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.progress-percent {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-amount {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.goal-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.goal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.goal-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.goal-actions {
  display: flex;
  gap: 0.75rem;
}

.goal-btn {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.goal-btn.contribute:hover {
  background: #4caf50;
  border-color: #4caf50;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }

  .goals-section {
    padding: 1.5rem;
  }
}

/* =========================
   WORKSPACE MANAGEMENT STYLES
   ========================= */
.workspace-selector {
  position: relative;
  display: inline-block;
  margin-right: 1.5rem;
}

.workspace-current {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}

.workspace-current:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
}

.workspace-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.workspace-info {
  display: flex;
  flex-direction: column;
}

.workspace-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workspace-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.workspace-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #1a1a36;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  z-index: 1000;
  display: none;
  animation: slideInUp 0.2s ease-out;
}

.workspace-dropdown.active {
  display: block;
}

.workspace-divider {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.workspace-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.workspace-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.workspace-item.active {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.workspace-avatar-sm {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.owner-badge {
  margin-left: auto;
  font-size: 0.65rem;
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  padding: 2px 6px;
  border-radius: 4px;
}

.workspace-footer {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.add-workspace-btn {
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-secondary);
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.add-workspace-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .workspace-selector {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }

  .workspace-current {
    width: 100%;
  }

  .workspace-dropdown {
    width: 100%;
    left: 0;
  }
}

/* =========================
   ANALYTICS & FORECASTING
   ========================= */
.analytics-section {
  margin-top: 4rem;
  padding: 2rem 0;
}

.analytics-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 992px) {
  .analytics-row {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.analytics-card h4 {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.analytics-card h4 i {
  color: var(--accent-primary);
}

/* Velocity & Forecast Widgets */
.sts-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sts-daily,
.sts-total {
  display: flex;
  flex-direction: column;
}

.sts-label,
.comm-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.sts-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sts-daily .sts-value {
  color: var(--accent-primary);
}

.sts-commitments {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 12px;
}

.commitment-item {
  display: flex;
  flex-direction: column;
}

.comm-value {
  font-weight: 600;
  font-size: 1rem;
}

.forecast-days {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(100, 255, 218, 0.1);
  padding: 2px 8px;
  border-radius: 50px;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

/* Prediction Widget */
.prediction-main {
  text-align: center;
  margin-bottom: 2rem;
}

.prediction-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.prediction-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 50px;
}

.prediction-trend.positive {
  background: rgba(0, 230, 118, 0.1);
  color: var(--success);
}

.prediction-trend.negative {
  background: rgba(255, 87, 34, 0.1);
  color: var(--error);
}

/* Insight Cards */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insight-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 4px solid var(--accent-primary);
}

.insight-card.warning {
  border-left-color: var(--warning);
}

.insight-card.danger {
  border-left-color: var(--error);
}

.insight-card.success {
  border-left-color: var(--success);
}

.insight-icon {
  font-size: 1.2rem;
  padding-top: 0.2rem;
}

.insight-content h5 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.insight-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.insight-suggestion {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-style: italic;
}

/* Charts */
.category-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-bar-item {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  align-items: center;
  gap: 1rem;
}

.category-bar-wrapper {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.category-bar {
  height: 100%;
  border-radius: 4px;
}

.category-stats {
  text-align: right;
  font-size: 0.8rem;
}

.category-percent {
  color: var(--text-secondary);
  display: block;
}

/* Loading State for Widgets */
.widget-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.widget-loading i {
  font-size: 2rem;
  color: var(--accent-primary);
}

/* ========================
   Issue #444: Financial Runway & Subscription Detection Styles
   ======================== */

/* Runway Widget */
.runway-card .runway-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.runway-card .runway-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.runway-card .runway-title h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.runway-card .runway-status-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}

.runway-status-badge.positive,
.runway-status-badge.comfortable {
  background: rgba(0, 230, 118, 0.15);
  color: #22c55e;
}

.runway-status-badge.moderate {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.runway-status-badge.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.runway-status-badge.critical,
.runway-status-badge.depleted {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.runway-card .runway-main {
  text-align: center;
  margin-bottom: 1.5rem;
}

.runway-card .runway-days {
  margin-bottom: 1rem;
}

.runway-card .days-number {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.runway-card .days-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.runway-card .runway-progress-container {
  padding: 0 1rem;
}

.runway-card .runway-progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.runway-card .runway-progress-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.runway-card .runway-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.runway-card .runway-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.runway-card .runway-stat {
  text-align: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.runway-card .runway-stat .stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.runway-card .runway-stat .stat-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.runway-card .runway-stat .stat-value.negative {
  color: #ef4444;
}

.runway-card .runway-stat .stat-value.positive {
  color: #22c55e;
}

.runway-card .runway-message {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(100, 255, 218, 0.05);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.runway-card .runway-message i {
  color: var(--accent-primary);
  margin-top: 2px;
}

/* Burn Rate Widget */
.burn-rate-card .burn-rate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.burn-rate-card .burn-rate-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.burn-rate-card .burn-rate-header h3 i {
  color: #f59e0b;
}

.burn-rate-card .subscription-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 50px;
}

.burn-rate-card .burn-rate-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.burn-rate-card .burn-total {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.burn-rate-card .burn-total.primary {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.burn-rate-card .burn-amount {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.burn-rate-card .burn-total.primary .burn-amount {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.burn-rate-card .burn-period {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.burn-rate-card .burn-breakdown h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.burn-rate-card .breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.burn-rate-card .breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.burn-rate-card .breakdown-info {
  display: flex;
  flex-direction: column;
}

.burn-rate-card .breakdown-name {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.burn-rate-card .breakdown-freq {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.burn-rate-card .breakdown-amount {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

/* Upcoming Charges Widget */
.upcoming-charges-card .upcoming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.upcoming-charges-card .upcoming-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upcoming-charges-card .upcoming-header h3 i {
  color: var(--accent-primary);
}

.upcoming-charges-card .upcoming-period {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.upcoming-charges-card .upcoming-total {
  text-align: center;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.upcoming-charges-card .total-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.upcoming-charges-card .total-amount {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ef4444;
  margin: 0.25rem 0;
}

.upcoming-charges-card .total-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.upcoming-charges-card .upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upcoming-charges-card .upcoming-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.upcoming-charges-card .upcoming-item.due-soon {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.upcoming-charges-card .upcoming-info {
  display: flex;
  flex-direction: column;
}

.upcoming-charges-card .upcoming-name {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.upcoming-charges-card .upcoming-date {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.upcoming-charges-card .upcoming-amount {
  font-weight: 600;
  color: var(--text-primary);
}

/* Detected Subscriptions Widget */
.detected-subs-card .detected-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detected-subs-card .detected-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detected-subs-card .detected-header h3 i {
  color: #a855f7;
}

.detected-subs-card .detected-actions {
  display: flex;
  gap: 0.5rem;
}

.detected-subs-card .detected-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.detected-subs-card .detected-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.detected-subs-card .detected-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detected-subs-card .detected-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.detected-subs-card .detected-icon.subscription {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.detected-subs-card .detected-info {
  flex: 1;
}

.detected-subs-card .detected-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.detected-subs-card .detected-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.detected-subs-card .detected-amount {
  color: var(--accent-primary);
  font-weight: 600;
}

.detected-subs-card .detected-confidence {
  text-align: right;
}

.detected-subs-card .confidence-bar {
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.detected-subs-card .confidence-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
}

.detected-subs-card .confidence-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.detected-subs-card .detected-actions-row {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.detected-subs-card .btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.detected-subs-card .empty-state.small {
  padding: 2rem 1rem;
}

.detected-subs-card .empty-state.small i {
  font-size: 1.5rem;
}

.detected-subs-card .empty-state.small p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.detected-subs-card .empty-state.small small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Analytics Row Styles for Runway */
.analytics-row.runway-row,
.analytics-row.subscriptions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .analytics-row.runway-row,
  .analytics-row.subscriptions-row {
    grid-template-columns: 1fr;
  }
  
  .burn-rate-card .burn-rate-totals {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Settings Section Styles */
.settings-section {
  padding: 2rem 0;
  background: var(--bg-secondary);
}

.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.settings-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--bg-glass);
  padding-bottom: 1rem;
}

.settings-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.settings-tab:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.settings-tab.active {
  background: var(--primary-gradient);
  color: white;
}

.settings-content {
  display: none;
}

.settings-content.active {
  display: block;
}

.settings-card {
  background: var(--bg-tertiary);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid var(--bg-glass);
  box-shadow: var(--shadow-card);
}

.settings-card h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-card h4 i {
  color: var(--accent-primary);
}

/* Workspace Settings */
.workspace-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.workspace-info label {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.workspace-info span,
.workspace-info select {
  color: var(--text-primary);
  font-weight: 600;
}

.workspace-actions {
  margin-top: 1rem;
}

.members-list {
  margin-bottom: 1.5rem;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.member-details h5 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.member-role {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.member-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-role {
  background: var(--bg-glass);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-role:hover {
  background: var(--accent-primary);
  color: white;
}

.btn-remove {
  background: var(--error);
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-remove:hover {
  opacity: 0.8;
}

/* Approvals Settings */
.approval-config {
  margin-bottom: 2rem;
}

.approval-config .form-control {
  margin-bottom: 1rem;
}

.approval-config small {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.approvals-list {
  max-height: 400px;
  overflow-y: auto;
}

.approval-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.approval-info {
  flex: 1;
}

.approval-info h5 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.approval-details {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.approval-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: var(--warning);
  color: #333;
}

.status-approved {
  background: var(--success);
  color: white;
}

.status-rejected {
  background: var(--error);
  color: white;
}

.approval-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-approve {
  background: var(--success);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-reject {
  background: var(--error);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

/* Profile Settings */
.profile-form .form-control {
  margin-bottom: 1rem;
}

.profile-form input[readonly] {
  background: var(--bg-glass);
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-container {
    padding: 0 1rem;
  }

  .workspace-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .settings-tabs {
    flex-wrap: wrap;
  }

  .settings-tab {
    flex: 1;
    min-width: 120px;
  }

  .member-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .member-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .approval-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .approval-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Approval Status Badges */
.approval-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  margin-left: 0.5rem;
}

.status-approved {
  background: var(--success);
  color: white;
}

.status-pending {
  background: var(--warning);
  color: #333;
}

.status-rejected {
  background: var(--error);
  color: white;
}

.transaction-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--accent-primary);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  border-left-color: var(--success);
}

.notification-error {
  border-left-color: var(--error);
}

.notification-info {
  border-left-color: var(--accent-primary);
}

.notification i {
  margin-right: 0.5rem;
}

.no-approvals {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
  font-style: italic;
}
/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2933;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast.error {
  border-left: 4px solid #ff6b6b;
}

/* ========================================
   NOTIFICATION SETTINGS MODAL STYLES
   ======================================== */

.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.settings-modal.active {
  display: flex;
}

.settings-modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--primary-gradient);
}

.settings-modal-header h2 {
  font-size: 1.25rem;
  color: white;
  margin: 0;
}

.settings-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.settings-modal-close:hover {
  opacity: 1;
}

.settings-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.settings-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.settings-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.settings-section {
  background: var(--bg-tertiary);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.channel-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.channel-icon {
  font-size: 1.25rem;
}

.channel-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: var(--accent-primary);
}

input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.settings-section-content {
  padding: 1.25rem;
  display: none;
}

.settings-section.expanded .settings-section-content,
.settings-section-content[style*="display: block"] {
  display: block;
}

.settings-help-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.notification-types {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-type-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-type-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.notification-type-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-primary);
}

.type-icon {
  font-size: 1.1rem;
}

.type-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.type-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.type-description {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.push-subscription-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.status-text {
  flex: 1;
  color: var(--text-secondary);
}

.status-text.subscribed {
  color: var(--success);
}

.quiet-hours-config {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.test-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-outline {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.settings-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-tertiary);
}

/* ========================================
   NOTIFICATION CENTER PANEL STYLES
   ======================================== */

.notification-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  font-size: 1.25rem;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--error);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notification-center {
  position: fixed;
  top: 70px;
  right: 1rem;
  width: 380px;
  max-height: calc(100vh - 100px);
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-center.open {
  transform: translateX(0);
  opacity: 1;
}

.notification-center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--primary-gradient);
  border-radius: 12px 12px 0 0;
}

.notification-center-header h3 {
  margin: 0;
  font-size: 1rem;
  color: white;
}

.notification-center-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-icon .icon {
  font-size: 0.85rem;
}

.notification-center-body {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
  text-align: center;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
  background: rgba(100, 255, 218, 0.05);
}

.notification-item .notification-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  opacity: 0.7;
}

.unread-dot {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
}

.notification-item.priority-critical {
  border-left: 3px solid var(--error);
}

.notification-item.priority-high {
  border-left: 3px solid var(--warning);
}

.notification-item.priority-medium {
  border-left: 3px solid var(--accent-primary);
}

.notification-center-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.notification-center-footer .btn-link {
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 0.85rem;
}

/* ========================================
   NOTIFICATION TOAST STYLES
   ======================================== */

.notification-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 400px;
  z-index: 10002;
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-toast .toast-icon {
  font-size: 1.5rem;
}

.notification-toast .toast-content {
  flex: 1;
}

.notification-toast .toast-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.notification-toast .toast-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-toast .toast-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.notification-toast.priority-critical {
  border-left: 4px solid var(--error);
}

.notification-toast.priority-high {
  border-left: 4px solid var(--warning);
}

.notification-toast.priority-medium {
  border-left: 4px solid var(--accent-primary);
}

/* Toast for settings */
.toast.toast-success {
  border-left: 4px solid var(--success);
}

.toast.toast-error {
  border-left: 4px solid var(--error);
}

.toast.toast-info {
  border-left: 4px solid var(--accent-primary);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .notification-center {
    width: calc(100% - 2rem);
    right: 1rem;
    left: 1rem;
  }

  .settings-modal-content {
    max-height: 95vh;
    border-radius: 12px;
  }

  .quiet-hours-config {
    grid-template-columns: 1fr;
  }

  .notification-toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
/* ========================================
   TRANSACTION FORM STYLES
   ======================================== */

.transaction-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.35);
}

.transaction-form button:active {
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  .transaction-form {
    grid-template-columns: 1fr 1fr;
  }

  .transaction-form button {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .transaction-form {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 1.5rem;
  }
}
/* ============================
   ADD TRANSACTION SECTION
   ============================ */

.form-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.form-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-section h3::before {
  content: "+";
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
}

/* ============================
   FORM LAYOUT
   ============================ */

.transaction-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

/* Inputs & Select */
.transaction-form input,
.transaction-form select {
  padding: 0.9rem 1rem;
  background: rgba(15, 15, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.transaction-form input::placeholder {
  color: var(--text-secondary);
}

.transaction-form input:focus,
.transaction-form select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.15);
}

/* Select arrow fix for dark theme */
.transaction-form select {
  appearance: none;
  background-image: 
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 4px),
    calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* ============================
   SUBMIT BUTTON
   ============================ */

.transaction-form button {
  padding: 0.9rem 1.6rem;
  background: var(--primary-gradient);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.transaction-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.35);
}

.transaction-form button:active {
  transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 900px) {
  .transaction-form {
    grid-template-columns: 1fr 1fr;
  }

  .transaction-form button {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .transaction-form {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 1.5rem;
  }
}

/* ============================
   GOVERNANCE & APPROVAL STYLES
   ============================ */

/* Policy Cards */
.policy-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--accent-primary);
  transition: transform 0.2s;
}

.policy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.policy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.policy-header h5 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.policy-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.policy-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--text-secondary);
}

.policy-actions {
  display: flex;
  gap: 10px;
}

/* Approval Cards */
.approval-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--warning);
}

.approval-card h5 {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 10px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Approval Status Badges */
.approval-status.draft {
  background: rgba(180, 180, 180, 0.2);
  color: var(--text-secondary);
}

.approval-status.pending_approval {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  animation: pulse 2s infinite;
}

.approval-status.approved {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success);
}

.approval-status.rejected {
  background: rgba(255, 87, 34, 0.2);
  color: var(--error);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Balance Display */
.balance-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  padding: 15px;
  background: var(--bg-glass);
  border-radius: 12px;
}

.balance-display strong {
  display: block;
  font-size: 18px;
  margin-top: 5px;
  color: var(--accent-primary);
}

/* Policy Tabs */
.policy-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--bg-glass);
}

.tab-button {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.tab-button.active {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.policy-tab {
  display: none;
}

.policy-tab.active {
  display: block;
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.active {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success);
}

.badge.inactive {
  background: rgba(180, 180, 180, 0.2);
  color: var(--text-secondary);
}

/* Expense List Indicators */
.expense-item.pending_approval {
  border-left: 4px solid #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.expense-item.rejected {
  border-left: 4px solid var(--error);
  background: rgba(255, 87, 34, 0.05);
  opacity: 0.7;
}

.expense-item.approved {
  border-left: 4px solid var(--success);
}

/* Policy Flag Indicators */
.policy-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(255, 0, 0, 0.1);
  color: #ff5722;
  border-radius: 8px;
  font-size: 11px;
}

/* Small Button Styles */
.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

/* ============================================
   FORECASTING DASHBOARD STYLES
   Issue #522: Cash Flow Forecasting & Runway Analytics
   ============================================ */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.header-content h1 {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Alert Banner */
.alert-banner {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.3s ease-out;
}

.alert-banner.critical {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #fee2e2;
}

.alert-banner.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #fef3c7;
}

.alert-banner.info {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #d1fae5;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.alert-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-primary);
}

.metric-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.runway-metric .metric-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.burn-metric .metric-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.confidence-metric .metric-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.balance-metric .metric-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.metric-content {
    flex: 1;
}

.metric-content h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.card, .chart-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 1rem;
}

.chart-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.actual {
    background: #10b981;
}

.legend-dot.predicted {
    background: #3b82f6;
}

.legend-dot.bounds {
    background: rgba(59, 130, 246, 0.3);
    border: 2px dashed #3b82f6;
}

/* Scenario Cards */
.scenario-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scenario-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.scenario-card:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.scenario-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.scenario-impact {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.scenario-impact.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.scenario-impact.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.scenario-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Insights */
.insight-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.insight-card.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.insight-card.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.insight-card.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.insight-icon {
    font-size: 1.5rem;
}

.insight-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.insight-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-sm {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 300px;
    }
}

/* ============================================
   MULTI-CURRENCY INTELLIGENCE STYLES
   Issue #521: Advanced Multi-Currency Intelligence
   ============================================ */

.currency-selector {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-selector:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
}

.rates-list,
.pl-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.rate-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.rate-currency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-code {
    font-weight: 600;
    color: var(--text-primary);
}

.cached-badge,
.live-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cached-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.live-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.rate-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

/* P&L Items */
.pl-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pl-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pl-currency {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.pl-account {
    color: var(--text-secondary);
}

.pl-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pl-value {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.pl-value .label {
    color: var(--text-secondary);
}

.pl-profit .pl-amount {
    color: #10b981;
    font-weight: 600;
}

.pl-loss .pl-amount {
    color: #ef4444;
    font-weight: 600;
}

/* Risk Assessment */
.risk-assessment {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.risk-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.risk-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid;
}

.risk-score-circle.low {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.risk-score-circle.medium {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.risk-score-circle.high {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.risk-score-circle .score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.risk-score-circle .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.risk-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.recommendations {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.recommendation-item.high {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.recommendation-item.medium {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.recommendation-item.low {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.rec-icon {
    font-size: 1.2rem;
}

/* Converter Widget */
.converter-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    z-index: 1000;
}

.converter-widget h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.converter-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.converter-form input,
.converter-form select {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
}

.converter-form input {
    flex: 1;
    min-width: 100px;
}

.converter-form select {
    min-width: 80px;
}

.convert-arrow {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.conversion-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    text-align: center;
}

.conversion-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.from-amount {
    color: var(--text-primary);
}

.equals {
    color: var(--accent-primary);
}

.to-amount {
    color: var(--accent-primary);
    font-size: 1.4rem;
}

.conversion-rate {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Date Range Selector */
.date-range-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-input {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
}

/* Report Summary */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-item .positive {
    color: #10b981;
    font-weight: 600;
    font-size: 1.1rem;
}

.summary-item .negative {
    color: #ef4444;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .converter-widget {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }

    .risk-summary {
        flex-direction: column;
    }

    .date-range-selector {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================
   DEBT MANAGEMENT STYLES
   Issue #520: Comprehensive Debt Management
   ============================================ */

.debt-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.debt-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.debt-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.debt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.debt-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.debt-title h3 {
    color: var(--text-primary);
    margin: 0;
}

.debt-type-badge {
    padding: 0.25rem 0.75rem;
    borderradius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.debt-type-badge.mortgage {
    background: rgba(147, 51, 234, 0.2);
    color: #a78bfa;
}

.debt-type-badge.car_loan {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.debt-type-badge.student_loan {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.debt-type-badge.personal_loan {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.debt-type-badge.credit_card {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.debt-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.debt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.debt-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.debt-stats .stat .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.debt-stats .stat .value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.debt-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.5s ease;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Strategy Comparison */
.strategy-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.strategy-controls label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.strategy-controls input {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    width: 120px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.strategy-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.strategy-card.best {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.best-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #fbbf24;
    color: #1a1a2e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.strategy-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.strategy-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.strategy-stats .stat {
    display: flex;
    justify-content: space-between;
}

.strategy-stats .label {
    color: var(--text-secondary);
}

.strategy-stats .value {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Calculator Forms */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-form label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.calculator-form input,
.calculator-form select {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.calculator-form input:focus,
.calculator-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.calculator-result,
.acceleration-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 8px;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-result-item:last-child {
    border-bottom: none;
}

.calc-result-item .value.primary {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Acceleration Result */
.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.saving-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.saving-item.positive {
    border-left: 4px solid #10b981;
}

.saving-item .icon {
    font-size: 2rem;
}

.saving-item .amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.saving-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Amortization Stats */
.amortization-stats {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item .value {
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Debt Form */
.debt-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.debt-selector,
.form-select {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
}

.modal-content.large {
    max-width: 800px;
}

/* Responsive */
@media (max-width: 768px) {
    .debt-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ENTERPRISE PROCUREMENT & FIXED ASSETS
   Issue #574: Asset Lifecycle Management
   ============================================ */

.inventory-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    margin-top: 30px;
}

.inventory-sidebar {
    padding: 20px 10px;
    height: fit-content;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 15px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn i { font-size: 1.1rem; }
.nav-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.nav-btn.active { background: rgba(100, 255, 218, 0.1); color: var(--accent-primary); }

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.asset-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.asset-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.asset-icon.electronics { background: rgba(100, 255, 218, 0.15); color: #64ffda; }
.asset-icon.furniture { background: rgba(72, 219, 251, 0.15); color: #48dbfb; }
.asset-icon.machinery { background: rgba(255, 159, 67, 0.15); color: #ff9f43; }

.asset-info h3 { margin: 0; font-size: 1.1rem; }
.asset-serial { font-size: 0.75rem; color: var(--text-secondary); }

.asset-value {
    margin-top: 10px;
}

.asset-value label { font-size: 0.7rem; text-transform: uppercase; color: var(--text-secondary); }
.asset-value .value { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }

.asset-life {
    margin-top: 5px;
}

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress { height: 100%; background: var(--accent-primary); }

.asset-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

.status-pill {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
}

.status-pill.active { color: #64ffda; }
.status-pill.maintenance { color: #ff9f43; }

/* Orders Table */
.orders-table-container { padding: 10px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 15px; border-bottom: 2px solid rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 0.8rem; }
.data-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }

.os-pill { padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; }
.os-pill.draft { background: #34495e; }
.os-pill.pending_approval { background: #d35400; }
.os-pill.approved { background: #27ae60; }
.os-pill.received { background: #2980b9; }

/* PR Modal Custom */
.items-editor {
    margin-top: 20px;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
}

.item-row {
    display: grid;
    grid-template-columns: 1fr 80px 120px 40px;
    gap: 10px;
    margin-bottom: 10px;
}

.item-row input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px; border-radius: 4px; color: white; }
.remove-item { background: transparent; border: none; color: #ff6b6b; cursor: pointer; }

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container { padding: 25px; }
.chart-container h3 { margin-bottom: 20px; font-size: 1rem; color: var(--text-secondary); }

/* ============================================
   TAX COMPLIANCE & FORENSIC AUDIT
   Issue #573: Global Compliance Module
   ============================================ */

.compliance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radial-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 120px;
}

.circle { fill: none; stroke: #64ffda; stroke-width: 2.8; stroke-linecap: round; transition: stroke-dasharray 1s ease; }
.circle-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 2.8; }
.percentage { fill: #fff; font-family: sans-serif; font-size: 0.5em; text-anchor: middle; font-weight: 700; }

.compliance-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
}

.section-card {
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 { font-size: 1rem; color: var(--text-secondary); margin: 0; }
.card-header h3 i { margin-right: 10px; color: var(--accent-primary); }

.packs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pack-item {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pack-meta strong { display: block; font-size: 0.9rem; }
.pack-meta span { font-size: 0.75rem; color: var(--text-secondary); }

.badgered {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.juris-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.juris-item:last-child { border: none; }
.juris-meta strong { display: block; font-size: 0.85rem; }
.juris-meta small { color: var(--text-secondary); font-size: 0.75rem; }

.forensic-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-chip {
    padding: 5px 15px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    font-size: 0.75rem;
    cursor: pointer;
    border: 1px solid transparent;
}

.filter-chip.active {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.empty-findings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-findings i { font-size: 4rem; margin-bottom: 20px; }

/* Multi-step Logic Styles */
.audit-options {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-container input { width: 16px; height: 16px; }

/* ============================================
   INVENTORY & SUPPLY CHAIN HUB
   Issue #588: Multi-Entity Inventory System
   ============================================ */

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
    margin-bottom: 25px;
}

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
}

.stock-items-list, .warehouses-list, .alerts-list, .backorders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.stock-item-card, .warehouse-card, .backorder-card {
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.stock-item-card:hover {
    transform: translateY(-2px);
}

.item-header, .wh-header, .bo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-info, .wh-info, .bo-info {
    flex: 1;
}

.item-info strong, .wh-info strong, .bo-info strong {
    display: block;
    font-size: 0.95rem;
}

.sku-badge {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: monospace;
    display: block;
    margin-top: 2px;
}

.item-details, .bo-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.detail-row, .detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.detail-row label, .detail-item label {
    color: var(--text-secondary);
}

.quantity-badge {
    padding: 2px 8px;
    background: rgba(100, 255, 218, 0.15);
    color: #64ffda;
    border-radius: 4px;
    font-size: 0.75rem;
}

.reorder-alert {
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 159, 67, 0.1);
    border-left: 3px solid #ff9f43;
    font-size: 0.75rem;
    color: #ff9f43;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wh-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wh-icon.main { background: rgba(100, 255, 218, 0.15); color: #64ffda; }
.wh-icon.regional { background: rgba(72, 219, 251, 0.15); color: #48dbfb; }
.wh-icon.distribution { background: rgba(255, 159, 67, 0.15); color: #ff9f43; }
.wh-icon.retail { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }

.wh-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.alert-card {
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border-left: 4px solid;
    display: flex;
    gap: 12px;
}

.alert-card.urgent { border-left-color: #ff6b6b; }
.alert-card.high { border-left-color: #ff9f43; }
.alert-card.medium { border-left-color: #48dbfb; }
.alert-card.low { border-left-color: #8892b0; }

.alert-icon {
    font-size: 1.2rem;
}

.alert-card.urgent .alert-icon { color: #ff6b6b; }
.alert-card.high .alert-icon { color: #ff9f43; }
.alert-card.medium .alert-icon { color: #48dbfb; }

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 4px;
}

.alert-content p {
    font-size: 0.8rem;
    margin: 0 0 4px 0;
}

.alert-reason {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.priority-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.priority-badge.urgent { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }
.priority-badge.high { background: rgba(255, 159, 67, 0.2); color: #ff9f43; }
.priority-badge.medium { background: rgba(72, 219, 251, 0.2); color: #48dbfb; }
.priority-badge.low { background: rgba(136, 146, 176, 0.2); color: #8892b0; }

.pending-qty {
    color: var(--accent-primary);
    font-weight: bold;
}

.badge {
    padding: 2px 8px;
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border-radius: 12px;
    font-size: 0.75rem;
}

.glass-card-sm {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
}

.stock-details {
    padding: 20px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.detail-section {
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.detail-section h4 {
    margin-bottom: 15px;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.movements-section {
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.movements-section h4 {
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.movements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.movement-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
    font-size: 0.8rem;
}

.movement-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.movement-type.in { background: rgba(100, 255, 218, 0.2); color: #64ffda; }
.movement-type.out { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }
.movement-type.transfer { background: rgba(72, 219, 251, 0.2); color: #48dbfb; }
.movement-type.adjustment { background: rgba(255, 159, 67, 0.2); color: #ff9f43; }

.btn-accent {
    background: linear-gradient(135deg, #ff9f43, #ff6b6b);
    color: white;
}

/* ============================================
   FX REVALUATION & GAIN/LOSS TRACKER
   Issue #605: Multi-Currency Revaluation Engine
   ============================================ */

.fx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.fx-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
    margin-bottom: 25px;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.position-card {
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s;
    border-left: 4px solid transparent;
}

.position-card.gain {
    border-left-color: #64ffda;
}

.position-card.loss {
    border-left-color: #ff6b6b;
}

.position-card:hover {
    transform: translateY(-2px);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.position-info strong {
    display: block;
    font-size: 0.95rem;
}

.currency-badge {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: monospace;
    display: block;
    margin-top: 2px;
}

.gl-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.gl-badge.gain {
    background: rgba(100, 255, 218, 0.2);
    color: #64ffda;
}

.gl-badge.loss {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.position-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.gl-amount {
    font-weight: bold;
}

.gl-amount.gain {
    color: #64ffda;
}

.gl-amount.loss {
    color: #ff6b6b;
}

.revaluation-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.revaluation-card {
    padding: 15px;
}

.rev-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rev-info strong {
    display: block;
    font-size: 0.95rem;
}

.rev-id {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: monospace;
    display: block;
    margin-top: 2px;
}

.rev-type {
    padding: 3px 10px;
    background: rgba(72, 219, 251, 0.2);
    color: #48dbfb;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.rev-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.summary-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-item span.gain {
    color: #64ffda;
}

.summary-item span.loss {
    color: #ff6b6b;
}

.var-display {
    padding: 20px;
}

.var-summary {
    text-align: center;
}

.var-value h2 {
    font-size: 2rem;
    color: var(--accent-primary);
    margin: 10px 0;
}

.var-info {
    margin-top: 15px;
}

.var-info p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.var-note {
    font-size: 0.75rem !important;
    font-style: italic;
}

.top-positions-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.top-positions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-position-item {
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid;
}

.top-position-item.gain {
    border-left-color: #64ffda;
}

.top-position-item.loss {
    border-left-color: #ff6b6b;
}

.position-name {
    font-weight: 500;
    flex: 1;
}

.position-currency {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 10px;
}

.position-amount {
    font-weight: bold;
    font-size: 0.9rem;
}

.top-position-item.gain .position-amount {
    color: #64ffda;
}

.top-position-item.loss .position-amount {
    color: #ff6b6b;
}

.compliance-report {
    padding: 20px 0;
}

.compliance-report h4 {
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.report-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
}

.summary-row.total {
    background: rgba(72, 219, 251, 0.1);
    border: 1px solid rgba(72, 219, 251, 0.3);
    font-weight: bold;
}

.summary-row label {
    color: var(--text-secondary);
}

.summary-row span.gain {
    color: #64ffda;
}

.summary-row span.loss {
    color: #ff6b6b;
}
/* Asset Management Styles */
.detail-grid-3 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.scroll-table {
    max-height: 400px;
    overflow-y: auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.asset-actions-card button {
    height: 45px;
    font-size: 0.95rem;
}

.mb-10 { margin-bottom: 10px; }

@media (max-width: 1200px) {
    .detail-grid-3 {
        grid-template-columns: 1fr;
    }
}

.type-tag {
    background: rgba(72, 219, 251, 0.1);
    color: #48dbfb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.badge.pending { background: rgba(255, 159, 67, 0.2); color: #ff9f43; }
.badge.matched { background: rgba(100, 255, 218, 0.2); color: #64ffda; }
.badge.settled { background: rgba(136, 146, 176, 0.2); color: #8892b0; }
.badge.disputed { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

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

.export-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.export-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

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

.export-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  background: rgba(100, 255, 218, 0.05);
}

.export-modal-header h3 {
  font-size: 1.5rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.export-modal-body {
  padding: 2rem;
}

.export-format-section,
.export-filters-section,
.export-preview-section {
  margin-bottom: 2rem;
}

.export-format-section h4,
.export-filters-section h4,
.export-preview-section h4 {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 1rem;
  font-weight: 600;
}

.format-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.format-option {
  cursor: pointer;
}

.format-option input[type="radio"] {
  display: none;
}

.format-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.format-option input[type="radio"]:checked + .format-card {
  background: rgba(100, 255, 218, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.format-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
}

.format-card i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.format-name {
  display: block;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.format-desc {
  display: block;
  font-size: 0.85rem;
  color: #9ca3af;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-control label {
  display: block;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control input[type="date"],
.form-control select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control input[type="date"]:focus,
.form-control select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(100, 255, 218, 0.05);
}

.export-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 150px;
}

.export-preview-loading,
.export-preview-error {
  text-align: center;
  color: #9ca3af;
  padding: 2rem;
  font-size: 0.95rem;
}

.export-preview-error {
  color: #ef4444;
}

.export-preview-content {
  color: #e5e7eb;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.preview-stat {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(100, 255, 218, 0.1);
}

.preview-label {
  display: block;
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.preview-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.preview-empty {
  text-align: center;
  color: #9ca3af;
  padding: 2rem;
  font-style: italic;
}

.export-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.btn-cancel,
.btn-submit {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.95rem;
}

.btn-cancel {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #0f0f23;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Export Buttons in Data Management */
.export-btn {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: var(--accent-primary);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.export-btn:hover {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.2), rgba(147, 51, 234, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.export-btn.pdf-btn {
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.export-btn.pdf-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.2));
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
}

.export-btn.advanced-btn {
  border-color: rgba(147, 51, 234, 0.3);
  color: #9333ea;
}

.export-btn.advanced-btn:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(147, 51, 234, 0.2));
  box-shadow: 0 5px 15px rgba(147, 51, 234, 0.2);
}

.export-btn.report-btn {
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.export-btn.report-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.2));
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .export-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .export-modal-header,
  .export-modal-body,
  .export-modal-footer {
    padding: 1rem;
  }

  .format-options,
  .filter-grid,
  .preview-stats {
    grid-template-columns: 1fr;
  }

  .export-modal-footer {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}
