@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-main: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;

  --text-primary: #000000;
  --text-secondary: #555555;

  --accent-primary: #D4AF37;
  /* Metallic Gold */
  --accent-secondary: #F3E5AB;
  /* Light Gold */
  --accent-gradient: linear-gradient(135deg, #D4AF37, #B5952F);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --warning: #f59e0b;

  --border-color: rgba(0, 0, 0, 0.06);

  /* Shadows & Blurs */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --blur-md: backdrop-filter: blur(12px);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* === Layout === */
.app-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* Floating Navigation */
.floating-nav {
  width: 80px;
  background: #000000;
  border-radius: 40px;
  margin: 32px 0 32px 32px;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: var(--transition);
}

.brand {
  margin-bottom: 40px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.brand-name {
  display: none;
}

.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.nav-item {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #888888;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.nav-item i {
  font-size: 20px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.user-profile {
  border-top: none;
  padding-top: 0;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-weight: 700;
}

.user-info {
  display: none;
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
  position: relative;
}

/* Gradient Background Orbs */
.bg-orb-1,
.bg-orb-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.15;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -100px;
  right: -100px;
  opacity: 0.05;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  bottom: -100px;
  left: 200px;
  opacity: 0.05;
}

/* Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.page-title h2 {
  font-size: 28px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 14px;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #111111;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-secondary);
}

.mobile-menu-btn {
  display: none;
}

/* Page Sections */
.page-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  animation: slideUpFade 0.5s ease-out both;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Staggered card animations */
.summary-grid .card:nth-child(1) {
  animation-delay: 0.05s;
}

.summary-grid .card:nth-child(2) {
  animation-delay: 0.1s;
}

.summary-grid .card:nth-child(3) {
  animation-delay: 0.15s;
}

.accounts-grid .card:nth-child(1) {
  animation-delay: 0.05s;
}

.accounts-grid .card:nth-child(2) {
  animation-delay: 0.1s;
}

.accounts-grid .card:nth-child(3) {
  animation-delay: 0.15s;
}

.accounts-grid .card:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* === Dashboard VIP Hero Section === */
.hero-section {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.vip-card-wrapper {
  perspective: 1000px;
}

.vip-card {
  width: 100%;
  max-width: 380px;
  height: 240px;
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vip-card-wrapper:hover .vip-card {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.vip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(212, 175, 55, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.card-chip {
  font-size: 32px;
  color: #d4af37;
  margin-bottom: 10px;
}

.card-balance-label {
  font-size: 14px;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card-balance {
  font-size: 36px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #f3e5ab, #d4af37);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-number {
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.card-logo {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2px;
}

.card-logo span {
  color: #d4af37;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.stat-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.income {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-icon.expense {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.stat-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.stat-info h3 {
  color: var(--text-primary);
  font-size: 24px;
}

/* Report Summary Grid */
.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-header h3 {
  font-size: 18px;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.chart-container.doughnut-container {
  height: 250px;
}

/* Recent Transactions */
.recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-all {
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition);
}

.transaction-item:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border-color);
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tx-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.tx-icon.income {
  background: var(--success-bg);
  color: var(--success);
}

.tx-icon.expense {
  background: var(--danger-bg);
  color: var(--danger);
}

.tx-icon.transfer {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.tx-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.tx-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.tx-right {
  text-align: right;
}

.tx-amount {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

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

.tx-amount.expense {
  color: var(--text-primary);
}

.tx-amount.transfer {
  color: #3b82f6;
}

.tx-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.tx-actions {
  display: flex;
  gap: 8px;
  margin-left: 16px;
}

.tx-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tx-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.tx-action-btn.delete:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

/* === Modals === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
}

.close-modal {
  font-size: 24px;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.modal-body {
  padding: 24px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aabf'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

select.form-control option {
  background: var(--bg-main);
  color: var(--text-primary);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-group .form-control {
  padding-left: 48px;
}

.type-selector {
  display: flex;
  background: #f8f9fa;
  border-radius: var(--radius-md);
  padding: 4px;
  border: 1px solid var(--border-color);
}

.type-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.type-btn.active.income {
  background: var(--success-bg);
  color: var(--success);
}

.type-btn.active.expense {
  background: var(--danger-bg);
  color: var(--danger);
}

.type-btn.active.transfer {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.5);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

/* === Budgets Section === */
.budgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.budget-card {
  display: flex;
  flex-direction: column;
}

.budget-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.budget-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-secondary);
}

.budget-title h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.budget-title p {
  font-size: 12px;
  color: var(--text-secondary);
}

.budget-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.budget-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.budget-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  position: relative;
}

.budget-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  filter: blur(4px);
}

.budget-progress-bar.good {
  background: linear-gradient(90deg, #059669, #10b981);
}

.budget-progress-bar.warning {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.budget-progress-bar.danger {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.budget-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* === Accounts Section === */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.account-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

/* Decorative gradient glow on account cards */
.account-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.08;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: var(--accent-secondary);
}

.account-card:hover::before {
  opacity: 0.14;
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.account-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.account-card:hover .account-icon {
  transform: scale(1.08);
}

.account-icon.bank {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.account-icon.ewallet {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-primary);
}

.account-icon.cash {
  background: #000000;
  color: var(--accent-primary);
}

.account-icon.investment {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.account-details h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.account-details p {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.account-balance-wrap {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.account-balance-wrap p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.account-balance-wrap h2 {
  font-size: 26px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.account-actions {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 6px;
}

/* === Savings Section === */
.savings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.saving-card {
  display: flex;
  align-items: center;
  gap: 24px;
}

.saving-circle-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}

.saving-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--accent-primary) var(--progress), rgba(255, 255, 255, 0.1) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.saving-circle-inner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.saving-details {
  flex: 1;
}

.saving-details h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.saving-amounts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.saving-current {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-secondary);
}

.saving-target {
  font-size: 12px;
  color: var(--text-secondary);
}

.saving-actions {
  display: flex;
  gap: 8px;
}

.saving-actions .btn {
  padding: 8px 12px;
  font-size: 12px;
}

/* === Dashboard Accounts Widget === */
.dashboard-accounts {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.dashboard-accounts::-webkit-scrollbar {
  height: 6px;
}

.dashboard-accounts::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: var(--radius-full);
}

.dash-acc-card {
  background: #000000;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dash-acc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.dash-acc-card h4 {
  font-size: 13px;
  color: #a0a0a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-acc-card h3 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* === Transactions Page === */
.filters-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.search-input {
  flex: 2;
  position: relative;
}

.search-input i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-input .form-control {
  padding-left: 40px;
}

/* === Settings Page === */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
}

.setting-group {
  margin-bottom: 24px;
}

.setting-group h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.setting-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.setting-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Notification Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s ease forwards;
  transform: translateX(120%);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--accent-secondary);
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
  }
}

@keyframes fadeOutRight {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* === Excel Integration === */
.btn-excel {
  background: linear-gradient(135deg, #1D6F42, #28a745);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 111, 66, 0.3);
}

.btn-excel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 111, 66, 0.45);
}

.btn-excel-outline {
  background: rgba(29, 111, 66, 0.1);
  color: #28a745;
  border: 1px solid rgba(29, 111, 66, 0.35);
}

.btn-excel-outline:hover {
  background: rgba(29, 111, 66, 0.2);
  border-color: rgba(29, 111, 66, 0.6);
}

.excel-preview-area {
  margin-top: 20px;
  background: rgba(29, 111, 66, 0.06);
  border: 1px solid rgba(29, 111, 66, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  animation: slideUpFade 0.4s ease-out forwards;
}

.excel-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #28a745;
  margin-bottom: 16px;
}

.excel-preview-header i {
  font-size: 20px;
}

.excel-preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.excel-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
}

.excel-stat-card .stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.excel-stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.excel-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .savings-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* --- Tablet portrait & small laptops --- */
@media (max-width: 768px) {

  /* Bottom Navigation for Mobile */
  .floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
    border-radius: 20px 20px 0 0;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background: #000000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .brand,
  .sidebar-footer {
    display: none !important;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .nav-item {
    width: auto;
    height: 100%;
    flex: 1;
    border-radius: 0;
    color: #888888;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nav-item i {
    font-size: 24px;
    transition: var(--transition);
  }

  .nav-item.active {
    color: var(--accent-primary);
  }

  .nav-item.active i {
    transform: translateY(-4px);
  }

  .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-primary);
  }

  .main-content {
    padding: 20px 16px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-menu-btn {
    display: none;
  }

  /* Header: compact */
  .top-header {
    margin-bottom: 24px;
    gap: 12px;
  }

  .page-title h2 {
    font-size: 22px;
  }

  .page-title p {
    font-size: 12px;
  }

  .header-actions .btn span {
    display: none;
  }

  .header-actions .btn {
    padding: 10px 14px;
  }

  /* Filters */
  .filters-bar {
    flex-direction: column;
    gap: 10px;
  }

  .filter-group {
    width: 100%;
    min-width: unset;
  }

  /* Modals: near full-screen */
  .modal-content {
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
  }

  .modal-body {
    padding: 20px 16px;
  }

  /* Cards */
  .card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .card:hover {
    transform: none;
  }

  /* Grids single column */
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .accounts-grid,
  .budgets-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Settings */
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .setting-item>div:last-child,
  .setting-item>button {
    align-self: flex-start;
  }

  .settings-grid {
    max-width: 100%;
  }

  /* Transaction items */
  .transaction-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 12px;
  }

  .tx-actions {
    margin-left: auto;
  }

  /* Savings */
  .savings-grid {
    grid-template-columns: 1fr;
  }

  .saving-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .saving-actions {
    justify-content: center;
  }

  /* Dashboard account widget */
  .dash-acc-card {
    min-width: 160px;
    padding: 14px;
  }

  /* Charts */
  .chart-container {
    height: 220px;
  }

  .chart-container.doughnut-container {
    height: 200px;
  }

  /* Hero Section Mobile */
  .hero-section {
    flex-direction: column;
    gap: 20px;
  }

  .vip-card-wrapper {
    width: 100%;
  }

  .vip-card {
    max-width: 100%;
    height: 200px;
    padding: 24px;
  }

  .card-balance {
    font-size: 28px;
  }

  .card-number {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .hero-stats {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .stat-box {
    flex: 1;
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    text-align: center;
  }

  .stat-info h3 {
    font-size: 16px;
  }

  .stat-info p {
    font-size: 12px;
  }

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

  /* Reports summary responsive */
  .report-summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Toast above bottom nav */
  #toast-container {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  /* Excel preview */
  .excel-preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .excel-preview-actions {
    flex-direction: column;
  }

  .excel-preview-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Mobile phones --- */
@media (max-width: 480px) {
  .main-content {
    padding: 16px 12px;
    padding-bottom: 90px;
  }

  .top-header {
    margin-bottom: 20px;
  }

  .page-title h2 {
    font-size: 20px;
  }

  /* Summary cards: stacked compact */
  .summary-card {
    gap: 14px;
  }

  .summary-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }

  .summary-details h4 {
    font-size: 12px;
  }

  .summary-details h2 {
    font-size: 18px;
  }

  /* Buttons */
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Transaction list */
  .tx-left {
    gap: 10px;
  }

  .tx-icon {
    width: 38px;
    height: 38px;
    font-size: 15px;
    border-radius: 10px;
  }

  .tx-info h4 {
    font-size: 14px;
  }

  .tx-info p {
    font-size: 11px;
  }

  .tx-amount {
    font-size: 14px;
  }

  .tx-date {
    font-size: 11px;
  }

  /* Account cards */
  .account-card-header {
    margin-bottom: 12px;
  }

  .account-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .account-details h3 {
    font-size: 16px;
  }

  .account-balance-wrap h2 {
    font-size: 20px;
  }

  .account-actions {
    top: 20px;
    right: 20px;
  }

  /* Modals: full screen on phones */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }

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

  .modal-header {
    padding: 20px 16px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  /* Form touch targets */
  .form-control {
    padding: 12px 14px;
    font-size: 16px;
    /* prevents iOS zoom */
    border-radius: 12px;
  }

  .input-group .form-control {
    padding-left: 44px;
  }

  .type-btn {
    padding: 10px 8px;
    font-size: 13px;
  }

  .form-actions {
    margin-top: 24px;
  }

  .form-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 14px;
  }

  /* Budget cards */
  .budget-card h4 {
    font-size: 15px;
  }

  .budget-footer span {
    font-size: 12px;
  }

  /* Saving cards */
  .saving-circle-wrap {
    width: 70px;
    height: 70px;
  }

  .saving-circle-inner {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }

  .saving-details h3 {
    font-size: 16px;
  }

  /* Toast: full width */
  #toast-container {
    left: 12px;
    right: 12px;
    bottom: 16px;
  }

  .toast {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 12px;
  }

  /* Charts smaller */
  .chart-container {
    height: 180px;
  }

  /* Settings compact */
  .setting-info h4 {
    font-size: 14px;
  }

  .setting-info p {
    font-size: 12px;
    max-width: 100%;
  }

  /* Excel stats 2 col */
  .excel-preview-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Dashboard accounts scroll */
  .dashboard-accounts {
    gap: 10px;
    margin-bottom: 20px;
  }

  .dash-acc-card {
    min-width: 140px;
    padding: 12px;
  }

  .dash-acc-card h4 {
    font-size: 11px;
  }

  .dash-acc-card h3 {
    font-size: 15px;
  }

  /* Hero on small phone */
  .hero-section {
    gap: 16px;
  }

  .vip-card {
    height: 180px;
    padding: 20px;
  }

  .card-balance {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .card-chip {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .card-balance-label {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .stat-box {
    padding: 14px 10px;
    gap: 8px;
  }

  .stat-info h3 {
    font-size: 14px;
  }

  .stat-info p {
    font-size: 11px;
  }

  /* Toast above nav */
  #toast-container {
    left: 12px;
    right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- Landscape phone fix --- */
@media (max-height: 500px) and (orientation: landscape) {
  .modal-content {
    max-height: 95vh;
  }

  .modal-body {
    padding: 12px 16px;
  }

  .form-group {
    margin-bottom: 12px;
  }
}

/* --- Large desktop enhancements --- */
@media (min-width: 1400px) {
  .main-content {
    padding: 40px 60px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .accounts-grid,
  .budgets-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* === Custom Category Add UI === */
.category-select-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.category-select-wrap .form-control {
  flex: 1;
}

.btn-add-category {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(212,175,55,0.2);
}

.btn-add-category:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(212,175,55,0.35);
}

.inline-add-category {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  animation: slideUpFade 0.3s ease-out;
}

.inline-add-category .form-control {
  flex: 1;
}

.inline-add-category .btn {
  padding: 10px 16px;
}

/* === Greeting Header === */
.greeting-text {
  font-size: 14px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.greeting-text i {
  font-size: 16px;
}

/* === Category Tags (Settings) === */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.category-tag.default {
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.category-tag.custom {
  background: rgba(212,175,55,0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(212,175,55,0.3);
}

.category-tag .remove-cat {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--danger);
  background: var(--danger-bg);
  transition: var(--transition);
  cursor: pointer;
}

.category-tag .remove-cat:hover {
  background: var(--danger);
  color: white;
}

/* Nickname input in settings */
.nickname-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nickname-input-wrap .form-control {
  max-width: 220px;
}

@media (max-width: 768px) {
  .nickname-input-wrap .form-control {
    max-width: 160px;
  }
  
  .category-select-wrap {
    flex-wrap: nowrap;
  }
}