/* Stijl voor de aanmeld-, inlog- en wachtwoord-vergeten-pagina's en voor de
   ingelogde weergave van app.html. Bouwt op de tokens uit landing.css. */

.auth {
    max-width: 26rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.auth h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    color: var(--primary);
    margin: 0 0 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* display hierboven overschrijft anders de standaard [hidden]-regel van de
   browser (zelfde probleem als .missing-list-button): zonder deze regel
   blijft bijvoorbeeld het MFA-codeveld altijd zichtbaar, ook zonder dat
   Cognito om een code vraagt. */
.auth-form[hidden] {
    display: none;
}

.auth-form + .auth-form {
    margin-top: 0;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--ink);
}

.auth-form input {
    font: inherit;
    font-weight: 400;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--neutral);
    color: var(--ink);
}

.auth-form input:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 1px;
    border-color: var(--secondary);
}

.auth-form button {
    font: inherit;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--neutral);
    cursor: pointer;
}

.auth-form button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.auth-form button[type="button"] {
    background: transparent;
    color: var(--primary);
}

.auth-form button[type="button"]:hover {
    background: var(--tint);
}

.auth-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.auth-note {
    color: var(--ink-soft);
    margin: 0;
}

.auth-error {
    margin: 0;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--error);
    border-radius: var(--radius);
    background: #fff4f1;
    color: #a5301b;
}

.auth-hints {
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 400;
    color: var(--ink-soft);
}

.auth-hints li {
    padding-left: 1.4rem;
    position: relative;
}

.auth-hints li::before {
    content: "\00d7";
    position: absolute;
    left: 0.2rem;
    color: var(--ink-soft);
}

.auth-hints li.ok {
    color: var(--primary);
}

.auth-hints li.ok::before {
    content: "\2713";
    color: var(--primary);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary);
}

/* app.html ingelogd */

.app-guard {
    padding: 3rem 1.25rem;
    color: var(--ink-soft);
    text-align: center;
}

.app-account {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.app-account button {
    font: inherit;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
}

.app-account button:hover {
    background: var(--tint);
}

.security {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    max-width: 32rem;
}

.security h2 {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
}

.security button {
    font: inherit;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--neutral);
    cursor: pointer;
}

.security button:disabled {
    opacity: 0.6;
    cursor: default;
}

.totp-setup {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.totp-setup code {
    display: block;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--tint);
    word-break: break-all;
    font-size: 0.9rem;
}

.totp-setup form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.totp-setup input {
    font: inherit;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ---------- Ingelogde omgeving: shell met uitschuifbaar menu ---------- */

.app-shell-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary);
}

.app-shell-brand {
    flex: none;
    display: inline-flex;
    line-height: 0;
}

.app-shell-brand img {
    border-radius: 8px;
    background: var(--neutral);
}

.app-shell-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--neutral);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-menu-toggle {
    flex: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: transparent;
    color: var(--neutral);
    cursor: pointer;
}

.app-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.app-menu-toggle span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.app-menu-toggle span::before,
.app-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.app-menu-toggle span::before { top: -6px; }
.app-menu-toggle span::after { top: 6px; }

.app-shell {
    position: relative;
}

.app-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(78vw, 280px);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    background: var(--neutral);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 30px rgba(30, 42, 53, 0.15);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0.2s;
    z-index: 20;
}

body.app-menu-open .app-menu {
    transform: translateX(0);
    visibility: visible;
}

.app-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 42, 53, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 19;
}

body.app-menu-open .app-menu-backdrop {
    opacity: 1;
    visibility: visible;
}

.app-menu-item {
    display: block;
    width: 100%;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.app-menu-item:hover {
    background: var(--tint);
}

.app-menu-item[aria-current="page"] {
    background: var(--tint);
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--primary);
}

.app-menu-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0.5rem 1.25rem;
}

.app-content {
    max-width: min(64rem, 100%);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

.app-panel {
    max-width: 44rem;
    margin-inline: auto;
}

/* De landenlijst mag de volle breedte van .app-content gebruiken. */
.app-panel--wide {
    max-width: none;
}

/* Snelkoppeling: kies een land en een muntsoort en spring er direct
   naartoe (US-V32). Staat bovenaan de geopende verzameling, op elk niveau. */
.coin-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--tint);
}

.coin-jump-title {
    flex-basis: 100%;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
}

.coin-jump-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1 1 10rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

.coin-jump-field select {
    font: inherit;
    font-weight: 400;
    padding: 0.55rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--neutral);
    color: var(--ink);
}

.coin-jump-field select:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 1px;
    border-color: var(--secondary);
}

.coin-jump button {
    font: inherit;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--neutral);
    cursor: pointer;
}

.coin-jump button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.coin-jump button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Het Verzamelingen-paneel: een smalle, gecentreerde kolom. */
.app-panel--narrow {
    max-width: 28rem;
}

.app-panel h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    color: var(--primary);
    margin: 0 0 1rem;
}

