/* ============================================
   DuoFinance — Finansinių įrankių stiliai
   Bendras stilius visiems puslapiams
   ============================================ */

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

/* === DESIGN TOKENS === */
:root {
  --bg:       #141210;
  --bg-2:     #1e1c19;
  --bg-3:     #262420;
  --bg-4:     #302e2a;
  --bg-5:     #3a3836;

  --text:     #f5f4f1;
  --text-2:   #b5b2aa;
  --text-3:   #7a776e;
  --text-4:   #55524b;

  --border:   #3a3834;
  --border-2: #2e2c28;

  --accent:      #e8c840;
  --accent-soft: rgba(232, 200, 64, 0.10);

  --success:      #1D9E75;
  --success-soft: rgba(29, 158, 117, 0.10);
  --warning:      #E8A020;
  --warning-soft: rgba(232, 160, 32, 0.10);
  --danger:       #E24B4A;
  --danger-soft:  rgba(226, 75, 74, 0.10);
  --info:         #378ADD;
  --info-soft:    rgba(55, 138, 221, 0.10);

  --c1: #378ADD; --c2: #1D9E75; --c3: #9B59B6;
  --c4: #D4537E; --c5: #185FA5; --c6: #E8A020; --c7: #888780;

  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 999px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 56px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
  margin-right: 1.5rem;
  flex-shrink: 0;
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
}

.nav-group { position: relative; }

.nav-group-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-group-btn:hover,
.nav-group.open .nav-group-btn {
  color: var(--text);
  background: var(--bg-3);
}
.nav-group.has-active > .nav-group-btn { color: var(--accent); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.375rem;
  min-width: 200px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.nav-group.open .nav-dropdown { display: block; }

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-2) !important;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-dropdown-link:hover { background: var(--bg-4); color: var(--text) !important; }
.nav-dropdown-link.active { color: var(--accent) !important; background: var(--accent-soft); }

/* Hamburger */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 1.5rem;
  overflow-y: auto;
}
.nav-mobile.open { display: block; }

.nav-mobile-group { margin-bottom: 1.5rem; }
.nav-mobile-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  padding: 0 0.75rem;
  margin-bottom: 0.375rem;
}
.nav-mobile-link {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-2) !important;
  text-decoration: none !important;
  border-radius: var(--r-sm);
  transition: background 0.12s;
}
.nav-mobile-link:hover { background: var(--bg-3); }
.nav-mobile-link.active { color: var(--accent) !important; background: var(--accent-soft); }

/* === PAGE LAYOUT === */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-header { margin-bottom: 2rem; }
.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}
.page-header p {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* === CARDS === */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 1rem;
}

/* === FORMS === */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
}
.form-input::placeholder { color: var(--text-4); }

.form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a776e' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.form-select option { background: var(--bg-3); color: var(--text); }

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

.form-hint {
  font-size: 0.6875rem;
  color: var(--text-4);
  margin-top: 0.25rem;
}

.form-input-icon {
  position: relative;
}
.form-input-icon .form-input {
  padding-left: 2rem;
}
.form-input-icon::before {
  content: '€';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
}

/* Remove number arrows */
.form-input::-webkit-outer-spin-button,
.form-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-input[type="number"] { -moz-appearance: textfield; }

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* === RANGE SLIDER === */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 20px;
  width: 100%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-4);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  margin-top: -7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(232, 200, 64, 0.25);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-4);
  border: none;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* === RESULTS === */
.result-hero {
  text-align: center;
  padding: 1.5rem 1rem;
}
.result-hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}
.result-hero-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.result-item {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 0.875rem;
}
.result-label {
  font-size: 0.6875rem;
  color: var(--text-3);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.result-value {
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* === PROGRESS BAR === */
.progress {
  height: 8px;
  background: var(--bg-4);
  border-radius: var(--r-full);
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--accent);
  transition: width 0.4s ease;
  max-width: 100%;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.375rem;
}

/* Large progress */
.progress-lg { height: 12px; }
.progress-lg .progress-fill { border-radius: var(--r-full); }

/* === ALERTS === */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(29, 158, 117, 0.2); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(232, 160, 32, 0.2); }
.alert-danger  { background: var(--danger-soft);  color: var(--danger);  border: 1px solid rgba(226, 75, 74, 0.2); }
.alert-info    { background: var(--info-soft);    color: var(--info);    border: 1px solid rgba(55, 138, 221, 0.2); }

