/* @us 565 — dashboard styles (.../565); @us 590 — tx-edit button;
   @us 591 — kid color themes + swatches (https://dev.azure.com/domesprojektai/teciobankas/_workitems/edit/591) */
/* =============================================================================
   Tėčio Bankas — stiliai (atkartoja Figma dizainą)
   Spalvos/šriftai paimti iš originalaus dizaino theme.css.
   ============================================================================= */

:root {
  --background: #fdf8ef;
  --foreground: #2d2416;
  --card: #ffffff;
  --primary: #f5a623;
  --secondary: #fef3d8;
  --muted: #f5ede0;
  --muted-foreground: #8a7360;
  --accent: #4caf82;   /* žalia (pajamos) */
  --destructive: #e8553e; /* raudona (išlaidos) */
  --border: rgba(45, 36, 22, 0.12);
  --input-background: #fdf3e3;
  --ring: rgba(245, 166, 35, 0.4);

  --r-xl: 0.75rem;
  --r-2xl: 1rem;
  --r-3xl: 1.5rem;

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
strong { font-weight: 800; }

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(253, 248, 239, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(245, 166, 35, 0.15);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 0; }
.logo { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.logo-badge {
  width: 2.5rem; height: 2.5rem; border-radius: var(--r-2xl);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, #fff0f4, #ffe4ec);
  box-shadow: 0 2px 8px rgba(245, 100, 130, 0.25);
}
.logo-title { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; line-height: 1; color: var(--foreground); }

.kid-tabs { display: flex; align-items: center; gap: 0.375rem; overflow-x: auto; flex: 1; justify-content: center; scrollbar-width: none; }
.kid-tabs::-webkit-scrollbar { display: none; }
.kid-tab {
  display: inline-flex; align-items: center; gap: 0.375rem; flex-shrink: 0;
  padding: 0.375rem 0.75rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  background: var(--muted); color: var(--muted-foreground);
  text-decoration: none; transition: all 0.15s;
}
.kid-tab .emoji { font-size: 1rem; }
.kid-tab.is-active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(245, 166, 35, 0.35); }

.icon-btn { padding: 0.5rem; border-radius: var(--r-xl); color: var(--muted-foreground); display: inline-flex; transition: background 0.15s; flex-shrink: 0; }
.icon-btn:hover { background: var(--muted); }

/* ---------- Main layout ---------- */
main.wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }

