* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
}

.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.home-button {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2f2f2; /* grigio molto chiaro */
    color: #0a1f44;
    text-decoration: none;

    border-radius: 10px;
    font-size: 20px;

    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);

    transition: all 0.2s ease;
    z-index: 1000;
}

.home-button:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.home-button:active {
    transform: scale(0.95);
}

.logo-container {
    text-align: center;
    margin: 10px 0; /* riduce lo spazio sopra e sotto */
}

.key-status-container {
    text-align: center;
}

.key-status-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container img {
    max-width: 300px; /* regola a piacere */
    height: auto;
    display: inline-block;
}

#keyStatusLabel {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}

#keyStatusBtn {
    background: #e5e5e5;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover elegante */
#keyStatusBtn:hover {
    background: #e2e8f0;          /* sfumatura più scura */
    transform: translateY(-2px);  /* effetto sollevato */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#keyStatusBtn.loading-glow {
    box-shadow: 0 0 15px rgba(120, 120, 120, 0.6);
}

#keyStatusBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.attestation-buttons {
    display: none; /* nascosti di default */
    gap: 0.5rem;
}

.attestation-buttons button {
    padding: 4px 10px;
    font-size: 12px;
    color: #000;          /* testo nero */
    background: #e5e5e5;  /* grigio chiaro */
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover elegante WAA/WUA */
.attestation-buttons button:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* ================= WALLET CONTAINER ================= */

.wallet {
    width: 100%;
    border-radius: 20px;
    background-color: #f0f8ff;

    /* Trasparenza + glass effect */
    background: rgba(240, 248, 255, 0.08);
    backdrop-filter: blur(12px);

    /* Bordo leggero per definizione */
    border: 1px solid rgba(255,255,255,0.15);

    /* Padding e margini esistenti */
    padding: 2rem;
    margin-top: 2rem;

    /* Ombra morbida coerente con le card */
    box-shadow:
        0 15px 40px rgba(0,0,0,0.12),
        0 5px 15px rgba(0,0,0,0.08);

    /* Animazione smooth hover */
    transition:
        transform 0.35s cubic-bezier(.21,.98,.6,.99),
        box-shadow 0.35s cubic-bezier(.21,.98,.6,.99);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.wallet-header h2 {
    margin: 0;
}

.wallet-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wallet-actions {
    display: flex;
    gap: 8px;
}

.wallet-subtitle {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #666;
}

.wallet-counter {
    text-align: center;
    background: linear-gradient(135deg,#4e54c8,#8f94fb);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.wallet-counter span {
    font-size: 1.4rem;
    font-weight: bold;
    display: block;
}

.wallet-counter small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.wallet-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 1.5rem 0;
}

/* ================= FORM ================= */

.wallet-form {
    width: 100%;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.bottom-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

/* issuer occupa tutto lo spazio */
#issuer {
    flex: 1;
    min-width: 0;
}

/* Input e select */
.form-grid select,
.bottom-row input {
    width: 100%;
    padding: 12px;

    border: 1px solid #dcdcdc;
    border-radius: 10px;

    font-size: 14px;
    box-sizing: border-box;
}

.buttons {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 12px 18px;

    border: none;
    border-radius: 10px;

    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.plus-icon {
    font-size: 18px;
    line-height: 1;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

input[type="text"] {
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 200px;
}

/* wrapper per select */
.form-select-wrapper {
    position: relative;
    display: inline-block;
    width: 200px; /* uguale agli input */
}

.form-select-wrapper select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
    cursor: pointer;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select-wrapper::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555;
    font-size: 0.8rem;
}

.form-select-wrapper select:focus {
    outline: none;
    border-color: #4e54c8;
    box-shadow: 0 0 4px rgba(78, 84, 200, 0.4);
}

select,
button {
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button {
    background: #4e54c8;
    color: white;
    border: none;
    cursor: pointer;
}

button:disabled {
    background: #999;
    cursor: not-allowed;
}

.radio-group {
    display: flex;
    gap: 1rem;
    font-size: 1rem;
}

.radio-group input {
    transform: scale(1.4);
    margin-right: 6px;
}

#formErrorContainer {
    display: none;      /* nascosto di default */
    margin: 1em auto;   /* centrato orizzontalmente */
    max-width: 600px;   /* non troppo largo */
    padding: 1em;
    color: #8B0000;
    font-weight: normal;
    text-align: center; /* o left se vuoi */
    line-height: 1.4;   /* distanza tra le righe */
    word-wrap: break-word; /* evita overflow */
}

/* ================= ADD BUTTON ================= */

.add-btn {
    background: linear-gradient(135deg, #28a745, #34d058);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.add-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.add-btn:disabled {
    background: #9acfa6;
    cursor: not-allowed;
    box-shadow: none;
}

.plus-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ================= WALLET GRID ================= */

.wallet-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f4f6fa;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.wallet-btn:hover {
    background: #e2e8f0;
}

.wallet-grid {
    display: grid;

    grid-auto-flow: column;     /* 👈 ORIZZONTALE */
    grid-auto-columns: 270px;   /* 👈 larghezza card */

    gap: 1.6rem;

    justify-content: start;

    padding: 20px;
    border-radius: 18px;
    background: #eef2f7;

    /* 👇 effetto incassato */
    box-shadow:
        inset 6px 6px 12px rgba(0,0,0,0.08),
        inset -6px -6px 12px rgba(255,255,255,0.9);

    border: 1px solid rgba(0,0,0,0.05);

    overflow-x: auto;   /* 👈 scroll orizzontale */
    overflow-y: hidden;
}

.wallet-card {
    position: relative;
    overflow: hidden;

    cursor: pointer; /* 👈 mano */
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;

    height: 150px;
    width: 280px;
    padding: 16px;

    border-radius: 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    letter-spacing: 2px;

    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-size: 30px;

    color: rgba(255, 255, 255, 0.92);

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 🌑 WATERMARK */
.wallet-card::after {
    content: attr(data-type);
    position: absolute;
    inset: -40%;

    display: flex;
    flex-wrap: wrap;

    align-content: center;
    justify-content: center;

    gap: 26px;

    transform: rotate(0deg);

    font-size: 30px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.06);

    /* ✨ TRAMA RIPETUTA */
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.04) 0px,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 18px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 22px
        );

    mix-blend-mode: overlay;
    opacity: 0.85;

    pointer-events: none;
    z-index: 0;

    /* effetto “inciso nel vetro” */
    filter: blur(0.2px);
}

/* 🌟 LUCE DINAMICA (overlay) */
.wallet-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(255, 255, 255, 0.18),
        transparent 60%
    );

    opacity: 0;
    transition: opacity 0.2s ease;

    pointer-events: none;
    z-index: 1;
}