/* === DATA TABLE === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.data-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-4);
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border-2);
  color: var(--text-2);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }

/* === PRESET TABS === */
.preset-group {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.preset-btn {
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text-3);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.preset-btn:hover { border-color: var(--border); color: var(--text-2); }
.preset-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #141210;
}

/* === DISTRIBUTION BAR === */
.distribution {
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.distribution-title {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.bar {
  display: flex;
  height: 20px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
}
.bar-segment {
  transition: flex 0.3s ease;
  border-radius: 2px;
  min-width: 3px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  color: var(--text-2);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* === ALLOCATION CARDS === */
.alloc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.alloc-card {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.alloc-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.alloc-label {
  font-size: 0.75rem;
  color: var(--text-2);
  margin: 0 0 0.125rem;
}
.alloc-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.alloc-amount {
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.alloc-pct {
  font-size: 0.75rem;
  color: var(--text-2);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* === LANDING PAGE === */
.landing-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}
.landing-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.landing-hero h1 span { color: var(--accent); }
.landing-hero p {
  font-size: 0.9375rem;
  color: var(--text-3);
  max-width: 400px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tool-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-decoration: none !important;
  color: var(--text) !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.tool-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.tool-card.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.tool-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.tool-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.tool-card-desc {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.4;
}
.tool-card-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-full);
  background: var(--bg-4);
  color: var(--text-3);
  margin-top: 0.5rem;
}

.tools-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* === BUTTON === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: var(--accent);
  color: #141210;
  border: none;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: #f0d460; }
.btn:active { transform: scale(0.97); }

.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.75rem; }

.btn-ghost {
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--bg-4); color: var(--text); }

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(226, 75, 74, 0.2);
}
.btn-danger:hover { background: rgba(226, 75, 74, 0.18); }

.btn-block { width: 100%; }

/* === EXPENSE LIST ITEM === */
.expense-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-2);
}
.expense-item:last-child { border-bottom: none; }

.expense-cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.expense-info { flex: 1; min-width: 0; }
.expense-info-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.expense-name {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.expense-amount {
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.expense-meta {
  font-size: 0.6875rem;
  color: var(--text-4);
  margin-top: 0.125rem;
}
.expense-delete {
  background: none;
  border: none;
  color: var(--text-4);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  transition: color 0.15s;
  flex-shrink: 0;
}
.expense-delete:hover { color: var(--danger); }

/* === GOAL CARD === */
.goal-card {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.goal-card:hover { border-color: var(--border); }

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.goal-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}
.goal-meta {
  font-size: 0.6875rem;
  color: var(--text-4);
}
.goal-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-2);
  margin-top: 0.375rem;
}

/* === MODAL POPUP === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 8, 6, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.modal p {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.modal ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.modal li {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === UTILITIES === */
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger  { color: var(--danger) !important; }
.text-info    { color: var(--info) !important; }
.text-accent  { color: var(--accent) !important; }
.text-muted   { color: var(--text-3) !important; }

.tnum { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.75rem !important; }
.mt-2 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.75rem !important; }
.mb-2 { margin-bottom: 1.5rem !important; }

.hidden { display: none !important; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.divider {
  height: 1px;
  background: var(--border-2);
  border: none;
  margin: 1rem 0;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-4);
  font-size: 0.875rem;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1023px) {
  .nav-inner { padding: 0 1rem; }
  .nav-group-btn { padding: 0.5rem 0.5rem; font-size: 0.75rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .page { padding: 1.5rem 1rem 3rem; }
  .page-header h1 { font-size: 1.3rem; }

  .landing-hero { padding: 2rem 0 1.5rem; }
  .landing-hero h1 { font-size: 1.5rem; }

  .tools-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .tool-card { padding: 1rem; }
  .tool-card-icon { font-size: 1.25rem; margin-bottom: 0.5rem; }

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

  .result-hero-value { font-size: 2rem; }
  .result-grid { grid-template-columns: 1fr; }

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

  .card { padding: 1rem; }
}

@media (max-width: 380px) {
  .tools-grid { grid-template-columns: 1fr; }
  .alloc-grid { grid-template-columns: 1fr; }
  .preset-group { gap: 0.25rem; }
  .preset-btn { font-size: 0.6875rem; padding: 0.375rem 0.625rem; }
}
