:root {
    --yellow: #f6c900;
    --yellow-light: #ffe870;
    --ink: #141414;
    --muted: #706d62;
    --paper: #fffdf4;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #17150e;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 16% 12%, rgba(246, 201, 0, .26), transparent 28rem),
        linear-gradient(145deg, #272113, #0e0e0d 70%);
    font-family: Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.profile-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: start center;
}

.profile-card {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--paper);
}

.portrait-wrap {
    position: relative;
    overflow: hidden;
    background: #f4c20a;
}

.portrait {
    display: block;
    width: 100%;
    height: min(60vh, 590px);
    object-fit: cover;
    object-position: center 18%;
}

.portrait-shade {
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .73));
    pointer-events: none;
}

.identity {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.identity h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 9vw, 2.8rem);
    font-weight: 700;
    letter-spacing: .02em;
    line-height: .95;
}

.identity p {
    margin: 7px 0 0;
    color: var(--yellow-light);
    font-size: .82rem;
    font-weight: 700;
}

.verified-mark {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    margin-top: 4px;
}

.verified-mark svg {
    width: 100%;
    fill: var(--yellow);
}

.verified-mark .check {
    fill: none;
    stroke: #181818;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.content-panel {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    padding: 23px max(18px, env(safe-area-inset-right)) calc(23px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border-radius: 24px 24px 0 0;
    background: var(--paper);
}

.intro {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

.social-links {
    display: grid;
    gap: 11px;
}

.social-button {
    position: relative;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 15px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(20, 20, 20, .13);
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease;
}

.social-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, .13), transparent 45%);
    pointer-events: none;
}

.social-button:active {
    transform: scale(.98);
    box-shadow: 0 4px 10px rgba(20, 20, 20, .12);
}

.tiktok {
    background: linear-gradient(135deg, #181818, #050505);
}

.instagram {
    background: linear-gradient(120deg, #7138c8, #c72c8b 45%, #ef5b38 75%, #f5a631);
}

.whatsapp {
    background: linear-gradient(135deg, #28bc68, #11994d);
}

.icon-box {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
}

.icon-box svg {
    width: 25px;
    height: 25px;
    fill: #fff;
}

.instagram .icon-box svg {
    fill: none;
    stroke: #fff;
    stroke-width: 1.9;
}

.instagram .dot {
    fill: #fff;
    stroke: none;
}

.whatsapp .icon-box svg > path:first-child {
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
}

.whatsapp .phone {
    fill: #fff;
}

.button-copy {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 3px;
    text-align: left;
    direction: ltr;
}

.button-copy strong {
    font-size: 1rem;
    letter-spacing: .01em;
}

.button-copy small {
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.arrow {
    position: relative;
    z-index: 1;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.pending-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pending-chip {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed #d8d1b5;
    border-radius: 15px;
    color: #777164;
    background: #f5f1e5;
    direction: ltr;
    font-size: .83rem;
    font-weight: 700;
}

.pending-chip small {
    padding: 3px 6px;
    border-radius: 10px;
    color: #948d7e;
    background: #eae4d4;
    direction: rtl;
    font-size: .62rem;
}

.save-contact {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 18px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    color: var(--ink);
    background: linear-gradient(135deg, var(--yellow-light), var(--yellow));
    text-decoration: none;
    box-shadow: 0 7px 0 #171717, 0 12px 22px rgba(0, 0, 0, .13);
    transition: transform .16s ease, box-shadow .16s ease;
}

.save-contact:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 #171717, 0 7px 14px rgba(0, 0, 0, .12);
}

.save-contact svg {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    fill: currentColor;
}

.save-contact span {
    display: grid;
    gap: 3px;
    text-align: right;
}

.save-contact strong {
    font-size: .96rem;
}

.save-contact small {
    color: #514710;
    font-size: .69rem;
}

.footer-note {
    margin: 23px 0 2px;
    color: #a49e8d;
    direction: ltr;
    font-family: Arial, sans-serif;
    font-size: .7rem;
    letter-spacing: .13em;
    text-align: center;
    text-transform: uppercase;
}

@media (min-width: 520px) {
    .profile-shell {
        padding: 28px 0;
    }

    .profile-card {
        min-height: auto;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 30px;
        box-shadow: 0 30px 75px rgba(0, 0, 0, .42);
    }
}

@media (max-width: 370px) {
    .portrait {
        height: 52vh;
    }

    .content-panel {
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