/* contenuto sopra tutto */
.wallet-card > * {
    position: relative;
    z-index: 2;
}

/* hover attiva luce */
.wallet-card:hover::before {
    opacity: 1;
}

.wallet-card:hover {
    transform: translateY(-8px) scale(1.01) rotateX(2deg) rotateY(-2deg);

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.55),
        0 10px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* click effect (press down) */
.wallet-card:active {
    transform: scale(0.98);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wallet-card medium {
    z-index: 1;
    margin: 0;
    padding: 0;
    font-size: 0.90rem;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: normal;
}

.wallet-card small {
    z-index: 1;
    margin: 0;
    padding: 0;
    font-size: 0.80rem;
    font-weight: bold;
    letter-spacing: 2px;
    white-space: normal;
}

/* 👇 Ombra testo per tutta la card */
.wallet-card,
.wallet-card small,
.wallet-card medium {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.6),
        0 2px 6px rgba(0,0,0,0.4);
}

.delete-btn {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}

/* ================= POPUP CREDENZIALE ================= */

/* Overlay popup */
.credential-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.credential-popup.fade-in {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Contenitore centrale popup */
.credential-popup .credential-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    width: 700px;
    max-width: 90%;
    height: 68vh;           /* altezza sempre relativa alla finestra */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    overflow: hidden;       /* evita doppio scroll */
    position: relative;
}

/* Header titolo + X */
.credential-header {
    display: flex;
    justify-content: space-between; /* 🔥 titolo a sinistra, bottone a destra */
    align-items: flex-start;        /* 🔥 allineato in alto col titolo */
    gap: 10px;
}

.credential-title-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1; /* 🔥 prende tutto lo spazio disponibile */
    min-width: 0;
}

.credential-title {
    font-weight: 700;
    font-size: 18px;
    color: #000000;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);

    /* 🔥 wrapping anche senza spazi */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    /* 🔥 permette al flex item di restringersi */
    min-width: 0;
}

.credential-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    font-style: italic;

    /* 🔥 fix wrapping */
    display: block;              /* importante */
    white-space: normal;         /* permette a capo */
    word-break: break-word;      /* spezza parole lunghe */
    overflow-wrap: anywhere;     /* fallback moderno */
    min-width: 0;
}

/* Pulsante chiusura */
#closeCredentialPopup {
    flex-shrink: 0; /* 🔥 evita che si schiacci */

    background: #555555;
    color: #ffffff;
    border: none;
    border-radius: 50%;

    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
}

#closeCredentialPopup:hover {
    background: #ef4444;
}

/* Tabs */
.jwt-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.jwt-tab {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #2c2c2c;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.jwt-tab.active {
    background: #e6ff00;
    color: #000;
}

#jwtContent {
    position: relative;
    flex: 1 1 auto;        /* occupa tutto lo spazio disponibile */
    display: flex;
    flex-direction: column;
    overflow: hidden;      /* il container principale non scrolla */
}

