* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    color: #f5f6ff;
    background:
        radial-gradient(
            1000px 500px at 80% -20%,
            rgba(0, 196, 255, 0.15),
            transparent 60%
        ),
        radial-gradient(
            900px 400px at -10% 0%,
            rgba(100, 136, 255, 0.18),
            transparent 60%
        ),
        #0f1424;
    padding: 20px;
}

.page {
    width: min(920px, 100%);
    margin: 0 auto;
}

.card {
    background: rgba(20, 31, 56, 0.92);
    border: 1px solid rgba(133, 154, 194, 0.25);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.site-page-title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(14px, 3vw, 24px);
    margin: 0 0 12px;
}

.site-page-title--compact {
    gap: clamp(10px, 2vw, 18px);
    margin-bottom: 10px;
}

.site-page-title .site-logo-wrap {
    margin: 0;
    text-align: left;
    flex: 0 0 auto;
}

.site-page-title h1 {
    margin: 0;
    flex: 1 1 12rem;
    min-width: 0;
    text-align: left;
}

.site-logo-wrap {
    margin: 0;
    text-align: left;
}

.site-logo-wrap--compact {
    margin: 0;
}

.site-logo {
    display: block;
    max-width: min(120px, 28vw);
    height: auto;
    margin: 0;
}

.site-logo--compact {
    max-width: min(72px, 22vw);
}

.hidden {
    display: none;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
}

h2 {
    margin: 24px 0 10px;
    font-size: 24px;
}

p {
    margin: 0;
    color: #cdd8ef;
    line-height: 1.6;
    font-size: 17px;
}

a {
    color: #9dd8ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #b8f5ff;
    background: rgba(6, 18, 36, 0.75);
    border: 1px solid rgba(133, 154, 194, 0.2);
    border-radius: 8px;
    padding: 5px 10px;
}

.wallet-grid {
    margin-top: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-tile {
    display: block;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(157, 216, 255, 0.35);
    background: linear-gradient(
        180deg,
        rgba(16, 44, 76, 0.9) 0%,
        rgba(16, 36, 63, 0.9) 100%
    );
    padding: 16px;
}

@media (max-width: 720px) {
    .wallet-grid {
        grid-template-columns: 1fr;
    }
}

.wallet-logo {
    width: 48px;
    height: 48px;
    display: block;
    margin-bottom: 10px;
}

.wallet-name {
    font-size: 20px;
    font-weight: 700;
    color: #e6f4ff;
}

.wallet-meta {
    margin-top: 4px;
    color: #b5d3ef;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.button {
    display: inline-block;
    border-radius: 10px;
    border: 1px solid #59d0ff;
    background: linear-gradient(180deg, #29b8ff 0%, #18a9f0 100%);
    color: #042033;
    font-weight: 700;
    padding: 11px 16px;
    cursor: pointer;
}

.button.secondary {
    border-color: #7592c4;
    background: transparent;
    color: #d2ddf2;
    position: relative;
}

.button:hover {
    text-decoration: none;
    filter: brightness(1.04);
}

.subtle {
    margin-top: 14px;
    font-size: 14px;
    color: #a9bad7;
}

.bip21-box {
    position: relative;
    width: 100%;
    margin-top: 12px;
    border: 1px solid rgba(133, 154, 194, 0.35);
    border-radius: 10px;
    padding: 12px;
    background: rgba(6, 18, 36, 0.75);
    color: #b8f5ff;
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    cursor: copy;
}

.bip21-box::after {
    content: 'Copied!';
    position: absolute;
    top: -12px;
    right: 10px;
    border: 1px solid rgba(157, 216, 255, 0.7);
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(16, 36, 63, 0.95);
    color: #b8f5ff;
    font-size: 12px;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 120ms ease,
        transform 120ms ease;
    pointer-events: none;
}

.bip21-box.copied::after {
    opacity: 1;
    transform: translateY(0);
}

#copy-bip21-btn::after {
    content: 'Copied!';
    position: absolute;
    top: -12px;
    right: 8px;
    border: 1px solid rgba(157, 216, 255, 0.7);
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(16, 36, 63, 0.95);
    color: #b8f5ff;
    font-size: 12px;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 120ms ease,
        transform 120ms ease;
    pointer-events: none;
}

#copy-bip21-btn.copied::after {
    opacity: 1;
    transform: translateY(0);
}

.bip21-box:hover {
    cursor: pointer;
    border-color: rgba(157, 216, 255, 0.7);
}
