/* ============================================
   Dashboard & Data Visualization Styles
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  opacity: 0.08;
  border-radius: 0 var(--radius-lg) 0 0;
}

.stat-card.salary::before {
  background: var(--primary);
}

.stat-card.allocated::before {
  background: var(--accent);
}

.stat-card.remaining::before {
  background: var(--success);
}

.stat-card.progress::before {
  background: var(--warning);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-card.salary .stat-icon {
  background: rgba(95, 141, 126, 0.12);
  color: var(--primary);
}

.stat-card.allocated .stat-icon {
  background: rgba(244, 162, 97, 0.12);
  color: var(--accent);
}

.stat-card.remaining .stat-icon {
  background: rgba(82, 183, 136, 0.12);
  color: var(--success);
}

.stat-card.progress .stat-icon {
  background: rgba(255, 209, 102, 0.2);
  color: #d4a017;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.stat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.stat-percent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

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

.stat-percent.negative {
  color: var(--danger);
}

.stat-progress {
  height: 4px;
  flex: 1;
  max-width: 100px;
  background: var(--surface-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 12px;
}

.stat-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

/* ============================================
   Charts Grid
   ============================================ */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.charts-grid .chart-card:first-child {
  grid-column: span 2;
}

.chart-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all var(--transition);
}

.chart-card:hover {
  box-shadow: var(--shadow-md);
}

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

.chart-title {
  font-size: 15px;
  font-weight: 700;
}

.chart-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

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

.chart-container.small {
  height: 240px;
}

.chart-container.circular {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ============================================
   Circular Progress
   ============================================ */
.circular-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
}

.circular-progress {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circular-progress circle {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}

.circular-track {
  stroke: var(--surface-alt);
}

.circular-fill {
  stroke: url(#circularGradient);
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 6px rgba(95, 141, 126, 0.3));
}

.circular-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circular-percent {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.circular-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.circular-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   Payment Status Summary
   ============================================ */
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.status-card {
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-card.paid .status-icon-wrap {
  background: rgba(82, 183, 136, 0.12);
  color: var(--success);
}

.status-card.unpaid .status-icon-wrap {
  background: rgba(231, 111, 81, 0.1);
  color: var(--danger);
}

.status-card.total .status-icon-wrap {
  background: rgba(95, 141, 126, 0.12);
  color: var(--primary);
}

.status-card.percent .status-icon-wrap {
  background: rgba(255, 209, 102, 0.2);
  color: #d4a017;
}

.status-data {
  flex: 1;
}

.status-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.status-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ============================================
   Recent Transactions
   ============================================ */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.recent-item:hover {
  background: var(--border);
  transform: translateX(4px);
}

.recent-item.paid {
  background: rgba(82, 183, 136, 0.06);
  border-left: 3px solid var(--success);
}

.recent-category-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14px;
  color: white;
  position: relative;
}

.recent-category-icon .color-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface-alt);
}