#jwtContentInner {
    position: relative;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;   /* importante: niente scroll orizzontale */
    background: #2d2d2d;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    color: #f8f8f2;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* Scrollbar elegante e senza margine nero */
#jwtContentInner::-webkit-scrollbar {
    width: 10px;
}

#jwtContentInner::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 5px;
}

#jwtContentInner::-webkit-scrollbar-thumb {
    background: #8f94fb;
    border-radius: 5px;
}

#jwtContentInner::-webkit-scrollbar-thumb:hover {
    background: #4e54c8;       /* effetto hover */
}

#jwtContentInner pre {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Sintassi JSON/JWT con colori contrastanti */
.json-key { color: #ff9e64; font-weight: bold; }      /* chiavi arancio chiaro */
.json-string { color: #9cdcfe; }                     /* stringhe azzurro chiaro */
.json-number { color: #b5cea8; }                     /* numeri verde chiaro */
.json-boolean { color: #c586c0; }                    /* boolean viola chiaro */
.json-null { color: #f44747; font-weight: bold; }    /* null rosso acceso */

/* Scrollbar elegante */
#jwtContentInner::-webkit-scrollbar {
    width: 8px;
}

#jwtContentInner::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

#jwtContentInner::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#jwtContentInner::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.content-toolbar {
    position: absolute;
    top: 40px;
    right: 10px;
    z-index: 10;

    display: flex;
    justify-content: flex-end;

    pointer-events: none;
}

.copy-tab-btn {
    pointer-events: auto;

    padding: 4px 10px;
    border: none;
    border-radius: 6px;

    cursor: pointer;

    background: #d9d9d9;
    color: #000;

    font-size: 12px;
    font-weight: 600;

    min-width: 100px;
    height: 26px;
    text-align: center;

    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.copy-tab-btn:hover {
    background: #efefef;
}

.copy-tab-btn:active {
    background: #c8c8c8;
}

/* ================= POPUP OVERLAY UNICO ================= */
#popupOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6); /* trasparenza uniforme */
    backdrop-filter: blur(2px);
    z-index: 1000;  /* inferiore ai popup */
    display: none;  /* hidden di default */
}

/* ================= POPUP PICCOLO (LOADING) ================= */
#loadingPopup {
    position: fixed;
    inset: 0;
    display: none;  /* hidden di default */
    justify-content: center;
    align-items: center;
    z-index: 1010;  /* sopra overlay */
    pointer-events: auto; /* permette interazione/focus */
}

#loadingPopup .popup-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 320px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top: 6px solid #4e54c8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Messaggio e barra progresso */
.popup-message {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.progress-bar {
    margin-top: 1rem;
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#4e54c8,#8f94fb);
    transition: width 0.3s ease;
}

/* ================= POPUP REALE GRANDE (AUTH) ================= */
#realAuthPopupContainer {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1020; /* sopra tutto */
}

/* ================= POPUP CREDENTIAL SELECT ================= */
/* Popup centrale “pop-out” senza overlay */
#credentialSelectPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border: 2px solid #007bff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35), 0 0 20px rgba(0,123,255,0.25);
    z-index: 1011;
    min-width: 350px;
    max-width: 600px;
    transition: transform 0.4s cubic-bezier(0.25, 1.25, 0.5, 1), opacity 0.4s ease-in-out;
    opacity: 0;
    flex-direction: column;
}

/* Animazione di entrata */
#credentialSelectPopup.fade-in {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Animazione di uscita */
#credentialSelectPopup.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Titolo popup in evidenza */
#credentialSelectPopup h2 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Pulsanti evidenziati */
.popup-buttons button {
    margin-top: 16px;
    margin-left: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: #007bff;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.popup-buttons button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
    background: #0056b3;
}

/* Checkbox list con evidenziazione */
#credentialSelectList label {
    font-size: 16px;
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    margin: 6px 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

#credentialSelectList label:hover {
    background: rgba(0,123,255,0.15);
    transform: translateX(4px);
}

/* Testo issuer coerente con wallet */
.issuer-text {
    text-align: center;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
}



@media (max-width: 800px) {

    .container {
        padding: 1rem;
    }

    .wallet {
        padding: 1rem;
    }

    /* 🔹 GRID diventa verticale invece che orizzontale */
    .wallet-grid {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        grid-template-columns: 1fr;
        overflow-x: hidden;
        gap: 1.1rem;
    }

    /* 🔹 Card più piccole e full width */
    .wallet-card {
        width: 100%;
        height: 140px;
        font-size: 22px;
    }

    /* 🔹 form più compatto */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    input[type="text"],
    select {
        width: 100%;
    }

    .buttons {
        justify-content: stretch;
    }

    .bottom-row {
        flex-direction: column;
    }

    .add-btn {
        width: 100%;
        justify-content: center;
    }

    /* 🔹 counter più compatto */
    .wallet-counter {
        min-width: auto;
        padding: 0.5rem 1rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .wallet-card:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

