:root {
    --color-text-primary: #444;
    --color-text-secondary: #111;
    --color-bg-primary: #ddd;
    --color-bg-secondary: #bbb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-text-primary: #bbb;
        --color-text-secondary: #eee;
        --color-bg-primary: #242424;
        --color-bg-secondary: #444;
    }
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: ui-sans-serif, system-ui, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    margin: 2em 1.25em;
    font-size: 16px;
    min-height: calc(100vh - 4em);
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
}

@media screen and (min-width: 1800px) {
    body,
    html {
        font-size: 20px;
    }
}

a {
    color: var(--color-text-secondary);
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    opacity: 0.85;
    transition: opacity 0.2s linear;
    text-decoration: underline;
}

a:visited {
    color: var(--color-text-secondary);
}

header,
main {
    padding: 0 2rem;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    display: flex;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 2.5em;
    margin: 0;
}

main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

main p {
    font-size: 1.125em;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

.flag-strip {
    height: .25rem;
    background-image: linear-gradient(to right, #EE2A35 0%, #EE2A35 25%, black 25%, black 50%, white 50%, white 75%, #009736 75%, #009736 100%);
    background-size: 100%;
    margin-bottom: 1rem;
}

.welcome-message {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-bg-secondary);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-text-secondary);
}

.links-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.link-card {
    flex: 1;
    min-width: 200px;
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--color-bg-secondary);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .link-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

.link-card a {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.link-card .description {
    margin-top: 0.5rem;
    font-size: 0.9em;
    color: var(--color-text-primary);
    opacity: 0.8;
}

footer {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-top: auto;
    border-top: 1px solid var(--color-bg-secondary);
    color: var(--color-text-primary);
    opacity: 0.7;
}

@media screen and (max-width: 480px) {
    .links-section {
        flex-direction: column;
    }

    .link-card {
        min-width: unset;
    }

    header,
    main {
        padding: 0 1rem;
    }

    .welcome-message {
        padding: 1.5rem;
    }
}
.donate-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}


.donate-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    box-sizing: border-box;
}

.donate-card h3 {
    margin: 0 0 0.6rem 0;
    color: var(--color-text-secondary);
    font-size: 1.12rem;
    text-align: center;
}

.donate-label { font-weight: 600; margin-bottom: .4rem; text-align: center; }
.small { font-size: .92rem; color: var(--color-text-primary); opacity: .9; text-align:center; }

.donate-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: var(--color-bg-primary);
    border-radius: 6px;
    padding: .55rem .6rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
    font-size: .95rem;
    word-break: break-all;
}

.btc-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .6rem;
}

/* Info column is centered */
.btc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* region centered */
    gap: .45rem;
    min-width: 0; /* allow ellipsis */
}

.qr {
    max-width: 160px;
    width: 24%;
    min-width: 120px;
    object-fit: contain;
}

/* responsive: stack on narrow screens */
@media (max-width: 560px) {
    .btc-row {
        flex-direction: column;
        align-items: stretch;
    }
    .qr {
        width: 100%;
        min-width: 0;
        max-width: 240px;
        margin: 0 auto;
    }
}

/* small helper to keep JazzCash card look similar */
.jc-wrapper { margin-top: .25rem; display:flex; flex-direction:column; gap:.5rem; align-items:center; }

