/* =====================================================================
   RESET & BASE
   ===================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333333;
    line-height: 1.5;
    font-size: 16px;
    min-height: 100vh;
}

/* =====================================================================
   SKIP LINK
   ===================================================================== */
.skip-link {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border: 1.5px solid #555;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 13px;
    z-index: 9999;
    text-decoration: none;
    color: #333;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-link {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ing-logo {
    width: 68px;
    height: 26px;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    padding: 5px 12px;
    flex: 1;
    max-width: 460px;
    gap: 8px;
    background: #fff;
}

.search-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.search-input {
    border: none;
    outline: none;
    font-size: 14px;
    flex: 1;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #aaa;
}

.search-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.hdr-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    padding: 6px 4px;
    font-family: inherit;
    white-space: nowrap;
}

.chevron {
    width: 11px;
    height: 7px;
    flex-shrink: 0;
}

.login-btn {
    border: 2px solid #003082;
    color: #003082;
    background: #fff;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.login-btn:hover {
    background: #003082;
    color: #fff;
}

/* =====================================================================
   PAGE LAYOUT
   ===================================================================== */
.page-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* =====================================================================
   SIDEBAR
   ===================================================================== */
.sidebar {
    width: 216px;
    min-width: 216px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    padding: 8px 0;
    flex-shrink: 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.12s;
}

.nav-link:hover {
    background: #f5f5f5;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-arrow {
    width: 11px;
    height: 7px;
    margin-left: auto;
    flex-shrink: 0;
    color: #767676;
}

.arrow-up {
    /* already points up in SVG */
}

/* Subnav */
.subnav {
    list-style: none;
    background: #fff;
}

.subnav-link {
    display: block;
    padding: 8px 18px 8px 48px;
    text-decoration: none;
    color: #555;
    font-size: 13.5px;
    transition: background 0.12s;
    border-left: 3px solid transparent;
}

.subnav-link:hover {
    background: #f5f5f5;
}

.subnav-link.active {
    color: #FF6200;
    border-left-color: #FF6200;
    font-weight: 600;
    background: #fff9f5;
}

/* =====================================================================
   MAIN CONTENT
   ===================================================================== */
.main-content {
    flex: 1;
    padding: 24px 28px;
    overflow-x: hidden;
    min-width: 0;
}

/* =====================================================================
   CARD
   ===================================================================== */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* =====================================================================
   HERO CARD
   ===================================================================== */
.hero-card {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 32px 36px;
}

.hero-body {
    flex: 1;
    min-width: 0;
}

.hero-title {
    color: #FF6200;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
}

.hero-text {
    color: #444;
    font-size: 14.5px;
    line-height: 1.65;
}

.hero-features {
    display: flex;
    gap: 36px;
    flex-shrink: 0;
    align-items: flex-start;
    padding-top: 4px;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 90px;
}

.hero-feat-icon {
    width: 52px;
    height: 52px;
}

.hero-feat-icon svg {
    width: 100%;
    height: 100%;
}

.hero-feature p {
    font-size: 12.5px;
    color: #555;
    line-height: 1.4;
}

/* =====================================================================
   CALCULATOR CARD
   ===================================================================== */
.calculator-card {
    display: flex;
    padding: 0;
    overflow: hidden;
}

.calc-left {
    flex: 1;
    padding: 28px 32px;
    min-width: 0;
}

.calc-right {
    flex: 1;
    padding: 28px 32px;
    border-left: 1px solid #eeeeee;
    min-width: 0;
}

.calc-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.calc-subtitle {
    font-size: 13.5px;
    color: #666;
    margin-bottom: 22px;
}

/* =====================================================================
   FORM ELEMENTS
   ===================================================================== */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #222;
}

.form-hint {
    font-size: 12.5px;
    color: #767676;
    margin-bottom: 8px;
}

/* Amount input */
.amount-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 300px;
    transition: border-color 0.15s;
}

.amount-wrap:focus-within {
    border-color: #FF6200;
}