/* ---------- Balance card ---------- */
.balance-card {
  border-radius: var(--r-3xl); overflow: hidden; position: relative;
  background: linear-gradient(145deg, #e8f4fd 0%, #d6ecfb 60%, #c8e4f8 100%);
  border: 2px solid rgba(100, 180, 240, 0.25);
  box-shadow: 0 4px 24px rgba(100, 160, 220, 0.15);
  animation: rise 0.4s ease;
}
.balance-inner { display: flex; align-items: stretch; }
.balance-pig { width: 145px; height: 145px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.balance-pig svg { width: 118px; height: 118px; }
.balance-body { flex: 1; padding: 1.25rem 1.25rem 1.25rem 0.5rem; min-width: 0; }
.balance-label {
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; color: #5a8fbc;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px;
}
.balance-amount { font-family: var(--font-head); font-weight: 900; font-size: 2.5rem; color: #1a3a5c; line-height: 1.05; margin-bottom: 12px; }
.balance-pills { display: flex; flex-direction: column; gap: 0.5rem; }
.pill {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem; border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.7);
}
.pill .emoji { font-size: 1rem; }
.pill .pill-text { font-family: var(--font-head); font-weight: 700; font-size: 0.76rem; color: #2d5a8e; }

/* ---------- Balanso kortelės spalvų temos (per vaiką) ---------- */
.balance-card.color-blue { background: linear-gradient(145deg, #e8f4fd 0%, #d6ecfb 60%, #c8e4f8 100%); border-color: rgba(100, 180, 240, 0.25); box-shadow: 0 4px 24px rgba(100, 160, 220, 0.15); }
.color-blue .balance-label { color: #5a8fbc; } .color-blue .balance-amount { color: #1a3a5c; } .color-blue .pill-text { color: #2d5a8e; }

.balance-card.color-purple { background: linear-gradient(145deg, #f0ebff 0%, #e2d5fb 60%, #d4c3f8 100%); border-color: rgba(160, 120, 240, 0.25); box-shadow: 0 4px 24px rgba(140, 100, 220, 0.15); }
.color-purple .balance-label { color: #8a6fc0; } .color-purple .balance-amount { color: #3a2a6e; } .color-purple .pill-text { color: #5a3fa0; }

.balance-card.color-green { background: linear-gradient(145deg, #e9f9f0 0%, #d3f0e0 60%, #c2e8d2 100%); border-color: rgba(80, 190, 135, 0.3); box-shadow: 0 4px 24px rgba(80, 170, 125, 0.15); }
.color-green .balance-label { color: #4a9d6e; } .color-green .balance-amount { color: #14532d; } .color-green .pill-text { color: #2d7a52; }

.balance-card.color-red { background: linear-gradient(145deg, #fdecea 0%, #fbdad4 60%, #f8c9c0 100%); border-color: rgba(235, 125, 105, 0.3); box-shadow: 0 4px 24px rgba(215, 105, 90, 0.15); }
.color-red .balance-label { color: #c06a5a; } .color-red .balance-amount { color: #7a2818; } .color-red .pill-text { color: #a03e2d; }

.balance-card.color-yellow { background: linear-gradient(145deg, #fdf6e0 0%, #fbeec2 60%, #f8e2a8 100%); border-color: rgba(235, 180, 70, 0.35); box-shadow: 0 4px 24px rgba(215, 160, 60, 0.18); }
.color-yellow .balance-label { color: #b08a3a; } .color-yellow .balance-amount { color: #6e4a14; } .color-yellow .pill-text { color: #8a6418; }

.balance-card.color-orange { background: linear-gradient(145deg, #fff0e0 0%, #ffdfc0 60%, #ffcd9f 100%); border-color: rgba(240, 150, 70, 0.32); box-shadow: 0 4px 24px rgba(225, 135, 55, 0.16); }
.color-orange .balance-label { color: #c0773a; } .color-orange .balance-amount { color: #7a3d10; } .color-orange .pill-text { color: #a85e1c; }

.balance-card.color-pink { background: linear-gradient(145deg, #ffe9f1 0%, #fdd3e3 60%, #fbc0d6 100%); border-color: rgba(240, 130, 175, 0.3); box-shadow: 0 4px 24px rgba(225, 110, 160, 0.16); }
.color-pink .balance-label { color: #c06a92; } .color-pink .balance-amount { color: #7a1f48; } .color-pink .pill-text { color: #a83e72; }

.balance-card.color-tan { background: linear-gradient(145deg, #f3ece0 0%, #e6d8c2 60%, #d9c8a8 100%); border-color: rgba(180, 150, 110, 0.35); box-shadow: 0 4px 24px rgba(160, 130, 90, 0.15); }
.color-tan .balance-label { color: #927a52; } .color-tan .balance-amount { color: #5a4422; } .color-tan .pill-text { color: #786038; }

.balance-card.color-white { background: linear-gradient(145deg, #ffffff 0%, #f7f7f9 60%, #edeff2 100%); border-color: rgba(45, 36, 22, 0.16); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); }
.color-white .balance-label { color: #8a8a92; } .color-white .balance-amount { color: #2d2d33; } .color-white .pill-text { color: #5a5a64; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat { border-radius: var(--r-2xl); padding: 0.875rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.stat .emoji { font-size: 1.5rem; margin-bottom: 0.5rem; }
.stat .stat-value { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; line-height: 1.1; }
.stat .stat-label { font-family: var(--font-head); font-weight: 700; font-size: 0.66rem; margin-top: 3px; }
.stat-green { background: #f0faf5; border: 1.5px solid #b8e8cd; }
.stat-green .stat-value { color: #1e7a4a; } .stat-green .stat-label { color: #4caf82; }
.stat-blue { background: #eef6ff; border: 1.5px solid #b8d8f8; }
.stat-blue .stat-value { color: #1a5fa8; } .stat-blue .stat-label { color: #3a8edc; }
.stat-red { background: #fff0f0; border: 1.5px solid #f8c0c0; }
.stat-red .stat-value { color: #c0392b; } .stat-red .stat-label { color: #e8553e; }

/* ---------- Card (chart, transactions) ---------- */
.card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-2xl); }
.chart-card { padding: 1.25rem; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.chart-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; }
.chart-sub { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; color: var(--muted-foreground); }
.chart-wrap { height: 150px; }

/* ---------- Action buttons ---------- */
.actions { display: flex; gap: 0.75rem; }
.btn-action {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem; border-radius: var(--r-2xl); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-action:hover { transform: scale(1.02); }
.btn-action:active { transform: scale(0.97); }
.btn-income { background: var(--accent); }
.btn-expense { background: var(--destructive); }

/* ---------- Transactions ---------- */
.tx-card { overflow: hidden; }
.tx-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.tx-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; }
.tx-count { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; color: var(--muted-foreground); }
.tx-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.25rem; transition: background 0.15s; }
.tx-row + .tx-row { border-top: 1px solid var(--border); }
.tx-row:hover { background: rgba(245, 237, 224, 0.4); }
.tx-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--r-xl); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0; }
.tx-icon.income { background: #f0faf5; } .tx-icon.expense { background: #fef2f0; }
.tx-main { flex: 1; min-width: 0; }
.tx-desc { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-sub { font-size: 0.72rem; color: var(--muted-foreground); font-family: var(--font-body); }
.tx-amt { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; flex-shrink: 0; }
.tx-amt.income { color: #2d7a56; } .tx-amt.expense { color: #c0392b; }
.tx-empty { padding: 2rem 1.25rem; text-align: center; color: var(--muted-foreground); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.tx-edit {
  width: 1.9rem; height: 1.9rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; color: var(--muted-foreground); transition: background 0.15s, color 0.15s;
}
button.tx-edit:hover { background: var(--muted); color: var(--foreground); }
.tx-edit-auto { color: rgba(45, 36, 22, 0.25); cursor: default; }

/* ---------- Parent note ---------- */
.parent-note { border-radius: var(--r-2xl); padding: 1rem; background: #fffbf0; border: 1.5px dashed #f5c97a; color: #8a6f2e; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; }
.parent-note .emoji { margin-right: 0.375rem; }

/* ---------- Overlay + Drawer + Dialog ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 40; }
[hidden] { display: none !important; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 18rem; z-index: 50;
  background: #fff; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  display: flex; flex-direction: column; animation: slideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1.5px solid var(--border); }
.drawer-title { font-family: var(--font-head); font-weight: 900; font-size: 1.1rem; }
.drawer-body { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; }
.menu-item { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1rem; border-radius: var(--r-2xl); transition: background 0.15s; text-align: left; }
.menu-item:hover { background: var(--muted); }
.menu-item-left { display: flex; align-items: center; gap: 0.75rem; }
.menu-ico { width: 2.25rem; height: 2.25rem; border-radius: var(--r-xl); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-label { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.menu-sub { font-family: var(--font-head); font-weight: 600; font-size: 0.7rem; color: var(--muted-foreground); }
.menu-chev { color: var(--muted-foreground); display: flex; align-items: center; gap: 0.25rem; }

.dialog {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50;
  width: calc(100% - 2rem); max-width: 28rem; background: #fff; border-radius: var(--r-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); padding: 1.5rem;
  animation: pop 0.2s ease;
}
.dialog.narrow { max-width: 20rem; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.dialog-title { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.dialog-close { padding: 0.375rem; border-radius: 999px; color: var(--muted-foreground); display: inline-flex; transition: background 0.15s; }
.dialog-close:hover { background: var(--muted); }

/* ---------- Type toggle ---------- */
.type-toggle { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; padding: 0.25rem; background: var(--muted); border-radius: var(--r-xl); }
.type-opt { flex: 1; padding: 0.5rem; border-radius: 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; color: var(--muted-foreground); background: transparent; transition: all 0.15s; }
.type-opt.active-income { background: var(--accent); color: #fff; }
.type-opt.active-expense { background: var(--destructive); color: #fff; }

/* ---------- Form fields ---------- */
.field { margin-bottom: 1rem; }
.field-label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.375rem; }
.input {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--r-xl);
  border: 1px solid var(--border); background: var(--input-background); outline: none;
  font-family: var(--font-body); color: var(--foreground);
}
.input:focus { box-shadow: 0 0 0 2px var(--ring); }
.input.big { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; }
.input.pin { text-align: center; letter-spacing: 0.5em; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.cat-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.75rem;
  border-radius: var(--r-xl); border: 2px solid var(--border); background: #fff; color: var(--foreground);
  font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; text-align: left; transition: all 0.12s;
}
.cat-btn.sel-income { border-color: var(--accent); background: #f0faf5; color: #2d7a56; }
.cat-btn.sel-expense { border-color: var(--destructive); background: #fef2f0; color: #c0392b; }

.btn-primary { width: 100%; padding: 0.875rem; border-radius: var(--r-xl); color: #fff; font-family: var(--font-head); font-weight: 800; background: var(--primary); transition: filter 0.12s; }
.btn-primary:hover { filter: brightness(1.03); }
.btn-save-income { background: var(--accent); }
.btn-save-expense { background: var(--destructive); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-danger { width: 100%; padding: 0.75rem; border-radius: var(--r-xl); color: var(--destructive); font-family: var(--font-head); font-weight: 700; background: #fef2f0; margin-top: 0.5rem; }
.btn-secondary {
  display: block; width: 100%; padding: 0.75rem; border-radius: var(--r-xl);
  background: var(--muted); color: var(--foreground);
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  text-align: center; text-decoration: none; transition: background 0.12s;
}
.btn-secondary:hover { background: #ece1d0; }

.pin-error { color: var(--destructive); font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; text-align: center; margin-top: 0.75rem; min-height: 1rem; }
.dialog-sub { font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; color: var(--muted-foreground); margin-top: -0.75rem; margin-bottom: 1.25rem; }
.field-row { display: flex; gap: 0.75rem; align-items: stretch; }
/* Laukai eilėje lygiuojami pagal apačią — net jei vienos etiketės tekstas
   lūžta į dvi eilutes, įvesties laukeliai lieka viename lygyje. */
.field-row .field { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }

/* =============================================================================
   Autentifikacija (prisijungimas / registracija / patvirtinimas / paskyra)
   — perpanaudota iš perkubulve-auth-kit, perstilizuota į TB išvaizdą.
   ============================================================================= */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.25rem; padding: 1.5rem 1rem;
}
.auth-logo { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.auth-card { width: 100%; max-width: 26rem; padding: 1.75rem; }
.auth-title { font-family: var(--font-head); font-weight: 900; font-size: 1.35rem; margin: 0 0 0.25rem; color: var(--foreground); }
.auth-sub { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--muted-foreground); margin: 0 0 1.25rem; line-height: 1.5; }
.auth-links { margin-top: 1.25rem; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; }
.auth-links a { color: var(--primary); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-divider { margin: 0 0.5rem; color: var(--muted-foreground); }
.auth-check { display: flex; align-items: center; gap: 0.5rem; margin: -0.25rem 0 1rem; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--muted-foreground); cursor: pointer; }
.auth-check input { width: 1rem; height: 1rem; accent-color: var(--primary); }
.auth-back { margin-bottom: 0.75rem; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; }
.auth-back a { color: var(--muted-foreground); text-decoration: none; }
.auth-back a:hover { color: var(--foreground); }

/* ---------- Pranešimai ---------- */
.alert { border-radius: var(--r-xl); padding: 0.75rem 1rem; margin-bottom: 1rem; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; line-height: 1.5; }
.alert-success { background: #f0faf5; border: 1.5px solid #b8e8cd; color: #1e7a4a; }
.alert-error   { background: #fff0f0; border: 1.5px solid #f8c0c0; color: #c0392b; }
.alert-info    { background: #eef6ff; border: 1.5px solid #b8d8f8; color: #1a5fa8; }

/* ---------- Slaptažodžio taisyklės ---------- */
.password-rules { list-style: none; margin: 0.5rem 0 0; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; color: var(--muted-foreground); }
.password-rules li { padding-left: 1.25rem; position: relative; margin-top: 2px; }
.password-rules li::before { content: '○'; position: absolute; left: 0.25rem; }
.password-rules li.rule-ok   { color: #1e7a4a; }
.password-rules li.rule-ok::before { content: '✓'; }
.password-rules li.rule-fail { color: #c0392b; }
.password-rules li.rule-fail::before { content: '✕'; }
.match-msg { display: block; margin-top: 0.375rem; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; min-height: 1rem; }
.match-ok   { color: #1e7a4a; }
.match-fail { color: #c0392b; }

/* ---------- Paskyros puslapis ---------- */
.account-block { border: 1.5px solid var(--border); border-radius: var(--r-2xl); padding: 0.25rem 1rem; margin-bottom: 1.5rem; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.625rem 0; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.account-row + .account-row { border-top: 1px solid var(--border); }
.account-label { color: var(--muted-foreground); font-weight: 600; }
.account-section-title { font-family: var(--font-head); font-weight: 800; font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.pin-form { margin-bottom: 0.5rem; }

/* ---------- Meniu papildymai ---------- */
.drawer-sep { height: 1px; background: var(--border); margin: 0.5rem 0.25rem; }
a.menu-item { text-decoration: none; color: inherit; }

/* ---------- Vaiko spalvos parinkiklis (nustatymai) ---------- */
.color-grid { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.color-swatch {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; padding: 0;
  border: 2.5px solid rgba(45, 36, 22, 0.12); cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.sel { border-color: var(--foreground); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); transform: scale(1.05); }
.swatch-blue   { background: linear-gradient(145deg, #d6ecfb, #a8d4f5); }
.swatch-purple { background: linear-gradient(145deg, #e2d5fb, #c4aaf2); }
.swatch-green  { background: linear-gradient(145deg, #d3f0e0, #9fe0c0); }
.swatch-red    { background: linear-gradient(145deg, #fbdad4, #f2b0a4); }
.swatch-yellow { background: linear-gradient(145deg, #fbeec2, #f2d490); }
.swatch-orange { background: linear-gradient(145deg, #ffdfc0, #ffbe85); }
.swatch-pink   { background: linear-gradient(145deg, #fdd3e3, #f7aac8); }
.swatch-tan    { background: linear-gradient(145deg, #e6d8c2, #d4bd95); }
.swatch-white  { background: linear-gradient(145deg, #ffffff, #e6e8ec); }

/* ---------- Vaiko ikonos parinkiklis ---------- */
.emoji-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.375rem; }
.emoji-btn {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; line-height: 1; padding: 0.45rem 0;
  border-radius: var(--r-xl); border: 2px solid var(--border); background: #fff;
  cursor: pointer; transition: border-color 0.12s, background 0.12s, transform 0.12s;
}
.emoji-btn:hover { border-color: #d4c4aa; transform: scale(1.06); }
.emoji-btn.sel { border-color: var(--primary); background: var(--secondary); box-shadow: 0 2px 8px rgba(245, 166, 35, 0.25); }
.emoji-custom { margin-top: 0.5rem; text-align: center; font-size: 1.1rem; }
@media (max-width: 380px) { .emoji-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  .balance-pig { width: 110px; height: 110px; }
  .balance-pig svg { width: 88px; height: 88px; }
  .balance-amount { font-size: 2.1rem; }
  .stat .stat-value { font-size: 1rem; }
  .stat .emoji { font-size: 1.25rem; }
}
