:root {
    --bg: #f5efe6;
    --card: #fffdf9;
    --text: #2b2118;
    --muted: #756a5f;
    --accent: #6b4a22;

    --vcb-green: #0b7a4b;
    --vcb-green-dark: #075c38;
    --vcb-gold: #b58a45;
    --vcb-cream: #f5efe6;

    --button-grad: linear-gradient(90deg, #0f8b4c 0%, #0a6a3d 100%);
    --button-grad-hover: linear-gradient(90deg, #12a35b 0%, #0b7d49 100%);

    --radius-xl: 28px;
    --radius-lg: 20px;

    --mobile-width: 390px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 16px;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(181, 138, 69, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(11, 122, 75, 0.12), transparent 28%),
        linear-gradient(180deg, #faf7f1 0%, #f5efe6 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(100%, var(--mobile-width));
    margin: 0 auto;
}

.main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.profile-panel {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 26px 16px 18px;
    border: 1px solid rgba(107, 74, 34, 0.08);
    box-shadow: 0 20px 50px rgba(43, 33, 24, 0.08);
    text-align: center;
    position: relative;
}

.avatar-wrap {
    position: relative;
    isolation: isolate;
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    padding: 4px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #0f8b4c,
        #b58a45,
        #0f8b4c
    );
    animation: spinGradient 3s linear infinite;
    z-index: 0;
}

.avatar-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    background: #fff;
}

.profile-meta {
    width: 100%;
}

.profile-name {
    margin: 6px 0 8px;
    font-size: 30px;
    line-height: 1.15;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-title {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #0f8b4c, #b58a45);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.profile-bio {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    padding: 0 8px;
}

.divider {
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, transparent, rgba(181, 138, 69, 0.35), transparent);
}

.button-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.cta-button {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--button-grad);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(11, 122, 75, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cta-button:hover {
    background: var(--button-grad-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(11, 122, 75, 0.26);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-text {
    font-size: clamp(13px, 4.3vw, 18px);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-arrow {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
}

.footer-note code {
    background: #f3eadc;
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--accent);
}

@media (min-width: 768px) {
    .page-shell {
        width: min(100%, var(--mobile-width));
    }

    .profile-panel {
        padding: 26px 16px 18px;
    }

    .profile-name {
        font-size: 25px;
    }

    .profile-bio {
        font-size: 16px;
    }

    .cta-button {
        min-height: 58px;
        padding: 16px 18px;
    }

    .cta-text {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .page-shell {
        width: min(100%, var(--mobile-width));
    }

    .profile-panel {
        padding: 26px 16px 18px;
    }

    .button-list {
        width: 100%;
    }

    .cta-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    body {
        padding: 12px;
    }

    .page-shell {
        width: 100%;
    }

    .profile-panel {
        padding: 22px 14px 16px;
    }

    .profile-name {
        font-size: 25px;
    }

    .profile-bio {
        font-size: 14.5px;
    }

    .cta-button {
        min-height: 54px;
        padding: 14px 16px;
    }
}

.qr-wrapper {
    margin-top: 20px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 2px solid var(--vcb-green);
    box-shadow: 0 10px 25px rgba(11, 122, 75, 0.15);
    display: flex;
    justify-content: center;
}

.qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.qr-wrapper:hover {
    border-color: var(--vcb-gold);
    box-shadow: 0 14px 30px rgba(181, 138, 69, 0.25);
}

.lang-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    gap: 6px;
    z-index: 2;
}

.lang-pill {
    appearance: none;
    border: 1px solid rgba(11, 122, 75, 0.18);
    background: #f7f4ee;
    color: var(--vcb-green-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    min-width: 40px;
}

.lang-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 122, 75, 0.35);
    box-shadow: 0 8px 18px rgba(11, 122, 75, 0.10);
}

.lang-pill.is-active {
    background: var(--button-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(11, 122, 75, 0.18);
}

.lang-pill:focus-visible {
    outline: 2px solid rgba(11, 122, 75, 0.45);
    outline-offset: 2px;
}

@keyframes spinGradient {
    to {
        transform: rotate(360deg);
    }
}