.recent-item.paid .recent-category-icon .color-badge {
  border-color: rgba(82, 183, 136, 0.06);
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.recent-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.recent-amount {
  text-align: right;
}

.recent-nominal {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.recent-percent {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   Content Rows (Mixed Layouts)
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* ============================================
   Category Legend
   ============================================ */
.category-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-value {
  font-weight: 600;
  flex-shrink: 0;
}

.legend-percent {
  font-size: 11px;
  color: var(--text-muted);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================
   Salary Input Section
   ============================================ */
.salary-section {
  background: linear-gradient(
    135deg,
    rgba(95, 141, 126, 0.08),
    rgba(167, 196, 160, 0.06)
  );
  border: 1px solid rgba(95, 141, 126, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.salary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.salary-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.salary-current {
  padding: 12px 20px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.salary-month {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.salary-amount {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.salary-history {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
}

.salary-history-item {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.salary-history-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.salary-history-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   Settings Page
   ============================================ */
.settings-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.settings-tab {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-tab:hover {
  color: var(--text-primary);
}

.settings-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.category-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
  transform: translateX(4px);
}

.category-color {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.category-info {
  flex: 1;
}

.category-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.category-type {
  font-size: 11px;
  color: var(--text-muted);
}

.category-type .chip {
  font-size: 10px;
}

.category-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ============================================
   Transaction Cards (Grid View)
   ============================================ */
.transaction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.transaction-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.transaction-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  transition: width var(--transition-fast);
}

.transaction-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.transaction-card:hover::before {
  width: 6px;
}

.transaction-card.color-sage::before {
  background: var(--primary);
}
.transaction-card.color-orange::before {
  background: var(--accent);
}
.transaction-card.color-yellow::before {
  background: var(--warning);
}
.transaction-card.color-default::before {
  background: var(--text-muted);
}

.transaction-card.paid {
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.04), var(--surface));
  border-color: rgba(82, 183, 136, 0.3);
}

.transaction-card.paid::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  box-shadow: 0 2px 6px rgba(82, 183, 136, 0.4);
}

.transaction-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.transaction-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.transaction-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.transaction-details {
  flex: 1;
  min-width: 0;
}

.transaction-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.transaction-date {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.transaction-amount-section {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 14px 0;
}

.amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.amount-row:last-child {
  margin-bottom: 0;
}

.amount-label {
  color: var(--text-muted);
}

.amount-value {
  font-weight: 600;
  color: var(--text-primary);
}

.amount-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.amount-percent {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(95, 141, 126, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

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

.transaction-status {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.status-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: var(--surface);
  flex-shrink: 0;
}

.transaction-status:hover .status-checkbox {
  border-color: var(--primary);
}

.transaction-status.checked .status-checkbox {
  background: var(--success);
  border-color: var(--success);
}

.status-checkbox svg {
  width: 12px;
  height: 12px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}

.transaction-status.checked .status-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.status-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.transaction-status.checked .status-text {
  color: var(--success);
}

/* ============================================
   Reports Page
   ============================================ */
.report-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all var(--transition);
}

.report-card:hover {
  box-shadow: var(--shadow-sm);
}

.report-card-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.report-card-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.report-card-sub {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.report-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.report-charts-grid .full-width {
  grid-column: span 2;
}

/* ============================================
   Landing Page (index.html)
   ============================================ */
.landing-page {
  min-height: 100vh;
}

.landing-nav {
  padding: 20px 40px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-left: calc(40px + env(safe-area-inset-left, 0px));
  padding-right: calc(40px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
}

.landing-logo-text {
  font-size: 18px;
  font-weight: 700;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.landing-nav-links a:hover {
  color: var(--primary);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-section {
  padding: 80px 40px;
  padding-left: calc(40px + env(safe-area-inset-left, 0px));
  padding-right: calc(40px + env(safe-area-inset-right, 0px));
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    var(--background) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(95, 141, 126, 0.08),
    transparent 70%
  );
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(95, 141, 126, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-section h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-section h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-preview {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}

.features-section {
  padding: 80px 40px;
  padding-left: calc(40px + env(safe-area-inset-left, 0px));
  padding-right: calc(40px + env(safe-area-inset-right, 0px));
  background: var(--background);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(95, 141, 126, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(95, 141, 126, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(244, 162, 97, 0.12);
  color: var(--accent);
}

.feature-card:nth-child(3) .feature-icon {
  background: rgba(82, 183, 136, 0.12);
  color: var(--success);
}

.feature-card:nth-child(4) .feature-icon {
  background: rgba(255, 209, 102, 0.2);
  color: #d4a017;
}

.feature-card:nth-child(5) .feature-icon {
  background: rgba(231, 111, 81, 0.1);
  color: var(--danger);
}

.feature-card:nth-child(6) .feature-icon {
  background: rgba(95, 141, 126, 0.12);
  color: var(--primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cta-section {
  padding: 80px 40px;
  padding-left: calc(40px + env(safe-area-inset-left, 0px));
  padding-right: calc(40px + env(safe-area-inset-right, 0px));
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-xl);
  color: white;
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-box .btn {
  background: white;
  color: var(--primary);
}

.cta-box .btn:hover {
  background: var(--surface-alt);
}

.landing-footer {
  padding: 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(40px + env(safe-area-inset-left, 0px));
  padding-right: calc(40px + env(safe-area-inset-right, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================
   Release Notes Page
   ============================================ */
.release-container {
  max-width: 800px;
  margin: 0 auto;
}

.release-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
}

.release-item::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 40px;
  bottom: -40px;
  width: 2px;
  background: var(--border);
}

.release-item:last-child::before {
  display: none;
}

.release-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  box-shadow: 0 0 0 6px rgba(95, 141, 126, 0.1);
}

.release-version {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.release-date-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--surface-alt);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.release-note-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.release-features {
  list-style: none;
}

.release-features li {
  padding: 8px 0 8px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.release-features li:last-child {
  border-bottom: none;
}

.release-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--success);
  font-weight: 700;
}

/* ============================================
   Responsive: Dashboard & Others
   ============================================ */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .charts-grid .chart-card:first-child {
    grid-column: span 1;
  }

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

  .report-charts-grid {
    grid-template-columns: 1fr;
  }

  .report-charts-grid .full-width {
    grid-column: span 1;
  }
}

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

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

  .hero-section h1 {
    font-size: 40px;
  }

  .section-title {
    font-size: 28px;
  }
}

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

  .status-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 18px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
  }

  .chart-card {
    padding: 18px;
  }

  .chart-container {
    height: 220px;
  }

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

  .circular-wrapper {
    width: 180px;
    height: 180px;
  }

  .circular-percent {
    font-size: 32px;
  }

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

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

  .hero-section {
    padding: 48px 20px;
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }

  .hero-section h1 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-badge {
    font-size: 12px;
    padding: 7px 14px;
  }

  .features-section {
    padding: 48px 20px;
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }

  .landing-nav {
    padding: 14px 20px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
    min-height: calc(56px + env(safe-area-inset-top, 0px));
    gap: 8px;
  }

  .landing-logo-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .landing-logo-text {
    font-size: 16px;
  }

  .landing-nav-actions {
    gap: 8px;
  }

  .landing-nav-links {
    display: none;
  }

  .section-title {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.5px;
  }

  .section-desc {
    font-size: 14px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
  }

  .feature-card h3 {
    font-size: 16px;
  }

  .feature-card p {
    font-size: 13px;
  }

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

  .report-card {
    padding: 14px;
  }

  .report-card-value {
    font-size: 18px;
  }

  .salary-section {
    padding: 18px;
  }

  .salary-amount {
    font-size: 18px;
  }

  .salary-current {
    padding: 10px 16px;
  }

  .category-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .category-color {
    width: 42px;
    height: 42px;
  }

  .cta-section {
    padding: 48px 20px;
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }

  .landing-footer {
    padding: 32px 20px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
  }

  .release-container {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .release-item {
    padding-left: 36px;
  }

  .release-dot {
    width: 22px;
    height: 22px;
  }
}

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

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

  .hero-section h1 {
    font-size: 26px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section-title {
    font-size: 22px;
  }

  .stat-value {
    font-size: 20px;
  }

  .cta-box {
    padding: 28px 18px;
  }

  .cta-box h2 {
    font-size: 22px;
  }

  .cta-box p {
    font-size: 14px;
  }
}
