:root {
    --navy: #031024;
    --navy-2: #061834;
    --line: rgba(218, 177, 110, .68);
    --gold: #d9aa4d;
    --gold-soft: #f3cf78;
    --text: #f3eee6;
    --muted: #b8ad9f;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 8%, rgba(200, 150, 55, .13), transparent 22rem),
        linear-gradient(180deg, #021027 0%, #041228 45%, #020b1b 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    width: min(100%, 470px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 18px 84px;
    position: relative;
}

.topbar {
    display: grid;
    grid-template-columns: 64px 1fr 72px;
    align-items: start;
    gap: 8px;
    min-height: 148px;
}

.status-time {
    font-size: 18px;
    font-weight: 800;
    padding-top: 4px;
}

.brand {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.brand img {
    width: 154px;
    max-width: 100%;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .42));
}

.brand strong {
    color: #c8aa7e;
    font-size: 20px;
    letter-spacing: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
}

.profile {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding-top: 48px;
}

.profile span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #10213a;
    background: linear-gradient(145deg, #f5ead8, #c9b29a);
    font-weight: 800;
    font-size: 13px;
}

.profile small {
    color: #c7b49c;
    font-size: 12px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(4, 18, 42, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.account-panel {
    padding: 20px 18px 18px;
}

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

.panel h1,
.panel h2 {
    color: #bfa888;
    font-size: 16px;
    font-weight: 800;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: end;
    gap: 18px;
    margin-top: 20px;
}

.account-values {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.account-values span {
    color: #f4efe7;
    font-size: 14px;
}

.account-values strong {
    color: #d5b59b;
    font-size: clamp(24px, 6vw, 29px);
    line-height: 1;
}

.account-values b {
    color: #cdb8a0;
    font-size: 18px;
}

.gold-card {
    min-height: 140px;
    border-radius: 8px;
    padding: 13px 14px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(0, 0, 0, .9), rgba(24, 18, 15, .85) 42%, rgba(104, 60, 15, .68)),
        radial-gradient(circle at 90% 10%, rgba(255, 190, 66, .95), transparent 42%);
    box-shadow: var(--shadow);
}

.gold-card::after {
    content: "";
    position: absolute;
    inset: -25% -10% auto auto;
    width: 90px;
    height: 210px;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 207, 95, .9), transparent);
    opacity: .65;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #f1d69c;
    font-size: 10px;
    font-weight: 800;
}

.card-mark {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    border: 1px solid rgba(231, 183, 94, .75);
}

.chip {
    width: 28px;
    height: 22px;
    margin-top: 17px;
    border-radius: 5px;
    background: linear-gradient(135deg, #a46a2c, #edc35c 48%, #8b5a26);
}

.gold-card p {
    margin-top: 8px;
    font-size: 11px;
}

.gold-card small {
    display: block;
    margin-top: 20px;
    font-size: 8px;
    font-weight: 800;
}

.card-circles {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
}

.card-circles i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(235, 193, 97, .86);
    margin-left: -7px;
}

.quick-actions,
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.quick-actions {
    padding: 26px 12px 18px;
}

.action-button,
.service-button {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    min-width: 0;
}

.action-button span,
.service-button span {
    width: 80px;
    height: 80px;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #06152c;
    background:
        radial-gradient(circle at 35% 24%, #ffe08b, transparent 22%),
        linear-gradient(145deg, #f2cf72, #b98232);
    box-shadow: inset 0 -7px 13px rgba(95, 53, 13, .3), 0 12px 26px rgba(0, 0, 0, .38);
}

.action-button svg,
.service-button svg {
    width: 34px;
    height: 34px;
    stroke-width: 2.5;
}

.action-button b,
.service-button b,
.bottom-nav span {
    color: #bfae99;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
}

.gold-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 16px 14px;
}

.gold-info {
    display: grid;
    gap: 7px;
}

.gold-info span {
    font-size: 13px;
}

.gold-info strong,
.gold-info b {
    font-size: 19px;
}

.gold-info small {
    color: #b8bea8;
    font-weight: 700;
    justify-self: end;
    margin-top: -22px;
}

.coin {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #805317;
    font-size: 56px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
    background:
        radial-gradient(circle, #f6d278 0 38%, #9a6424 39% 42%, #f7d77d 43% 58%, #8f581d 60% 65%, #efc362 66%);
    border: 3px solid #a36c28;
}

.token-box {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.token-box h3 {
    color: #bfa888;
    font-size: 12px;
    line-height: 1.15;
}

.token-flow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-flow span,
.token-flow b {
    display: grid;
    place-items: center;
    min-width: 36px;
    min-height: 32px;
    border-radius: 7px;
    border: 1px solid rgba(226, 178, 91, .7);
    color: #e8c878;
    font-size: 10px;
}

.token-flow svg {
    color: #dcb86d;
}

.token-button {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 13px;
    color: #4f3311;
    background: linear-gradient(145deg, #f4d07a, #b98135);
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 8px 17px rgba(0, 0, 0, .35);
}

.services-panel {
    margin-top: 12px;
    padding: 18px 14px 16px;
}

.service-grid {
    gap: 16px;
    margin-top: 18px;
}

.service-button span {
    width: 64px;
    height: 64px;
}

.service-button svg {
    width: 29px;
    height: 29px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(calc(100% - 28px), 438px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 11px 10px 9px;
    border: 1px solid rgba(83, 111, 156, .54);
    border-radius: 8px;
    background: rgba(3, 16, 36, .92);
    backdrop-filter: blur(12px);
}

.bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
}

.bottom-nav svg {
    width: 23px;
    height: 23px;
    color: #a9a198;
}

.bottom-nav .active svg,
.bottom-nav .active span {
    color: var(--gold-soft);
}

@media (max-width: 430px) {
    .app-shell {
        padding-inline: 14px;
    }

    .topbar {
        grid-template-columns: 56px 1fr 62px;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .gold-card {
        width: min(100%, 230px);
        justify-self: end;
    }

    .quick-actions,
    .service-grid {
        gap: 10px;
    }

    .action-button span {
        width: 70px;
        height: 70px;
    }

    .gold-panel {
        grid-template-columns: 1fr 82px;
    }

    .coin {
        width: 78px;
        height: 78px;
        font-size: 46px;
    }

    .token-box {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        align-items: center;
        text-align: left;
    }

    .token-flow {
        justify-self: end;
    }

    .token-button {
        grid-column: 1 / -1;
        justify-self: end;
    }
}
