:root {
    color-scheme: dark;
    --bg: #070707;
    --card: #111111;
    --card2: #171717;
    --line: rgba(255,255,255,.09);
    --text: #fff8e8;
    --muted: #a7a29a;
    --gold: #ffd400;
    --gold2: #ffb300;
    --success: #62df93;
    --danger: #ff7474;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255,212,0,.13),
            transparent 34rem
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

.shell {
    width: min(100%, 720px);
    min-height: 100vh;
    margin: 0 auto;
    padding:
        max(16px, env(safe-area-inset-top))
        16px
        max(28px, env(safe-area-inset-bottom));
}

.shell-center {
    display: grid;
    place-items: center;
}

.topbar {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.brand {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.top-title {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 900;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #121212;
    color: white;
    font-size: 30px;
    line-height: 1;
}

.secure-pill {
    padding: 8px 10px;
    border: 1px solid rgba(255,212,0,.22);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(255,212,0,.06);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
}

.hero {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 4px 18px;
}

.hero h1 {
    margin: 5px 0 7px;
    font-size: clamp(27px, 7vw, 38px);
    line-height: 1.02;
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.avatar-wrap {
    text-align: center;
}

.avatar-fallback,
.avatar-image {
    width: 88px;
    height: 88px;
    margin: auto;
    border: 2px solid var(--gold);
    border-radius: 25px;
    background:
        linear-gradient(
            145deg,
            #2a2410,
            #0e0e0e
        );
    box-shadow:
        0 14px 34px rgba(0,0,0,.5),
        0 0 0 5px rgba(255,212,0,.05);
}

.avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 42px;
}

.avatar-image {
    object-fit: cover;
}

.photo-button {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.market-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.mini-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255,255,255,.025);
}

.mini-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mini-card strong {
    font-size: 14px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.018)
        );
    box-shadow:
        0 22px 55px rgba(0,0,0,.32);
}

.form-card {
    padding: 18px;
}

.field {
    display: block;
    margin-bottom: 15px;
}

.field > span {
    display: flex;
    justify-content: space-between;
    margin: 0 3px 7px;
    color: #e9e3d5;
    font-size: 12px;
    font-weight: 800;
}

.field em {
    color: var(--muted);
    font-style: normal;
    font-weight: 600;
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    outline: none;
    border-radius: 15px;
    background: #0b0b0b;
    color: white;
}

.field input:focus {
    border-color: rgba(255,212,0,.72);
    box-shadow: 0 0 0 3px rgba(255,212,0,.08);
}

.field small {
    display: block;
    margin: 5px 4px 0;
    color: var(--muted);
    text-align: right;
}

.phone-grid {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 10px;
}

.dial-field input {
    text-align: center;
    color: var(--gold);
    font-weight: 900;
}

.dial-field input:disabled {
    opacity: 1;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}

.status {
    min-height: 20px;
    margin: 4px 2px 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.status.error {
    color: var(--danger);
}

.status.success {
    color: var(--success);
}

.btn {
    display: grid;
    width: 100%;
    min-height: 54px;
    place-items: center;
    border: 0;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 950;
}

.primary {
    background:
        linear-gradient(
            180deg,
            #ffe44c,
            var(--gold2)
        );
    color: #111;
    box-shadow:
        0 8px 0 #8d6200,
        0 16px 30px rgba(255,196,0,.16);
}

.primary:active {
    transform: translateY(3px);
    box-shadow:
        0 5px 0 #8d6200,
        0 12px 24px rgba(255,196,0,.12);
}

.primary:disabled {
    filter: grayscale(.7);
    opacity: .55;
    box-shadow: none;
}

.secondary {
    margin-top: 18px;
    border: 1px solid var(--line);
    background: #171717;
    color: white;
}

.trust {
    margin-top: 17px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.auth-card {
    width: 100%;
    padding: 30px 22px;
    text-align: center;
}

.auth-card h1 {
    margin: 10px 0;
}

.auth-card p {
    color: var(--muted);
    line-height: 1.5;
}

.panda {
    font-size: 50px;
}

@media (max-width: 420px) {
    .hero {
        grid-template-columns: 90px 1fr;
    }

    .avatar-fallback,
    .avatar-image {
        width: 78px;
        height: 78px;
    }
}
