@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #314fd8;
    --primary-dark: #243ca7;
    --primary-light: #e9eeff;
    --bg: #f7f8fa;
    --card-bg: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-primary);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

code {
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    background: #eef1f4;
}

h1, h2, h3, p {
    margin: 0;
}

h1:focus {
    outline: none;
}

.shell {
    min-height: 100vh;
}

.accent-bar {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #5a72e4, var(--primary));
}

.shell-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.1rem 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-logo {
    height: 34px;
    width: auto;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-copy strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.brand-copy span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.shell-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
}

.eyebrow,
.mini-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 1rem;
}

.hero-copy,
.hero-card,
.info-card,
.payment-card,
.qr-section,
.cta-section,
.payment-note,
.pay-state-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 2rem;
}

.hero-copy h1 {
    margin-top: 1rem;
    font-size: clamp(2.2rem, 4vw, 3.9rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    max-width: 11ch;
}

.hero-text {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 55ch;
}

.lookup-form {
    margin-top: 1.6rem;
}

.field-label {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.lookup-row {
    display: flex;
    gap: 0.75rem;
}

.lookup-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.05rem;
    font: inherit;
    color: var(--text-primary);
    background: #fff;
}

.lookup-input:focus {
    outline: 2px solid rgba(49, 79, 216, 0.22);
    outline-offset: 2px;
}

.cta-button,
.cta-button-link,
.open-app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(49, 79, 216, 0.28);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.secondary-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.hero-card {
    padding: 1.4rem;
    background: linear-gradient(160deg, #314fd8 0%, #5a72e4 100%);
    color: #fff;
}

.hero-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 100%;
}

.hero-card-glow {
    display: none;
}

.mini-amount strong {
    display: block;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mini-amount span {
    display: inline-block;
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.84);
}

.mini-list {
    display: grid;
    gap: 0.8rem;
    margin: auto 0 0;
}

.mini-list div {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
}

.mini-list dt {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.84;
}

.mini-list dd {
    margin: 0;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-card {
    padding: 1.25rem;
}

.info-index {
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.info-card h2 {
    margin-top: 0.55rem;
    font-size: 1.15rem;
}

.info-card p {
    margin-top: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.pay-shell {
    display: flex;
    justify-content: center;
}

.entry-shell {
    display: flex;
    justify-content: center;
}

.entry-card {
    width: 100%;
    max-width: 44rem;
    padding: 1.6rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.entry-card h1 {
    margin-top: 0.85rem;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.entry-card p {
    margin-top: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.payment-page {
    width: 100%;
    max-width: 440px;
}

.logo-area {
    margin-bottom: 1.25rem;
    text-align: center;
}

.snappi-logo {
    height: 42px;
    width: auto;
}

.payment-stack {
    display: grid;
    gap: 1rem;
}

.payment-card {
    overflow: hidden;
}

.payment-card-snappi .card-header {
    padding: 1.45rem 1.5rem 1.2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), #5a72e4);
}

.card-header-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.84);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.45rem;
}

.amount-display {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.05em;
}

.amount-display .currency {
    font-size: 1.35rem;
    font-weight: 600;
    margin-left: 0.25rem;
    opacity: 0.9;
}

.card-body {
    padding: 1rem 1.5rem 1.2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.detail-value {
    max-width: 62%;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
}

.detail-value-full {
    font-size: 0.82rem;
}

.detail-row-wide {
    align-items: start;
}

.qr-section {
    padding: 1.3rem 1.5rem;
    text-align: center;
}

.payment-option-state {
    padding: 1.3rem 1.5rem;
    text-align: center;
}

.payment-option-state p {
    margin-top: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.qr-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.qr-subtitle {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.qr-code-host {
    display: flex;
    justify-content: center;
    margin: 1rem 0 0.75rem;
}

.qr-code-host canvas,
.qr-code-host img {
    border-radius: 10px;
}

.qr-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cta-section {
    padding: 1.2rem 1.5rem;
    text-align: center;
}

.app-download-section {
    padding: 1.2rem 1.5rem;
    text-align: center;
}

.app-download-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.app-download-text {
    margin-top: 0.45rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.store-button-row {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.25rem 0;
    cursor: pointer;
    text-decoration: none;
}

.store-badge {
    display: block;
    width: auto;
    max-width: 100%;
    height: 3.25rem;
}

.store-badge-apple {
    height: 3rem;
}

.cta-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-text strong {
    color: var(--text-primary);
}

.open-app-btn {
    width: 100%;
}

.payment-note {
    padding: 1rem 1.2rem;
}

.payment-note-soft {
    background: var(--primary-light);
    color: #243ca7;
    border-color: rgba(49, 79, 216, 0.12);
}

.payment-note strong {
    display: block;
    margin-bottom: 0.35rem;
}

.payment-note p {
    line-height: 1.6;
}

.pay-state-card {
    width: 100%;
    max-width: 42rem;
    padding: 1.6rem;
}

.pay-state-card h1 {
    margin-top: 1rem;
    font-size: 2rem;
}

.pay-state-card p {
    margin-top: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

#blazor-error-ui {
    background: #1a1a2e;
    color: #fff;
    bottom: 0;
    display: none;
    left: 0;
    padding: 0.8rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    color: #9fb0ff;
    margin-left: 1rem;
}

@media (max-width: 920px) {
    .hero,
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .shell-header {
        padding-top: 0.9rem;
    }

    .hero-copy,
    .hero-card,
    .info-card,
    .card-body,
    .payment-card-snappi .card-header,
    .payment-option-state,
    .qr-section,
    .cta-section,
    .app-download-section,
    .payment-note,
    .pay-state-card,
    .entry-card {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

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

    .cta-button,
    .cta-button-link {
        width: 100%;
    }

    .detail-row {
        align-items: start;
    }
}
