.knkt-btn {
    padding: 15px 30px;
    background: #D50DF0;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ── Wallet list popup ───────────────────────────────────────────────────── */
@keyframes popupEnter {
    from { opacity: 0; transform: scale(0.95) translateY(-8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.popup {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 30px;
    overflow: auto;
}

.popup-content {
    background-color: black;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 650px;
    color: white;
    overflow: scroll;
    font-size: 24px;
    text-align: center;
    animation: popupEnter 0.22s ease;
}

.popup-content p {
    font-size: 16px;
    text-align: center;
}

.wallet-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.wallet-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 14px 16px;
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.wallet-button:hover {
    background-color: #1c2f5e;
    border-color: #1F47AC;
    box-shadow: inset 3px 0 0 rgba(123, 163, 245, 0.7);
    color: #fff;
    text-decoration: none;
}

.wallet-button .fa-angle-right {
    transition: transform 0.18s ease;
    color: #666;
}

.wallet-button:hover .fa-angle-right {
    transform: translateX(4px);
    color: #7ba3f5;
}

.wallet-button img {
    width: 28px;
    height: 28px;
    margin-right: 0;
}

.wallet-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-section-header {
    grid-column: 1 / -1;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    padding: 14px 2px 6px;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 2px;
}

.wallet-section-header:first-child {
    padding-top: 4px;
}

@keyframes walletRowIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: black;
}

.left-sidee {
    display: flex;
    align-content: center;
    justify-content: flex-start;
    gap: 20px;
}

@media screen and (max-width: 800px) {
    .wallet-options {
        grid-template-columns: 1fr;
    }
}

/* ── Hero button group ───────────────────────────────────────────────────── */
.hero-btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.validate-btn {
    padding: 15px 30px;
    background: transparent;
    color: #D50DF0;
    border: 2px solid #D50DF0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.validate-btn:hover {
    background: #D50DF0;
    color: white;
}

/* ── Issue card grid ─────────────────────────────────────────────────────── */
.issue-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

@media screen and (max-width: 500px) {
    .issue-grid { grid-template-columns: repeat(2, 1fr); }
}

.issue-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 10px 14px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    cursor: pointer;
    gap: 10px;
    color: #e0e0e0;
    font-size: 12px;
    line-height: 1.4;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.issue-card:hover {
    background: #1c2f5e;
    border-color: #1F47AC;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31, 71, 172, 0.35);
    color: #fff;
}

.issue-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(31, 71, 172, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #7ba3f5;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.issue-card:hover .issue-card-icon {
    background: rgba(31, 71, 172, 0.3);
    color: #adc4ff;
}

/* ── Issue → Wallet crossfade transition ─────────────────────────────────── */
@keyframes contentFadeOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.95); }
}

.popup-content-fadeout {
    animation: contentFadeOut 0.22s ease forwards;
    pointer-events: none;
}

/* ── Connecting modal ────────────────────────────────────────────────────── */
@keyframes modalEnter {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

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

@keyframes popIn {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.connecting-modal-overlay {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
}

.connecting-modal-box {
    background: white;
    border-radius: 16px;
    padding: 36px 28px 28px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    animation: modalEnter 0.25s ease;
}

.connecting-wallet-img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 14px;
}

.connecting-modal-box h3 {
    color: #111;
    font-size: 17px;
    margin: 0 0 20px;
    font-weight: 600;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #1F47AC;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    margin: 0 auto 16px;
    transition: opacity 0.3s ease;
}

.spinner-fade {
    opacity: 0;
}

.error-icon {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 22px;
    font-weight: 700;
    line-height: 48px;
    margin: 0 auto 16px;
}

.error-icon.visible {
    animation: popIn 0.3s ease, shake 0.5s ease 0.3s;
}

.connecting-status {
    color: #555;
    font-size: 14px;
    margin: 0 0 4px;
    transition: opacity 0.25s ease;
}

.status-hidden {
    opacity: 0;
}

.connecting-substatus {
    color: #999;
    font-size: 12px;
    margin: 0 0 20px;
}

.connect-manual-btn {
    display: none;
    margin-top: 4px;
    padding: 13px 0;
    background: #1F47AC;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.connect-manual-btn:hover {
    background: #1a3d99;
}

.connect-manual-btn.slide-in {
    animation: slideUp 0.35s ease forwards;
}
