/* kalkulatori/investimet.html — page-specific styles (extracted from inline <style>) */
@layer page {
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pulse 2s infinite; flex-shrink: 0; }
.live-label { font-size: .75rem; color: var(--accent); font-weight: 600; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.mode-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.mode-tab { flex: 1; height: 42px; border-radius: 8px; font-size: .875rem; font-weight: 600; border: 1px solid rgba(255,255,255,.08); background: transparent; color: var(--text-2); transition: background .15s, border-color .15s, color .15s; }
.mode-tab.active { background: rgba(var(--accent-rgb),.12); border-color: rgba(var(--accent-rgb),.35); color: var(--accent); }
.main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.panel { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 20px 22px; }
.panel__label { font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.form-rows { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-label { font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.form-label small { font-weight: 400; color: var(--text-3); font-size: .75rem; }
.input-wrap { position: relative; }
.input-wrap .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: .875rem; font-weight: 600; color: var(--text-3); pointer-events: none; }
.input-wrap .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .8125rem; color: var(--text-3); pointer-events: none; }
.form-input, .form-select { width: 100%; height: 44px; background: var(--bg-1); border: 1px solid rgba(255,255,255,.10); border-radius: 8px; color: var(--text); font-size: .9375rem; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.form-input { padding: 0 13px; }
.form-input.has-prefix { padding-left: 32px; }
.form-input.has-suffix { padding-right: 44px; }
.form-input:focus, .form-select:focus { border-color: rgba(var(--accent-rgb),.5); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.form-input::placeholder { color: var(--text-4); }
.form-select { padding: 0 32px 0 13px; cursor: pointer; }
.form-select option, .form-select optgroup { background: var(--bg-1); }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235e6470'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E"); background-size: contain; pointer-events: none; }
.calc-btn { width: 100%; height: 46px; margin-top: 6px; background: var(--accent); color: #fff; border: none; border-radius: 9px; font-size: .9375rem; font-weight: 700; transition: background .15s, transform .1s; }
.calc-btn:hover { background: var(--accent-hover); }
.calc-btn:active { transform: scale(.98); }
.price-ticker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ticker-item { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: 7px 12px; font-size: .8125rem; transition: border-color .2s; cursor: pointer; }
.ticker-item:hover { border-color: rgba(var(--accent-rgb),.3); }
.ticker-item.loading { opacity: .5; }
.ticker-icon { font-size: 1rem; }
.ticker-name { color: var(--text-2); font-weight: 500; }
.ticker-price { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker-price.stale { color: var(--text-3); }
.asset-badge { display: flex; align-items: center; gap: 10px; background: rgba(var(--accent-rgb),.07); border: 1px solid rgba(var(--accent-rgb),.18); border-radius: 8px; padding: 10px 13px; margin-top: 6px; }
.asset-badge__icon { font-size: 1.5rem; }
.asset-badge__name { font-size: .9375rem; font-weight: 600; color: var(--text); }
.asset-badge__price { font-size: .75rem; color: var(--accent); margin-top: 1px; }
.asset-badge__stale { font-size: .7rem; color: var(--text-3); }
.result-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 280px; gap: 10px; color: var(--text-4); text-align: center; }
.result-placeholder__icon { font-size: 2.5rem; opacity: .4; }
.result-placeholder__text { font-size: .875rem; }
.result-hero { margin-bottom: 14px; }
.result-hero__label { font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.result-hero__value { font-size: 2.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.result-hero__value.profit { color: var(--accent); }
.result-hero__value.loss { color: #f87171; }
.result-hero__sub { font-size: .8125rem; color: var(--text-3); margin-top: 4px; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.stat-box { background: var(--bg-1); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 12px 14px; }
.stat-box__label { font-size: .625rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.stat-box__value { font-size: 1.125rem; font-weight: 700; color: var(--text); }
.stat-box__sub { font-size: .75rem; color: var(--text-3); margin-top: 1px; }
.stat-box.profit .stat-box__value { color: var(--accent); }
.stat-box.loss .stat-box__value { color: #f87171; }
.roi-bar-wrap { margin-bottom: 14px; }
.roi-bar-label { font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.roi-bar-track { height: 10px; background: rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; }
.roi-bar-fill { height: 100%; border-radius: 5px; transition: width .5s ease, background .3s; }
.roi-bar-labels { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--text-3); margin-top: 5px; }
.compare-side { background: var(--bg-1); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 14px; }
.compare-side__title { font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.compare-side--a .compare-side__title { color: #60a5fa; }
.compare-side--b .compare-side__title { color: #fbbf24; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.compare-card { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 16px; }
.compare-card.winner { border-color: rgba(var(--accent-rgb),.35); background: rgba(var(--accent-rgb),.04); }
.compare-card.loser { border-color: rgba(248,113,113,.2); }
.compare-card__badge { font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.compare-card.winner .compare-card__badge { color: var(--accent); }
.compare-card.loser .compare-card__badge { color: #f87171; }
.compare-card__asset { font-size: .9375rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.compare-card__roi { font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.compare-card.winner .compare-card__roi { color: var(--accent); }
.compare-card.loser .compare-card__roi { color: #f87171; }
.compare-card__detail { font-size: .75rem; color: var(--text-3); }
.dca-section { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.dca-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); cursor: pointer; user-select: none; }
.dca-header__title { font-size: .8125rem; font-weight: 700; color: var(--text); }
.dca-toggle { font-size: .75rem; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 4px; }
.dca-icon { transition: transform .2s; display: inline-block; }
.dca-icon.open { transform: rotate(180deg); }
.dca-body { display: none; overflow-x: auto; }
.dca-body.open { display: block; }
.dca-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.dca-table th { background: var(--bg-1); padding: 8px 14px; text-align: left; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid rgba(255,255,255,.05); }
.dca-table th.num, .dca-table td.num { text-align: right; }
.dca-table td { padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.04); color: var(--text-2); font-variant-numeric: tabular-nums; }
.dca-table tr:last-child td { border-bottom: none; }
.dca-table tr.total-row td { background: rgba(var(--accent-rgb),.05); color: var(--text); font-weight: 700; border-top: 1px solid rgba(var(--accent-rgb),.15); }
.dca-table .profit { color: var(--accent); font-weight: 600; }
.dca-table .loss { color: #f87171; }
.warn-box { background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.2); border-radius: 10px; padding: 12px 16px; font-size: .8125rem; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; display: flex; gap: 10px; }
.warn-box strong { color: #fbbf24; }
.info-box { background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: .8125rem; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.info-box strong { color: var(--text); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeUp .22s ease; }
@media (max-width: 680px) {
  .main-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .price-ticker { gap: 4px; }
}
@media (max-width: 480px) {
  .panel { padding: 16px; }
}
@keyframes sosPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
}
/* Monochrome icon set (Lucide, ISC licence) — replaces colour emoji */
@layer skin {
[class^="ei-"], [class*=" ei-"] { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em; flex-shrink: 0; font-style: normal;
  background-color: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
[class^="ei-dot-"], [class*=" ei-dot-"] { width: .62em; height: .62em; border-radius: 50%; vertical-align: .02em; -webkit-mask: none; mask: none; }
.ei-app-window { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <rect x=%222%22 y=%224%22 width=%2220%22 height=%2216%22 rx=%222%22 /> <path d=%22M10 4v4%22 /> <path d=%22M2 8h20%22 /> <path d=%22M6 4v4%22 /> </svg>"); }
.ei-apple { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M12 6.528V3a1 1 0 0 1 1-1h0%22 /> <path d=%22M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21%22 /> </svg>"); }
.ei-calendar { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M8 2v3%22 /> <path d=%22M16 2v3%22 /> <rect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%222%22 /> <path d=%22M3 9h18%22 /> </svg>"); }
.ei-chart-column { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M3 3v16a2 2 0 0 0 2 2h16%22 /> <path d=%22M18 17V9%22 /> <path d=%22M13 17V5%22 /> <path d=%22M8 17v-3%22 /> </svg>"); }
.ei-clipboard-list { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <rect width=%228%22 height=%224%22 x=%228%22 y=%222%22 rx=%221%22 ry=%221%22 /> <path d=%22M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2%22 /> <path d=%22M12 11h4%22 /> <path d=%22M12 16h4%22 /> <path d=%22M8 11h.01%22 /> <path d=%22M8 16h.01%22 /> </svg>"); }
.ei-diamond { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z%22 /> </svg>"); }
.ei-flag { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528%22 /> </svg>"); }
.ei-gamepad-2 { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <line x1=%226%22 x2=%2210%22 y1=%2211%22 y2=%2211%22 /> <line x1=%228%22 x2=%228%22 y1=%229%22 y2=%2213%22 /> <line x1=%2215%22 x2=%2215.01%22 y1=%2212%22 y2=%2212%22 /> <line x1=%2218%22 x2=%2218.01%22 y1=%2210%22 y2=%2210%22 /> <path d=%22M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z%22 /> </svg>"); }
.ei-medal { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15%22 /> <path d=%22M11 12 5.12 2.2%22 /> <path d=%22m13 12 5.88-9.8%22 /> <path d=%22M8 7h8%22 /> <circle cx=%2212%22 cy=%2217%22 r=%225%22 /> <path d=%22M12 18v-2h-.5%22 /> </svg>"); }
.ei-scale { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M12 3v18%22 /> <path d=%22m19 8 3 8a5 5 0 0 1-6 0zV7%22 /> <path d=%22M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1%22 /> <path d=%22m5 8 3 8a5 5 0 0 1-6 0zV7%22 /> <path d=%22M7 21h10%22 /> </svg>"); }
.ei-trending-up { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22M16 7h6v6%22 /> <path d=%22m22 7-8.5 8.5-5-5L2 17%22 /> </svg>"); }
.ei-triangle-alert { --i: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 > <path d=%22m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3%22 /> <path d=%22M12 9v4%22 /> <path d=%22M12 17h.01%22 /> </svg>"); }
}
