.coin-store {
    width: min(1460px, calc(100% - 36px));
    margin: 0 auto;
    padding: 54px 0 72px;
}

.coin-store-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 28px;
}

.coin-store-kicker {
    display: block;
    margin-bottom: 8px;
    color: #ffe63b;
    font-size: .72rem;
    font-weight: 950;
}

.coin-store-head h1 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: .95;
}

.coin-store-head p {
    max-width: 670px;
    margin: 14px 0 0;
    color: #aebdd1;
    line-height: 1.65;
}

.coin-wallet {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 190px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 230, 59, .38);
    border-radius: 8px;
    background: #101a27;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.coin-wallet img,
.coin-pack-amount img,
.coin-balance-link img {
    border-radius: 50%;
    object-fit: cover;
}

.coin-wallet span { display: grid; gap: 2px; }
.coin-wallet small { color: #9cacbf; font-size: .65rem; font-weight: 900; }
.coin-wallet strong { font-size: 1.35rem; }

.coin-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #314156;
    border-radius: 8px;
    background: #101925;
    color: #b9c6d7;
}
.coin-notice strong { color: #fff; }
.coin-notice-success { border-color: rgba(45, 220, 153, .45); background: rgba(9, 59, 45, .46); }
.coin-notice-error { border-color: rgba(255, 82, 111, .5); background: rgba(74, 18, 31, .48); }

.coin-pack-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.coin-pack {
    --pack-a: #2367c9;
    --pack-line: #78afff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 2px solid #315f94;
    border-color: color-mix(in srgb, var(--pack-line) 68%, #101a28);
    border-radius: 8px;
    background: #0d1724;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.coin-pack.theme-green { --pack-a: #218a45; --pack-line: #72d795; }
.coin-pack.theme-cyan { --pack-a: #b9364d; --pack-line: #ef8697; }
.coin-pack.theme-purple { --pack-a: #8a3da7; --pack-line: #d18ae6; }
.coin-pack.theme-orange { --pack-a: #c56d21; --pack-line: #efb16f; }

.coin-pack:hover {
    z-index: 2;
    transform: translateY(-5px);
    border-color: rgba(255, 230, 59, .58);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .34), 0 0 24px rgba(255, 222, 44, .08);
}

.coin-pack.is-featured { border-color: #fff35b; box-shadow: 0 20px 50px rgba(255, 221, 45, .12); }
.coin-pack-popular {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    padding: 6px 8px;
    border-radius: 5px;
    background: #188cff;
    color: #fff;
    font-size: .58rem;
    font-weight: 950;
}

.coin-pack-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 292px;
    overflow: hidden;
    border-bottom: 1px solid #2b3b4f;
    isolation: isolate;
    background-color: var(--pack-a);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 34px);
}
.coin-pack-backdrop {
    display: none;
}
.coin-pack-art::after {
    content: none;
}
.coin-pack-value-tag {
    position: absolute;
    z-index: 4;
    top: 13px;
    right: 13px;
    max-width: calc(100% - 26px);
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 4px;
    background: rgba(4, 11, 22, .74);
    color: #fff;
    font-size: .62rem;
    font-style: italic;
    font-weight: 950;
    text-transform: uppercase;
}
.coin-pack.is-featured .coin-pack-value-tag { top: 48px; }
.coin-pack-pile {
    position: relative;
    z-index: 2;
    display: block;
    width: min(94%, 292px);
    height: auto;
    margin-top: 24px;
    object-fit: contain;
    filter: drop-shadow(0 16px 13px rgba(0, 0, 0, .46));
    transform-origin: center bottom;
    transition: transform 220ms ease, filter 220ms ease;
}
.coin-pack-pile.pile-sm { transform: scale(.82); }
.coin-pack-pile.pile-md { transform: scale(.9); }
.coin-pack-pile.pile-lg { transform: scale(.98); }
.coin-pack-pile.pile-xl { transform: scale(1.06); }
.coin-pack:hover .coin-pack-pile { filter: drop-shadow(0 18px 15px rgba(0, 0, 0, .54)); }
.coin-pack:hover .coin-pack-pile.pile-sm { transform: translateY(-3px) scale(.85); }
.coin-pack:hover .coin-pack-pile.pile-md { transform: translateY(-3px) scale(.93); }
.coin-pack:hover .coin-pack-pile.pile-lg { transform: translateY(-3px) scale(1.01); }
.coin-pack:hover .coin-pack-pile.pile-xl { transform: translateY(-3px) scale(1.09); }

.coin-pack-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px 4px;
    color: #fff;
}
.coin-pack-amount strong { font-size: 1.48rem; }
.coin-pack-name {
    display: block;
    min-height: 22px;
    padding: 0 12px;
    color: #dbe8f7;
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
}
.coin-pack-bonus {
    min-height: 36px;
    padding: 4px 12px 12px;
    color: #ffe63b;
    text-align: center;
    font-size: .77rem;
    font-weight: 900;
}
.coin-pack-bonus.is-base { color: #8fa1b8; }
.coin-pack form { margin-top: auto; padding: 0 12px 14px; }
.coin-pack button {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ffec63;
    border-radius: 6px;
    background: #ffe12e;
    color: #111827;
    font: inherit;
    font-weight: 950;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}
.coin-pack button:hover { transform: translateY(-1px); background: #fff06b; }
.coin-pack button:disabled { cursor: wait; opacity: .68; transform: none; }

.coin-friend-code {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: 20px 34px;
    align-items: center;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid #31445d;
    border-radius: 8px;
    background: #0d1724;
}
.coin-friend-code-copy {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.coin-friend-code-kicker {
    display: grid;
    flex: 0 0 66px;
    width: 66px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 226, 46, .58);
    border-radius: 50%;
    background: #171b19;
    color: #ffe32f;
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1;
    text-align: center;
}
.coin-friend-code-kicker strong,
.coin-friend-code-kicker small { display: block; }
.coin-friend-code-kicker small { margin-top: 5px; color: #fff6a5; font-size: .62rem; }
.coin-friend-code h2 { margin: 0; color: #fff; font-size: 1.15rem; }
.coin-friend-code p { margin: 6px 0 0; color: #aebdd1; line-height: 1.5; }
.coin-friend-code-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: end;
}
.coin-friend-code-form label { display: grid; gap: 6px; min-width: 0; }
.coin-friend-code-form label span { color: #8fa3bb; font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.coin-friend-code-form input {
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #38516d;
    border-radius: 6px;
    outline: 0;
    background: #09121d;
    color: #fff;
    font: inherit;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}
.coin-friend-code-form input:focus { border-color: #2d9cff; box-shadow: 0 0 0 3px rgba(45, 156, 255, .13); }
.coin-friend-code-form button {
    height: 44px;
    padding: 0 18px;
    border: 1px solid #54b3ff;
    border-radius: 6px;
    background: #188cff;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.coin-friend-code-current,
.coin-friend-code-status { grid-column: 1 / -1; }
.coin-friend-code-current { display: flex; align-items: center; gap: 9px; margin: -6px 0 0 !important; }
.coin-friend-code-current span { color: #8fa3bb; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.coin-friend-code-current strong { color: #fff; }
.coin-friend-code-current small { color: #55c6ff; font-weight: 850; }
.coin-friend-code-status {
    margin: -6px 0 0 !important;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
}
.coin-friend-code-status.is-success { border-color: rgba(45, 220, 153, .45); background: rgba(9, 59, 45, .46); color: #7bf0bf; }
.coin-friend-code-status.is-error { border-color: rgba(255, 82, 111, .5); background: rgba(74, 18, 31, .48); color: #ff9bad; }

.coin-balance-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(255, 230, 59, .34);
    border-radius: 8px;
    background: rgba(255, 225, 46, .08);
    color: #fff;
    font-size: .82rem;
    font-weight: 950;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.coin-balance-link:hover { border-color: rgba(255, 230, 59, .72); background: rgba(255, 225, 46, .14); transform: translateY(-1px); }
.coin-balance-link img { width: 25px; height: 25px; }

@media (max-width: 1320px) {
    .coin-pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
    .coin-pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .coin-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coin-friend-code { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .coin-store { width: min(100% - 24px, 620px); padding-top: 32px; }
    .coin-store-head { align-items: stretch; flex-direction: column; gap: 18px; }
    .coin-wallet { min-width: 0; width: 100%; }
    .coin-pack-grid { grid-template-columns: 1fr; }
    .coin-pack-art { min-height: 190px; }
    .coin-balance-link { width: 100%; justify-content: center; min-height: 44px; }
    .coin-friend-code { padding: 17px; }
    .coin-friend-code-form { grid-template-columns: 1fr; }
    .coin-friend-code-form button { width: 100%; }
}