/* Verzamelingen-paneel (US-V10 / US-V11 / US-V12) */
.collections-heading {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--primary);
    text-align: center;
    margin: 0 0 0.75rem;
}

.collection-list + .collections-heading {
    margin-top: 2rem;
}

/* Kop van de eigen lijst plus het +-icoon om een verzameling toe te voegen
   (US-V11). Grid met een lege kolom even breed als de knop, zodat de kop
   echt gecentreerd blijft (net als elke andere .collections-heading op de
   pagina) in plaats van scheef te trekken richting de knop. */
.collections-list-header {
    display: grid;
    grid-template-columns: 2.25rem 1fr 2.25rem;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
}

.collections-list-header .collections-heading {
    grid-column: 2;
    margin: 0;
}

.collections-list-header .collection-add-button {
    grid-column: 3;
}

.collection-add-button {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--primary);
    border-radius: 50%;
    background: var(--neutral);
    color: var(--primary);
    cursor: pointer;
}

.collection-add-button svg {
    width: 1.1rem;
    height: 1.1rem;
}

.collection-add-button:hover {
    background: var(--tint);
}

/* Spinner bij "Bezig met laden." (naast de tekst, voor screenreaders blijft
   de tekst het enige dat voorgelezen wordt). */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    vertical-align: -0.15em;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ech-spin 0.8s linear infinite;
}

@keyframes ech-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner { animation: none; }
}

/* Gedeelde popup-stijl (<dialog> regelt focus-trapping en Escape zelf):
   de toevoeg-popup (US-V11) en de "wie mist deze munt"-popup (US-V44). */
.collection-dialog,
.coin-friend-dialog {
    border: none;
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 24rem;
    width: calc(100% - 2rem);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.collection-dialog::backdrop,
.coin-friend-dialog::backdrop {
    background: rgba(20, 30, 40, 0.5);
}

.collection-dialog .collections-heading,
.coin-friend-dialog .collections-heading {
    margin-top: 0;
}

.coin-friend-dialog .collection-list:empty {
    display: none;
}

/* Lucht tussen de eigen lijst en de verzamelingen van vrienden (US-V43):
   zonder dit plakt "Verzamelingen van vrienden" te dicht tegen de eigen
   lijst aan, want de popup (altijd in de DOM, ook dicht) telt niet mee als
   zichtbare ruimte. */
[data-friends-collections-section] {
    margin-top: 2rem;
}

/* Vergelijken (US-V51): lucht boven de keuzelijsten, en tussen de twee
   resultaatlijsten ("Alleen in A" / "Alleen in B"). */
[data-compare-form] {
    margin-top: 1.5rem;
}

[data-compare-results] {
    margin-top: 1.5rem;
}

[data-compare-side-b] {
    margin-top: 2rem;
}

.collection-form {
    margin-bottom: 0;
}

.collection-form-actions {
    display: flex;
    gap: 0.5rem;
}

/* Per-vriend kop boven zijn verzamelingen, onder de eigen lijst (US-V43). */
.collection-friend-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin: 1.25rem 0 0.5rem;
}

[data-friends-collections-list] .collection-list {
    margin-bottom: 0.75rem;
}

.collection-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.collection-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--neutral);
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

/* Hover: de hele rij licht op (alleen als je boven de link zweeft, niet
   boven de verwijderknop). Klik: de rij "zakt in". */
.collection-row:has(.collection-row-link:hover) {
    border-color: var(--primary);
    background: var(--tint);
    box-shadow: 0 1px 6px rgba(34, 85, 136, 0.18);
}

.collection-row:has(.collection-row-link:active) {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.collection-row:has(.collection-row-link:active) .collection-row-name,
.collection-row:has(.collection-row-link:active) .collection-row-meta {
    color: var(--neutral);
}

.collection-row-link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.collection-row-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 3px;
}

.collection-row-name {
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-row-meta {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.collection-delete {
    flex: none;
    font: inherit;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--error);
    border-radius: var(--radius);
    background: transparent;
    color: var(--error);
    cursor: pointer;
}

.collection-delete:hover {
    background: #fff4f1;
}

.collection-delete:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Vrienden-paneel (US-V40 t/m US-V43): dezelfde rijstijl als verzamelingen.
   friend-collections klapt open onder de rij (flex-wrap + volle breedte),
   in plaats van naast de naam en de verwijderknop. */
.friend-row {
    flex-wrap: wrap;
}

.friend-collections {
    flex: 1 0 100%;
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.friend-code-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--neutral);
    text-align: center;
}