.amount-input {
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 15px;
    flex: 1;
    text-align: right;
    color: #333;
    font-family: inherit;
    -moz-appearance: textfield;
    min-width: 0;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.amount-suffix {
    padding: 9px 12px;
    background: #f5f5f5;
    border-left: 1.5px solid #ccc;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.field-error {
    color: #c0392b;
    font-size: 12.5px;
    margin-top: 5px;
}

.hidden {
    display: none !important;
}

/* =====================================================================
   HORIZON SLIDER
   ===================================================================== */
.horizon-val {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.slider-wrap {
    max-width: 300px;
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 3px;
    background: #e0e0e0; /* overridden by JS */
    outline: none;
    cursor: pointer;
    display: block;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #FF6200;
    cursor: pointer;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1.5px #FF6200;
    transition: box-shadow 0.15s;
}

.range-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.25);
}

.range-slider::-moz-range-thumb {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #FF6200;
    cursor: pointer;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1.5px #FF6200;
}

.slider-minmax {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: #767676;
    margin-top: 5px;
}

/* =====================================================================
   CATEGORY BUTTONS
   ===================================================================== */
.cat-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 360px;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    border: 1.5px solid #767676;
    border-radius: 50px;
    background: #fff;
    color: #333;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
    font-family: inherit;
    line-height: 1.4;
}

.cat-btn:hover:not(.active) {
    border-color: #FF6200;
    color: #FF6200;
}

.cat-btn.active {
    background: #FF6200;
    border-color: #FF6200;
    color: #fff;
}

/* Check icon — shown only when active */
.check-icon {
    width: 13px;
    height: 13px;
    display: none;
    flex-shrink: 0;
}

.cat-btn.active .check-icon {
    display: inline-block;
}

/* Bitcoin button */
.cat-btc {
    border-color: #F7931A;
    color: #F7931A;
    font-weight: 600;
}

.cat-btc:hover:not(.active) {
    background: #fff8ef;
    border-color: #F7931A;
    color: #e07800;
}

.cat-btc.active {
    background: #F7931A;
    border-color: #F7931A;
    color: #fff;
}

/* =====================================================================
   RECALCULATE BUTTON
   ===================================================================== */
.recalc-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 11px 20px;
    border: 2px solid #FF6200;
    border-radius: 4px;
    background: #fff;
    color: #FF6200;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: center;
    font-family: inherit;
    margin-top: 4px;
}

.recalc-btn:hover {
    background: #FF6200;
    color: #fff;
}

/* =====================================================================
   RESULT AREA
   ===================================================================== */
.result-heading {
    font-size: 17px;
    font-weight: 700;
    color: #FF6200;
    margin-bottom: 22px;
}

/* Result row: year | bar section | EUR */
.result-row {
    display: grid;
    grid-template-columns: 46px 1fr 125px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.result-year {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.bar-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bar-pct-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #333;
    text-align: right;
    padding-right: 2px;
    min-height: 16px;
}

.bar-track {
    height: 14px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

/* Colour variants */
.bar-orange   { background: #FF6200; }
.bar-gray     { background: #a0aec0; }
.bar-bitcoin  { background: #F7931A; }

.result-eur {
    font-size: 13.5px;
    font-weight: 700;
    color: #333;
    text-align: right;
    white-space: nowrap;
}

.result-eur.btc-color {
    color: #d97706;
}

/* =====================================================================
   INFO BOX
   ===================================================================== */
.info-box {
    display: flex;
    gap: 10px;
    background: #eef4ff;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 4px 0 14px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #333;
}

.info-box.btc-box {
    background: #fff8ee;
}

.info-icon {
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =====================================================================
   EXPLAIN (ZO IS DAT BEREKEND)
   ===================================================================== */
.explain-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-family: inherit;
    text-decoration: underline;
    text-decoration-color: #aaa;
    text-underline-offset: 2px;
}

.explain-btn:hover {
    color: #FF6200;
    text-decoration-color: #FF6200;
}

.explain-chevron {
    width: 11px;
    height: 7px;
    transition: transform 0.2s;
}

.explain-btn.open .explain-chevron {
    transform: rotate(180deg);
}

.explain-content {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 13px 15px;
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    margin-top: 8px;
}

.explain-content code {
    background: #eee;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.btc-disclaimer {
    font-size: 11.5px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.55;
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
}

/* Loading state */
.result-loading {
    color: #999;
    font-size: 14px;
    padding: 8px 0;
}
