html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #172033;
    background: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, p, ul {
    margin-top: 0;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}


.home-wrap {
    width: min(calc(100% - 48px), 1200px);
    margin: 0 auto;
}

.home-section {
    padding: 88px 0;
}

.home-section-kicker,
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #213f7d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-eyebrow-rule,
.home-section-kicker::before {
    content: "";
    width: 52px;
    height: 1px;
    background: currentColor;
    opacity: 0.65;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    box-shadow: none;
}

.home-btn:hover {
    transform: translateY(-1px);
}

.home-btn:focus,
.home-btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.home-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0354f7 0%, #213f7d 100%);
    box-shadow: none;
}

@media (max-width: 760px) {
    .home-wrap {
        width: min(calc(100% - 32px), 1200px);
    }

    .home-section {
        padding: 68px 0;
    }

    .home-btn {
        width: 100%;
    }
}

/* ========================================================
   Wallet Card Preview — shared across CardEdit, CardSuccess,
   and CardCheckout components.
   ======================================================== */

.wallet-preview {
    background-color: var(--card-primary, #ffffff);
    border-radius: 24px;
    border: 1px solid #e6e8ef;
    padding: 2.75rem 2.5rem;
    color: var(--card-secondary, #444);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.wallet-preview-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.75rem;
}

.wallet-logo {
    width: 84px;
    height: 84px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wallet-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.wallet-logo-placeholder {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--card-secondary, #1f2a44);
}

.wallet-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.wallet-identity {
    flex: 1;
    margin-top:40px
}

.wallet-title {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--card-secondary, #1f2a44);
}

.wallet-name {
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 0.35rem;
}

.wallet-company {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--card-secondary, #1f2a44);
    margin-top: 0.35rem;
}

.wallet-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #f2f4f8;
    border: 1px solid #e6e8ef;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-avatar-placeholder {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--card-secondary, #1f2a44);
}

.wallet-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "phone email"
        "website website";
    gap: 1.35rem 2.25rem;
    margin-top: 2rem;
}

.wallet-detail {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wallet-detail-label {
    font-size: 1.05rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--card-secondary, #1f2a44);
}

.wallet-detail-value {
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--card-secondary, #1f2a44);
    word-break: break-word;
}

.wallet-detail-full {
    grid-column: 1 / -1;
}

.wallet-detail-phone {
    grid-area: phone;
}

.wallet-detail-email {
    grid-area: email;
}

.wallet-detail-website {
    grid-area: website;
}

.wallet-qr {
    margin-top: 2.75rem;
    text-align: center;
}

.wallet-qr-image {
    width: 170px;
    height: 170px;
    margin: 0 auto 0.9rem;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e6e8ef;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-qr-image svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wallet-qr-caption {
    font-size: 0.95rem;
    color: var(--card-secondary, #1f2a44);
}

@media (max-width: 576px) {
    .wallet-preview {
        padding: 2.25rem 1.75rem;
    }

    .wallet-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet-avatar {
        align-self: flex-end;
    }

    .wallet-details {
        grid-template-columns: 1fr;
        grid-template-areas:
            "phone"
            "email"
            "website";
    }

    .wallet-detail-full {
        grid-column: auto;
    }

    .wallet-name {
        font-size: 1.7rem;
    }

    .wallet-qr-image {
        width: 150px;
        height: 150px;
    }
}