/* Bitcoin tax by country. Everything is scoped under .nn-tax. NN brand: bitcoin orange on near-black; tax is the one thing painted in the accent. */
.nn-tax { --nn-teal: #1abc9c; --nn-tax: #FB7185;
  --o: #F7931A; --o-soft: rgba(247,147,26,.14); --gold: #FFC94A; --ink: #F5F5F7; --mute: #9A9AA3; --dim: #6B6B75;
  --s0: #0A0A0C; --s1: #141418; --s2: #1C1C22; --line: rgba(255,255,255,.08); --kept: #E9E4DA;
  --r: 22px; --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -20px rgba(0,0,0,.8);
  max-width: 1080px; margin: 0 auto; padding: 18px 16px 48px; color: var(--ink); box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.nn-tax *, .nn-tax *::before, .nn-tax *::after { box-sizing: border-box; }

/* intro */
.nn-tax .intro { margin: 0 0 14px; }
.nn-tax .intro-country { display: flex; align-items: center; gap: 14px; }
.nn-tax .eyebrow { color: var(--o); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.nn-tax h1 { font-size: 30px; line-height: 1.08; letter-spacing: -.025em; margin: 0; color: #fff; font-weight: 800; }
.nn-tax .flag { display: block; flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.14); background: var(--s2); }
.nn-tax .flag-hero { width: 52px; height: 52px; box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.5); }
.nn-tax h2, .nn-tax h3 { margin: 0; }
.nn-tax .sec { color: var(--o); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 40px 0 6px; }
.nn-tax h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; color: #fff; font-weight: 750; margin: 0 0 18px; }
.nn-tax .summary { color: #C9C9D0; font-size: 16px; margin: 0; line-height: 1.55; }
.nn-tax .note { font-size: 13px; line-height: 18px; color: var(--mute); margin: 8px 0 0; }
.nn-tax a { color: var(--o); text-decoration: none; }
.nn-tax a:hover { text-decoration: underline; }

/* result card: the moment */
.nn-tax .result { position: relative; overflow: hidden; border-radius: var(--r); padding: 18px 16px 8px; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(120% 70% at 100% 0%, rgba(247,147,26,.16), transparent 60%), linear-gradient(180deg, #17171C, #101013); }
.nn-tax .scenario-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; font-size: 12px; font-weight: 600; color: #C9C9D0; font-variant-numeric: tabular-nums; }
.nn-tax .scenario-line span { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); white-space: nowrap; }
.nn-tax .punch { font-size: 21px; line-height: 1.25; font-weight: 750; letter-spacing: -.015em; color: #fff; animation: nn-tax-rise .45s cubic-bezier(.2,.8,.2,1) both; }
.nn-tax .punch > span { display: block; }
.nn-tax .punch em { font-style: normal; white-space: nowrap; color: var(--o); font-variant-numeric: tabular-nums; }
.nn-tax .punch b { color: var(--kept); font-weight: 800; }
.nn-tax .result > .note { margin: 6px 0 10px; font-size: 12px; }
.nn-tax .lbl { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 10px 0 2px; border-top: 1px solid var(--line); }
.nn-tax .row { padding: 8px 0 10px; }
.nn-tax .row + .row { border-top: 1px solid rgba(255,255,255,.05); }
.nn-tax .head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.nn-tax .head .name { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nn-tax .head strong { font-size: 22px; font-weight: 750; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.nn-tax .bar { height: 10px; margin: 8px 0 6px; background: rgba(255,255,255,.05); border-radius: 6px; overflow: hidden; }
.nn-tax .bar .end { display: flex; gap: 0; height: 100%; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.nn-tax .bar .kept { display: block; background: linear-gradient(90deg, #BDB6AA, var(--kept)); border-radius: 6px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.nn-tax .bar .tax { display: block; flex: none; background: var(--o); border-radius: 6px; box-shadow: 0 0 12px rgba(247,147,26,.55); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.nn-tax .bar .lost { display: block; flex: 1; min-width: 0; border-radius: 6px; background: repeating-linear-gradient(135deg, rgba(247,147,26,.35) 0 2px, transparent 2px 5px); }
.nn-tax .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 10px; font-size: 11px; color: var(--dim); }
.nn-tax .legend span { display: inline-flex; align-items: center; gap: 6px; }
.nn-tax .legend i { display: inline-block; width: 14px; height: 6px; border-radius: 3px; }
.nn-tax .legend .k-kept { background: var(--kept); } .nn-tax .legend .k-tax { background: var(--o); }
.nn-tax .legend .k-lost { background: repeating-linear-gradient(135deg, rgba(247,147,26,.6) 0 2px, transparent 2px 5px); }
.nn-tax .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--mute); font-variant-numeric: tabular-nums; }
.nn-tax .meta .tx b { color: var(--o); font-weight: 700; }
.nn-tax .meta .tx.zero b { color: var(--kept); }
.nn-tax .meta .share::before { content: '·'; margin-right: 8px; color: var(--dim); }
.nn-tax .pill { margin-left: auto; white-space: nowrap; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--mute); background: rgba(255,255,255,.06); }
.nn-tax .pill-1 { color: #1a1206; background: var(--gold); }

/* scenario form */
.nn-tax .controls { margin-top: 14px; }
.nn-tax .scenario { margin: 0; padding: 16px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.nn-tax .kicker { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.nn-tax .kicker span { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--dim); }
.nn-tax .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nn-tax .tile-amt, .nn-tax .tile-p { grid-column: 1 / -1; }
.nn-tax .tile-amt select, .nn-tax .tile-amt input { font-size: 26px; }
.nn-tax .tile { display: block; min-width: 0; padding: 10px 12px 8px; border-radius: 14px; background: var(--s2); border: 1px solid transparent; transition: border-color .2s, background .2s; cursor: text; }
.nn-tax .tile:focus-within { border-color: var(--o); background: #221D18; }
.nn-tax .tile .k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.nn-tax .tile .v { display: flex; align-items: center; gap: 2px; min-height: 36px; }
.nn-tax .tile select, .nn-tax .tile input { min-width: 0; min-height: 36px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #fff;
  font: inherit; font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; border-radius: 0; }
.nn-tax .tile select { cursor: pointer; padding-right: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F7931A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 2px center; }
.nn-tax .tile select option { color: #000; }
.nn-tax .tile select[name="cur"] { flex: none; width: 38px; color: var(--o); }
.nn-tax .tile input[name="amt"] { flex: 1; width: 100%; }
.nn-tax .tile-amt .v { position: relative; }
.nn-tax .tile-amt .fmt { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; }
.nn-tax .tile-amt input.has-fmt:not(:focus) { color: transparent; }
.nn-tax .tile-amt input:focus + .fmt { display: none; }
.nn-tax .tile input.yrs { width: 1.5em; flex: none; }
.nn-tax .tile .unit { font-size: 15px; font-weight: 600; color: var(--mute); margin-left: 4px; }
.nn-tax .tile select[name="p"] { width: 100%; font-size: 16px; }
.nn-tax .scenario button { display: block; width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 14px; background: var(--o); color: #140C02; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.nn-tax.js .scenario button { display: none; }
.nn-tax .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* compare chips */
.nn-tax .chips { margin: 22px 0 0; }
.nn-tax .chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nn-tax .chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--s1);
  color: #D6D6DC; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.nn-tax .chips button .flag { width: 22px; height: 22px; }
.nn-tax .chips button[aria-pressed="true"] { border-color: var(--o); background: var(--o-soft); color: #fff; }
.nn-tax .chips button:disabled { opacity: .35; cursor: not-allowed; }

/* states */
.nn-tax .err, .nn-tax .state { margin: 0 0 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(251,113,133,.5); background: rgba(251,113,133,.08); color: #fff; font-size: 15px; line-height: 1.45; }
.nn-tax .state-soft { border-color: var(--line); background: var(--s1); color: #C9C9D0; }
.nn-tax .intro + .summary { margin-bottom: 14px; }

/* about (country page) */
.nn-tax .about .summary { padding: 16px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); }

/* top 3: the podium */
.nn-tax .podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.nn-tax .place { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; cursor: pointer; }
.nn-tax .place .flag { width: 44px; height: 44px; margin-bottom: 8px; }
.nn-tax .place-1 .flag { width: 56px; height: 56px; box-shadow: 0 0 0 2px var(--gold), 0 10px 28px rgba(255,201,74,.25); }
.nn-tax .place .pname { font-size: 13px; font-weight: 600; line-height: 1.25; color: #D6D6DC; overflow-wrap: anywhere; }
.nn-tax .place strong { margin: 2px 0 10px; font-size: 16px; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nn-tax .place .step { display: flex; justify-content: center; align-items: flex-start; width: 100%; padding-top: 12px; border-radius: 14px 14px 4px 4px; border: 1px solid var(--line); border-bottom: 0;
  background: linear-gradient(180deg, #232329, #141418); }
.nn-tax .place [data-role="rank"] { font-size: 30px; font-weight: 800; color: var(--mute); font-variant-numeric: tabular-nums; }
.nn-tax .place-1 { order: 2; } .nn-tax .place-2 { order: 1; } .nn-tax .place-3 { order: 3; }
.nn-tax .place-1 .step { height: 104px; background: linear-gradient(180deg, rgba(255,201,74,.28), rgba(255,201,74,.04)); border-color: rgba(255,201,74,.35); }
.nn-tax .place-1 [data-role="rank"] { color: var(--gold); font-size: 38px; }
.nn-tax .place-2 .step { height: 76px; } .nn-tax .place-3 .step { height: 58px; }
.nn-tax .place-x { order: 4; grid-column: 1 / -1; flex-direction: row; gap: 12px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--line); text-align: left; }
.nn-tax .ranks { gap: 0; }
.nn-tax .ranks .place-x:last-child { border-bottom: 1px solid var(--line); }
.nn-tax .place-x .flag { width: 32px; height: 32px; margin: 0; }
.nn-tax .place-x .pname { flex: 1; font-size: 16px; color: #fff; }
.nn-tax .place-x strong { margin: 0; font-size: 18px; }
.nn-tax .place-x .step { order: -1; flex: none; width: 34px; height: 34px; padding: 0; align-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--s2); }
.nn-tax .place-x [data-role="rank"] { font-size: 14px; }
.nn-tax .place-x.r1 .step { background: var(--gold); border-color: var(--gold); }
.nn-tax .place-x.r1 [data-role="rank"] { color: #1a1206; font-size: 14px; }
.nn-tax .place:hover .pname { color: #fff; }
.nn-tax .top .note { margin-top: 12px; }

/* why + sources */
.nn-tax .why details { border-top: 1px solid var(--line); }
.nn-tax .why details:last-child { border-bottom: 1px solid var(--line); }
.nn-tax .why summary { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 14px 28px 14px 0; position: relative; cursor: pointer; list-style: none; font-size: 15px; line-height: 1.4; }
.nn-tax .why summary::-webkit-details-marker { display: none; }
.nn-tax .why summary::after { content: ''; position: absolute; right: 4px; top: 22px; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .2s; }
.nn-tax .why details[open] summary::after { transform: rotate(-135deg); top: 26px; }
.nn-tax .why summary .flag { margin-top: 1px; }
.nn-tax .why summary b { display: block; color: #fff; font-weight: 650; }
.nn-tax .why .rule { color: #C9C9D0; }
.nn-tax .why .body { padding: 0 0 14px 36px; }
.nn-tax .src { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--mute); }
.nn-tax .sources { padding-left: 18px; }

/* share, app, disclaimers */
.nn-tax .share-wrap { margin-top: 36px; }
.nn-tax .cta { margin: 24px 0 18px; padding: 22px 16px; border-radius: var(--r); text-align: center; border: 1px solid rgba(247,147,26,.25);
  background: radial-gradient(100% 120% at 50% 0%, rgba(247,147,26,.14), transparent 70%), var(--s1); }
.nn-tax .cta p { font-size: 17px; font-weight: 650; margin: 0 0 14px; color: #fff; }
.nn-tax .cta .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nn-tax .cta a { display: inline-block; line-height: 0; }
.nn-tax .cta img { height: 44px; width: auto; max-width: 100%; }
.nn-tax .disc { font-size: 12px; color: var(--dim); line-height: 1.5; margin: 8px 0; }

@keyframes nn-tax-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .nn-tax { padding-top: 40px; }
  .nn-tax h1 { font-size: 48px; }
  .nn-tax .flag-hero { width: 72px; height: 72px; }
  .nn-tax .intro { margin-bottom: 28px; }
  .nn-tax .stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .nn-tax .controls { margin-top: 0; position: sticky; top: 16px; }
  .nn-tax .result { padding: 28px 28px 14px; }
  .nn-tax .punch { font-size: 30px; }
  .nn-tax .head strong { font-size: 26px; }
  .nn-tax .bar { height: 12px; }
  .nn-tax .about, .nn-tax .top, .nn-tax .why { max-width: 720px; }
  .nn-tax .podium { gap: 16px; }
  .nn-tax .place .pname { font-size: 15px; }
  .nn-tax .place strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .nn-tax .bar .end, .nn-tax .bar .kept, .nn-tax .bar .tax { transition: none; } .nn-tax .punch { animation: none; } }