.friend-code-box-label {
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.friend-code-value {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
}

.friend-code-qr {
    display: flex;
    justify-content: center;
}

.friend-viewing-banner {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

/* Geopende verzameling: de landenlijst (US-V13) */
.collection-back {
    margin: 0 0 1rem;
}

.collection-back a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.collection-back a:hover {
    text-decoration: underline;
}

.collection-back button {
    font: inherit;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.collection-back button:hover {
    text-decoration: underline;
}

/* "Downloaden als pdf" (US-V50): boven de landenlijst, bouwt een echte pdf
   met jsPDF (zie buildMissingListPdf in auth-forms.js) en downloadt die
   meteen, geen printvenster. */
.missing-list-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font: inherit;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--neutral);
    color: var(--primary);
    cursor: pointer;
}

.missing-list-button svg {
    width: 18px;
    height: 18px;
}

.missing-list-button:hover {
    background: var(--tint);
}

.missing-list-button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* display hierboven overschrijft anders de standaard [hidden]-regel van de
   browser (gelijke specificiteit, maar deze regel staat later), waardoor
   missingListBtn.hidden = true de knop niet zou verbergen (US-V43: geen
   knop bij de verzameling van een vriend). */
.missing-list-button[hidden] {
    display: none;
}

.country-row:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.country-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.6rem;
}

.country-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--neutral);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.country-row:hover {
    border-color: var(--primary);
    background: var(--tint);
    box-shadow: 0 1px 6px rgba(34, 85, 136, 0.18);
}

.country-row:active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.country-row:active .country-name {
    color: var(--neutral);
}

.country-row:active .country-code {
    color: var(--tint);
}

.country-flag {
    flex: none;
    width: 44px;
    height: 26px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 3px;
}

.country-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.country-name {
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.country-meta {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.country-row:active .country-meta {
    color: var(--tint);
}

/* Muntoverzicht van een land (US-V21 / US-V22) */
.coin-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.6rem;
}

.coin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--neutral);
    text-align: center;
}

.coin-card--link {
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.coin-card--link:hover {
    border-color: var(--primary);
    background: var(--tint);
    box-shadow: 0 1px 6px rgba(34, 85, 136, 0.18);
}

.coin-card--link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.coin-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.coin-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.coin-name {
    font-weight: 600;
    color: var(--ink);
}

.coin-year {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.coin-meta {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* Muntsoort-detail: alle types per jaar met aanvinken (US-V23 t/m US-V27) */
.coin-rows {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.coin-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--neutral);
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.coin-row:hover {
    border-color: var(--primary);
    background: var(--tint);
}

.coin-row:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.coin-row--checked {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--neutral);
}

.coin-row--checked .coin-row-labels {
    color: rgba(255, 255, 255, 0.85);
}

/* Variatie-rij: valt op zodat de gebruiker weet dat hij moet kiezen. */
.coin-row--variation {
    border-left: 4px solid var(--primary);
}

.coin-row-check {
    flex: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--neutral);
}

.coin-row:hover .coin-row-check {
    border-color: var(--primary);
}

.coin-row--checked .coin-row-check {
    border-color: var(--neutral);
    background: var(--neutral);
    position: relative;
}

.coin-row--checked .coin-row-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.coin-row-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.coin-row-year {
    font-weight: 600;
}

.coin-row-labels {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.coin-row-circ {
    flex: none;
    display: inline-flex;
    color: currentColor;
}

.circ-icon {
    width: 18px;
    height: 18px;
}

/* US-V44: icoon of minstens één vriend een aangevinkte munt nog mist. Een
   echte <button>, dus eigen focus-stijl en geen click die ook de munt
   aan-/uitvinkt (zie de click-afhandeling in auth-forms.js). */
.coin-friend-status {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin-left: 0.3rem;
    border: none;
    background: none;
    cursor: pointer;
}

.coin-friend-status svg {
    width: 18px;
    height: 18px;
}

.coin-friend-status:focus-visible {
    outline: 2px solid var(--neutral);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Dit icoon staat alleen op een aangevinkte munt (zie friendStatusHtml in
   auth-forms.js), en die rij heeft dan al een blauwe achtergrond met witte
   tekst (.coin-row--checked). Daarom hier wit i.p.v. --primary/--ink-soft:
   anders valt het icoon niet af tegen die blauwe achtergrond. */
.coin-friend-status--missing {
    color: var(--neutral);
}

.coin-friend-status--complete {
    color: rgba(255, 255, 255, 0.65);
}

.coin-variation-notice {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    background: var(--tint);
    border-left: 4px solid var(--primary);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.coin-legend {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.coin-legend h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--primary);
}

.coin-legend ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.coin-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* Taalkeuze op een licht paneel (instellingen.html, US-V09). De basisstijl
   in landing.css is bedoeld voor de donkere subpage-header; hier zetten we de
   knoppen om naar het lichte paneel. */
.lang-switch--panel {
    position: static;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lang-switch--panel button {
    background: var(--neutral);
    color: var(--ink);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.lang-switch--panel button:hover {
    background: var(--tint);
}

.lang-switch--panel button[aria-pressed="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--neutral);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .app-menu,
    .app-menu-backdrop,
    .collection-row,
    .country-row,
    .coin-card--link,
    .coin-row {
        transition: none;
    }
}

/* Mislijst als pdf (US-V50): de pdf zelf wordt met jsPDF getekend
   (zie buildMissingListPdf in auth-forms.js), geen print-stylesheet meer
   nodig voor een los HTML-onderdeel. */
