:root {
    --page: #f4f6ff;
    --paper: rgba(255, 255, 255, .88);
    --paper-solid: #ffffff;
    --line: rgba(132, 139, 174, .16);
    --text: #24263a;
    --soft: #7c829d;
    --purple: #8a77ff;
    --violet: #b66cff;
    --pink: #ff80bf;
    --orange: #ff8f70;
    --blue: #64b9ff;
    --green: #54d99b;
    --gold: #ffcb57;
    --danger: #ff647d;
    --radius: 8px;
    --shadow: 0 12px 30px rgba(102, 111, 180, .14);
}

* { box-sizing: border-box; }
html { background: #e9edf8; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: #e9edf8;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 147, 214, .34), transparent 30%),
        radial-gradient(circle at 88% 6%, rgba(91, 209, 255, .36), transparent 28%),
        linear-gradient(180deg, #efeaff 0%, #f7f8ff 34%, #f3f5fc 100%);
}

.app-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 210px;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 45%),
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .68), transparent 38%),
        linear-gradient(135deg, rgba(171, 143, 255, .42), rgba(101, 215, 255, .28) 45%, rgba(255, 163, 218, .34));
    filter: saturate(1.18);
    pointer-events: none;
}

.app-main {
    position: relative;
    z-index: 1;
    padding: 14px 10px 82px;
}

.topbar {
    position: relative;
    z-index: 2;
    min-height: 50px;
    padding: 12px 16px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    max-width: 238px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #221c36;
}
.brand-mark {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .95), transparent 18%),
        linear-gradient(135deg, #ff78b9 0%, #9b72ff 48%, #4ec7ff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .78),
        0 8px 18px rgba(118, 95, 220, .24);
    overflow: hidden;
}
.brand-mark::before {
    content: "";
    position: absolute;
    inset: 8px 7px 9px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 5px;
    transform: skewY(-7deg);
}
.brand-mark::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 7px 0 rgba(255, 255, 255, .72);
}
.brand-mark span {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffe56f;
    box-shadow: 0 0 0 3px rgba(255, 229, 111, .22);
}
.brand-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}
.brand-kicker {
    color: #8b73ff;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}
.brand-title {
    display: block;
    max-width: 190px;
    font-size: 18px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #211c35;
    background: linear-gradient(90deg, #241538 0%, #5547ee 58%, #f25faf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .86)) drop-shadow(0 7px 13px rgba(116, 84, 205, .15));
}
@media (max-width: 360px) {
    .brand {
        max-width: 148px;
        gap: 6px;
    }
    .brand-mark {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
    .brand-kicker {
        display: none;
    }
    .brand-title {
        max-width: 108px;
        font-size: 16px;
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .64);
    color: #6c5df3;
    box-shadow: 0 6px 18px rgba(125, 106, 255, .12);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero {
    min-height: 136px;
    margin: 4px 0 14px;
    padding: 18px 18px 16px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(139, 104, 255, .88), rgba(255, 129, 198, .78) 56%, rgba(104, 209, 255, .75)),
        url("/assets/images/defaults/box.svg") right 5px bottom -18px / 150px auto no-repeat;
    box-shadow: var(--shadow);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, .66), transparent 22%),
        radial-gradient(circle at 68% 35%, rgba(255, 255, 255, .34), transparent 20%),
        linear-gradient(120deg, rgba(255, 255, 255, .26), transparent 42%);
    pointer-events: none;
}

.hero h1, .hero p, .hero .hero-actions { position: relative; z-index: 1; }
.hero h1 {
    width: 66%;
    margin: 0 0 7px;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: 0;
    text-shadow: 0 3px 13px rgba(69, 34, 132, .32);
}
.hero p {
    width: 62%;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    line-height: 1.45;
}
.hero-actions { margin-top: 12px; display: flex; gap: 8px; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 8px;
    margin: 12px 0 14px;
}
.quick-link {
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #34364c;
    font-size: 12px;
    font-weight: 700;
}
.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74), 0 10px 22px rgba(128, 113, 211, .16);
}
.quick-icon svg,
.small-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.quick-icon.pink { background: linear-gradient(135deg, #ff9ab9, #ff5d91); }
.quick-icon.purple { background: linear-gradient(135deg, #b69cff, #846bff); }
.quick-icon.blue { background: linear-gradient(135deg, #9bd6ff, #63a8ff); }
.quick-icon.gold { background: linear-gradient(135deg, #ffe39a, #ffb944); }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
}
.section-title h2 {
    margin: 0;
    color: #282b43;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
}
.section-ribbon {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(142, 113, 255, .23), rgba(255, 145, 204, .16));
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #7a5ff5;
    font-weight: 950;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.muted { color: var(--soft); }
.grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
}
.card {
    border: 1px solid var(--line);
    background: var(--paper-solid);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.box-card {
    overflow: hidden;
    border-radius: 8px;
}
.grid2 .box-card:nth-child(2n) .box-cover { filter: hue-rotate(28deg) saturate(1.06); }
.grid2 .box-card:nth-child(3n) .box-cover { filter: hue-rotate(64deg) saturate(1.08); }
.grid2 .box-card:nth-child(4n) .box-cover { filter: hue-rotate(-36deg) saturate(1.08); }
.box-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eef1fa;
}
.box-body { padding: 9px 10px 10px; }
.box-title {
    min-height: 34px;
    color: #303348;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.box-subtitle {
    height: 18px;
    margin-top: 3px;
    color: #8b91a8;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.price {
    margin-top: 6px;
    color: #7062ff;
    font-size: 15px;
    font-weight: 950;
}
.price small {
    color: #9aa0b5;
    font-size: 11px;
    font-weight: 700;
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f1edff;
    color: #7b64ff;
    font-size: 11px;
    font-weight: 800;
}

.btn {
    border: 0;
    min-height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 9px 18px rgba(138, 119, 255, .22);
}
.btn.secondary {
    background: #fff;
    color: #7b64ff;
    border: 1px solid rgba(132, 119, 255, .22);
    box-shadow: 0 8px 16px rgba(132, 119, 255, .12);
}
.btn.danger {
    background: linear-gradient(135deg, #ff8c9d, #ff5f86);
}
.btn.full { width: 100%; }

.tabs {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding: 2px 0 10px;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    min-width: 72px;
    background: rgba(255, 255, 255, .8);
    color: #777f99;
}
.tab.active {
    background: linear-gradient(135deg, #8a77ff, #b66cff);
    color: #fff;
}

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 7px; }
.field label {
    color: #68708b;
    font-size: 13px;
    font-weight: 800;
}
.input, select, textarea {
    width: 100%;
    border: 1px solid #e3e7f2;
    background: #fff;
    color: var(--text);
    border-radius: 8px;
    padding: 12px;
    outline: none;
}
textarea { min-height: 92px; resize: vertical; }
.flash {
    margin: 8px 0 12px;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid rgba(84, 217, 155, .34);
    background: rgba(84, 217, 155, .13);
    color: #217a56;
}
.flash.error {
    border-color: rgba(255, 100, 125, .28);
    background: rgba(255, 100, 125, .1);
    color: #a93c52;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 20;
    transform: translateX(-50%);
    width: min(100%, 480px);
    height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(168, 176, 204, .18);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 -10px 28px rgba(115, 123, 168, .12);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    backdrop-filter: blur(16px);
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #9aa2b7;
    font-size: 11px;
    font-weight: 800;
}
.bottom-nav a.active { color: #7c67ff; }
.icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #eef1f9;
    color: #9aa2b7;
    line-height: 1;
}
.icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bottom-nav a.active .icon {
    background: linear-gradient(135deg, #927cff, #ff95ca);
    color: #fff;
}

.detail-card {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow);
}
.detail-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    background: #eef1fa;
    box-shadow: var(--shadow);
}
.detail-head {
    margin: -24px 10px 12px;
    position: relative;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.detail-head h1 {
    margin: 8px 0 4px;
    color: #25283e;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 950;
}
.box-detail-page {
    padding-bottom: 172px;
}
.box-hero-detail {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    min-height: 154px;
    padding: 10px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .84), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(224, 235, 255, .86) 48%, rgba(255, 220, 241, .9));
    box-shadow: var(--shadow);
    overflow: hidden;
}
.box-hero-detail img {
    width: 112px;
    height: 134px;
    object-fit: cover;
    border-radius: 8px;
    background: #edf1fb;
    box-shadow: 0 12px 22px rgba(117, 125, 176, .14);
}
.box-hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.box-hero-copy .tags { margin-top: 0; }
.box-hero-copy h1 {
    margin: 8px 0 5px;
    color: #24263a;
    font-size: 21px;
    line-height: 1.16;
    font-weight: 950;
}
.box-hero-copy p {
    margin: 0;
    max-height: 38px;
    color: #737b96;
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
}
.box-price-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 10px;
    color: #7b64ff;
}
.box-price-line strong {
    font-size: 23px;
    line-height: 1;
    font-weight: 950;
}
.box-price-line span {
    color: #9aa0b5;
    font-size: 12px;
    font-weight: 800;
}
.box-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0 12px;
}
.box-summary div {
    min-width: 0;
    padding: 10px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}
.box-summary b {
    display: block;
    color: #282b43;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 950;
}
.box-summary span {
    display: block;
    margin-top: 4px;
    color: #858da5;
    font-size: 11px;
    font-weight: 800;
}
.balance {
    color: #7a63ff;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 950;
}
.notice {
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 199, 87, .25);
    background: rgba(255, 247, 221, .92);
    color: #8a6a1f;
    font-size: 13px;
    line-height: 1.55;
}

.prize-list { display: grid; gap: 9px; }
.prize-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px;
    box-shadow: none;
}
.prize-row img, .bag-img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef1fa;
}
.rule-card {
    padding: 13px;
    line-height: 1.62;
}
.rule-card p {
    margin: 0;
}
.rule-card p + p {
    margin-top: 8px;
}
.draw-dock {
    position: fixed;
    left: 50%;
    bottom: calc(66px + env(safe-area-inset-bottom));
    z-index: 19;
    width: min(calc(100% - 20px), 460px);
    transform: translateX(-50%);
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 -10px 30px rgba(104, 113, 174, .18);
    backdrop-filter: blur(18px);
}
.draw-dock-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.draw-dock-head span {
    display: block;
    color: #858da5;
    font-size: 11px;
    font-weight: 900;
}
.draw-dock-head strong {
    display: block;
    margin-top: 1px;
    color: #7462ff;
    font-size: 21px;
    line-height: 1.08;
    font-weight: 950;
}
.draw-dock-head label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #606987;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.draw-dock input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #8a77ff;
}
.draw-number-field {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 8px;
    align-items: center;
}
.draw-number-field span,
.draw-controls label span {
    color: #68708b;
    font-size: 12px;
    font-weight: 900;
}
.draw-number-field input,
.draw-controls select {
    width: 100%;
    height: 40px;
    border: 1px solid #e3e7f2;
    border-radius: 8px;
    background: #f8faff;
    color: #25283e;
    padding: 0 10px;
    outline: none;
}
.draw-controls {
    display: grid;
    grid-template-columns: minmax(0, 118px) 1fr;
    gap: 9px;
    align-items: end;
}
.draw-controls label {
    display: grid;
    gap: 4px;
}
.draw-controls .btn {
    min-height: 45px;
    border-radius: 8px;
    font-size: 16px;
}
.draw-dock p {
    margin: 0;
    color: #8b91a8;
    font-size: 11px;
    line-height: 1.45;
}
.quality {
    display: inline-flex;
    min-width: 28px;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}
.quality-s, .quality-last { background: linear-gradient(135deg, #fff0a6, #ffb84d); color: #68430b; }
.quality-a, .quality-hidden, .quality-lord { background: linear-gradient(135deg, #c8a6ff, #805cff); color: #fff; }
.quality-b { background: linear-gradient(135deg, #9fe0ff, #4fa4ff); color: #fff; }
.quality-c { background: linear-gradient(135deg, #8ff2c4, #38bf85); color: #0b5b3c; }
.quality-d { background: #e7eaf2; color: #7f869a; }

.number-wall {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.number-cell {
    height: 42px;
    border: 1px solid rgba(137, 119, 255, .18);
    border-radius: 8px;
    background: #fff;
    color: #7b64ff;
    font-weight: 950;
    box-shadow: 0 8px 16px rgba(132, 119, 255, .1);
}
.number-cell.picked {
    background: #eef1f6;
    color: #a4aabc;
    text-decoration: line-through;
    box-shadow: none;
}

.result-page {
    padding-bottom: 10px;
}
.opening-stage {
    position: relative;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 164px;
    margin: 2px 0 12px;
    padding: 16px;
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, .94), transparent 26%),
        radial-gradient(circle at 78% 24%, rgba(255, 210, 247, .78), transparent 30%),
        linear-gradient(135deg, rgba(161, 137, 255, .86), rgba(111, 206, 255, .66) 50%, rgba(255, 139, 202, .72));
    color: #fff;
    box-shadow: var(--shadow);
    animation: openingCollapse .42s ease 2.25s forwards;
}
.opening-stage::before,
.opening-stage::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
    filter: blur(1px);
    animation: openingFloat 1.5s ease-in-out infinite alternate;
}
.opening-stage::before { right: -36px; top: -32px; }
.opening-stage::after { left: 54px; bottom: -68px; animation-delay: .18s; }
.opening-box {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 104px;
    height: 112px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 26px rgba(77, 77, 149, .18);
    animation: openingShake .62s ease-in-out 3;
}
.opening-box img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(73, 65, 142, .22));
}
.opening-box span {
    position: absolute;
    inset: -30%;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .86), transparent 62%);
    transform: translateX(-100%) rotate(12deg);
    animation: openingSweep 1.65s ease .28s both;
}
.opening-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.opening-copy p {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 900;
    opacity: .86;
}
.opening-copy h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
    font-weight: 950;
    text-shadow: 0 4px 14px rgba(69, 52, 137, .24);
}
.opening-copy em {
    display: block;
    margin-top: 7px;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
    opacity: .88;
}
.opening-bar {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    overflow: hidden;
}
.opening-bar i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, .92);
    transform-origin: left center;
    animation: openingProgress 1.85s ease-out both;
}
.result-summary {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.result-summary div {
    padding: 11px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}
.result-summary span {
    display: block;
    color: #858da5;
    font-size: 11px;
    font-weight: 900;
}
.result-summary b {
    display: block;
    margin-top: 3px;
    color: #282b43;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 950;
}
.result-stage { perspective: 900px; display: grid; gap: 12px; }
.result-card {
    padding: 12px;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    opacity: 0;
    transform-origin: center top;
    animation: prizeReveal .62s cubic-bezier(.2, .85, .2, 1) var(--reveal-delay, 2.35s) both;
}
.result-card img {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    object-fit: cover;
}
.result-card h3 {
    margin: 8px 0 5px;
    color: #28304a;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 950;
}
.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}
.draw-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .82), transparent 18%),
        linear-gradient(135deg, rgba(239, 234, 255, .92), rgba(216, 242, 255, .9) 48%, rgba(255, 224, 244, .92));
    color: #282b43;
}
.draw-submit-panel {
    width: min(82vw, 320px);
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.draw-submit-panel img {
    width: 92px;
    height: 92px;
    animation: openingShake .58s ease-in-out infinite;
}
.draw-submit-panel strong {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 950;
}
.draw-submit-panel span {
    color: #778098;
    font-size: 13px;
    font-weight: 800;
}

.wallet-hero {
    margin-top: 2px;
    padding: 20px 14px 14px;
    border-radius: 8px;
    min-height: 118px;
    color: #303148;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .92), transparent 28%),
        linear-gradient(135deg, rgba(205, 184, 255, .78), rgba(156, 223, 255, .58) 48%, rgba(255, 180, 219, .66));
    box-shadow: var(--shadow);
}
.profile-line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
}
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    color: #7b64ff;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(125, 106, 255, .16);
}
.asset-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.asset-box {
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    color: #2e3149;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}
.asset-box b { display: block; margin-top: 4px; font-size: 16px; }
.recharge-card {
    padding: 14px;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 8px;
    padding: 15px 6px 6px;
}
.app-grid a {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #34364c;
    font-size: 12px;
    font-weight: 800;
}
.app-grid a > span:not(.small-icon) {
    display: block;
    max-width: 100%;
    text-align: center;
    line-height: 1.2;
}
.small-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #b09cff, #ff96c8);
    font-weight: 950;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 14px rgba(133, 118, 255, .15);
}
.small-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.wallet-panel {
    padding: 16px;
    border-radius: 8px;
    background: var(--paper-solid);
    box-shadow: var(--shadow);
}

.list { display: grid; gap: 10px; }
.list-item {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: none;
}
.bag-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px;
}
.bag-hero {
    min-height: 118px;
    padding: 18px 16px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #2c3048;
    background:
        radial-gradient(circle at 20% 12%, rgba(255, 255, 255, .9), transparent 26%),
        linear-gradient(135deg, rgba(154, 211, 255, .8), rgba(192, 170, 255, .68) 48%, rgba(255, 180, 219, .72));
    box-shadow: var(--shadow);
}
.bag-hero h1 {
    margin: 4px 0 6px;
    font-size: 26px;
    line-height: 1.05;
    font-weight: 950;
}
.bag-hero p { margin: 0; font-weight: 900; color: rgba(76, 86, 119, .62); }
.bag-hero span { font-size: 13px; color: rgba(44, 48, 72, .72); font-weight: 800; }
.bag-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: -18px 8px 14px;
    position: relative;
    z-index: 2;
}
.bag-stats div {
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}
.bag-stats b { color: #2c3048; font-size: 18px; }
.bag-stats span { color: #7b849b; font-size: 12px; font-weight: 800; }
.bag-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow);
}
.bag-check-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #33364f;
    font-size: 13px;
    font-weight: 900;
}
.bag-grid { display: grid; gap: 10px; }
.bag-card {
    position: relative;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 11px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.bag-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #8a77ff, #ff80bf);
}
.bag-card.is-disabled {
    opacity: .72;
    background: rgba(245, 247, 252, .92);
}
.bag-select {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.bag-select input,
.bag-check-all input {
    width: 16px;
    height: 16px;
    accent-color: #8a77ff;
}
.bag-cover {
    width: 82px;
    height: 82px;
    border-radius: 8px;
    object-fit: cover;
    background: #edf1fb;
}
.bag-title {
    padding-right: 26px;
    color: #24263a;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 950;
}
.bag-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.status-chip {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef1f7;
    color: #7e879d;
    font-size: 12px;
    font-weight: 900;
}
.status-in_bag { background: #eef3ff; color: #6f61ee; }
.status-recycled { background: #edf0f5; color: #8e96aa; }
.status-shipping, .status-shipped { background: #eaf8ff; color: #2585bd; }
.bag-value {
    margin-top: 8px;
    color: #7e879d;
    font-size: 12px;
    font-weight: 800;
}
.btn.mini {
    min-height: 30px;
    margin-top: 9px;
    padding: 0 12px;
    font-size: 12px;
}
.bag-actions {
    position: sticky;
    bottom: 72px;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}
.bag-actions select {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    font-size: 12px;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}
.empty {
    padding: 28px;
    text-align: center;
    color: var(--soft);
    border: 1px dashed rgba(136, 144, 175, .25);
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
}

@keyframes flipIn {
    0% { opacity: 0; transform: rotateY(75deg) translateY(16px); }
    100% { opacity: 1; transform: none; }
}
@keyframes openingShake {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    20% { transform: translate3d(-3px, 1px, 0) rotate(-4deg); }
    42% { transform: translate3d(4px, -2px, 0) rotate(5deg); }
    64% { transform: translate3d(-2px, 1px, 0) rotate(-3deg); }
    82% { transform: translate3d(2px, 0, 0) rotate(2deg); }
}
@keyframes openingSweep {
    0% { transform: translateX(-110%) rotate(12deg); }
    100% { transform: translateX(110%) rotate(12deg); }
}
@keyframes openingProgress {
    0% { transform: scaleX(0); }
    72% { transform: scaleX(.76); }
    100% { transform: scaleX(1); }
}
@keyframes openingFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(8px, -8px, 0) scale(1.08); }
}
@keyframes openingCollapse {
    0% { opacity: 1; max-height: 220px; min-height: 164px; margin-bottom: 12px; padding-top: 16px; padding-bottom: 16px; }
    100% { opacity: 0; max-height: 0; min-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; pointer-events: none; }
}
@keyframes prizeReveal {
    0% { opacity: 0; transform: rotateY(68deg) translateY(18px) scale(.92); filter: blur(8px); }
    58% { opacity: 1; transform: rotateY(-6deg) translateY(-4px) scale(1.02); filter: blur(0); }
    100% { opacity: 1; transform: none; filter: none; }
}

.admin-body { background: #f4f7fb; color: #152033; }
.admin-body .app-shell { background: none; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
    background: #081426;
    color: #dce7ff;
    padding: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-logo { font-size: 20px; font-weight: 900; margin-bottom: 18px; }
.admin-menu { display: grid; gap: 6px; }
.admin-menu a { padding: 10px 12px; border-radius: 8px; color: #aebbd7; }
.admin-menu a:hover, .admin-menu a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-main { padding: 22px; overflow: auto; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.admin-title { font-size: 24px; font-weight: 900; }
.admin-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .05);
    margin-bottom: 16px;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 16px; }
.stat b { display: block; font-size: 26px; margin-top: 6px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td {
    border-bottom: 1px solid #e9edf5;
    padding: 11px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-form .wide { grid-column: 1 / -1; }
.admin-form input, .admin-form select, .admin-form textarea {
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #152033;
    border-radius: 8px;
    padding: 11px;
}
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-cover-editor {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid #e7ecf5;
    border-radius: 8px;
    background: #f8faff;
}
.admin-cover-title {
    margin-bottom: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}
.admin-cover-preview {
    width: 200px;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe3ef;
    background: #eef1fa;
}
.admin-cover-editor label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}
.admin-cover-editor small {
    color: #7b849b;
    font-weight: 500;
}
.admin-box-editor {
    display: grid;
    gap: 16px;
    padding-bottom: 72px;
}
.admin-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    align-items: start;
}
.admin-form-panel {
    padding: 0;
    overflow: hidden;
}
.admin-panel-head {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #edf1f7;
    background: linear-gradient(180deg, #fbfcff, #fff);
}
.admin-panel-head h2 {
    margin: 0 0 4px;
    color: #14213d;
    font-size: 18px;
    line-height: 1.2;
}
.admin-panel-head p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
}
.admin-form-grid,
.admin-mode-config {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}
.admin-mode-config {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.admin-form-grid.one {
    grid-template-columns: 1fr;
}
.admin-box-editor label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #344054;
    font-size: 13px;
    font-weight: 850;
}
.admin-box-editor input,
.admin-box-editor select,
.admin-box-editor textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #152033;
    border-radius: 8px;
    padding: 11px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-box-editor input:focus,
.admin-box-editor select:focus,
.admin-box-editor textarea:focus {
    border-color: #8a77ff;
    box-shadow: 0 0 0 3px rgba(138, 119, 255, .12);
}
.admin-box-editor textarea {
    min-height: 86px;
    line-height: 1.55;
    resize: vertical;
}
.admin-box-preview {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 12px;
    padding: 14px;
}
.admin-box-preview .admin-cover-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
}
.admin-box-preview p {
    margin: 0;
    color: #7b849b;
    font-size: 12px;
    line-height: 1.5;
}
.admin-advanced {
    margin: 0 18px 18px;
    border: 1px solid #e6ebf4;
    border-radius: 8px;
    background: #f8faff;
}
.admin-advanced summary {
    padding: 12px 14px;
    color: #5b6475;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}
.admin-advanced textarea {
    min-height: 110px;
    border: 0;
    border-top: 1px solid #e6ebf4;
    border-radius: 0 0 8px 8px;
    background: #fff;
}
.admin-config-table {
    display: grid;
    gap: 10px;
    padding: 18px;
}
.admin-config-row {
    display: grid;
    grid-template-columns: 64px minmax(120px, .85fr) minmax(180px, 1.4fr) minmax(110px, .8fr) minmax(90px, .7fr);
    gap: 10px;
    align-items: center;
}
.admin-config-row.head {
    color: #738097;
    font-size: 12px;
    font-weight: 950;
}
.admin-config-row label {
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-config-row code {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fbff;
    color: #64748b;
    font-size: 12px;
}
.admin-subhead {
    margin: 2px 18px 0;
    color: #26364f;
    font-size: 15px;
}
.admin-check-line {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
}
.admin-check-line input,
.admin-config-row input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
}
.pool-editor {
    display: grid;
    gap: 10px;
    padding: 18px;
}
.pool-editor-head,
.pool-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) 112px 88px 88px 112px 158px 72px;
    gap: 10px;
    align-items: center;
}
.pool-editor-head {
    min-height: 34px;
    padding: 0 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}
.pool-row {
    padding: 10px;
    border: 1px solid #e6ebf4;
    border-radius: 8px;
    background: #fbfcff;
}
.pool-row select,
.pool-row input {
    min-height: 38px;
    padding: 8px 10px;
}
.pool-row .btn.mini {
    width: 100%;
    min-height: 38px;
    margin-top: 0;
}
.pool-flags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pool-flags label {
    display: inline-flex;
    grid-auto-flow: column;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #475467;
    font-size: 12px;
    font-weight: 850;
}
.pool-flags input {
    width: 14px;
    height: 14px;
    accent-color: #8a77ff;
}
.pool-row small {
    grid-column: 1 / -1;
    color: #8a94a8;
    font-size: 12px;
    font-weight: 800;
}
.admin-sticky-save {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(138, 119, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
    backdrop-filter: blur(16px);
}
.admin-sticky-save span {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

/* Modern admin console */
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% -10%, rgba(104, 211, 255, .18), transparent 28%),
        radial-gradient(circle at 84% 0%, rgba(255, 128, 191, .16), transparent 30%),
        #eef3f8;
    color: #132033;
}
.admin-shell {
    grid-template-columns: 264px minmax(0, 1fr);
}
.admin-side {
    padding: 18px 14px;
    background:
        linear-gradient(180deg, rgba(9, 21, 39, .98), rgba(13, 26, 49, .98)),
        radial-gradient(circle at 20% 0%, rgba(84, 217, 155, .22), transparent 36%);
    border-right: 1px solid rgba(255, 255, 255, .08);
}
.admin-brand-block {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    margin-bottom: 16px;
    padding: 8px;
}
.admin-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #6ee7c8, #7bb6ff 52%, #ff88c8);
    color: #fff;
    box-shadow: 0 14px 24px rgba(75, 123, 255, .22);
}
.admin-logo-mark svg,
.admin-menu svg,
.admin-kpi-card svg,
.admin-quick-card svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.admin-logo {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: 0;
}
.admin-brand-block p {
    margin: 4px 0 0;
    color: #8da2c3;
    font-size: 12px;
    font-weight: 800;
}
.admin-menu {
    gap: 5px;
}
.admin-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    color: #aebbd7;
    font-size: 14px;
    font-weight: 850;
}
.admin-menu a span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}
.admin-menu a b {
    font-weight: 850;
}
.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.admin-menu a.active span {
    color: #061426;
    background: linear-gradient(135deg, #73f0ce, #9cc1ff);
}
.admin-main {
    min-width: 0;
    padding: 26px;
}
.admin-top {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -26px -26px 22px;
    padding: 18px 26px;
    border-bottom: 1px solid rgba(203, 213, 225, .64);
    background: rgba(238, 243, 248, .84);
    backdrop-filter: blur(18px);
}
.admin-title {
    color: #111827;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: 0;
}
.admin-subtitle {
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
    font-weight: 750;
}
.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-body .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6f63ff, #ef6fb4);
    color: #fff;
    box-shadow: 0 12px 22px rgba(111, 99, 255, .2);
    font-size: 13px;
    font-weight: 900;
}
.admin-body .btn.secondary {
    border: 1px solid #dce4ef;
    background: #fff;
    color: #465167;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
.admin-body .btn.danger {
    background: linear-gradient(135deg, #ff647d, #ff8f70);
    color: #fff;
}
.admin-card {
    border: 1px solid rgba(218, 226, 237, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 44px rgba(22, 34, 51, .07);
}
.admin-card h3 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 17px;
    font-weight: 950;
}
.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.admin-card-head h2 {
    margin: 0 0 4px;
    color: #14213d;
    font-size: 18px;
    font-weight: 950;
}
.admin-card-head p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}
.admin-table-scroll {
    overflow-x: auto;
    border: 1px solid #edf1f7;
    border-radius: 8px;
}
.admin-table {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table th {
    background: #f7f9fd;
    color: #667085;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}
.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf1f7;
}
.admin-table tr:last-child td {
    border-bottom: 0;
}
.admin-table td {
    color: #253047;
}
.admin-table tr:hover td {
    background: #fbfdff;
}
.admin-form {
    gap: 16px;
}
.admin-form label,
.admin-form-panel label {
    color: #344054;
    font-size: 13px;
    font-weight: 850;
}
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-actions input,
.admin-actions select {
    min-height: 40px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #14213d;
    outline: none;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-actions input:focus,
.admin-actions select:focus {
    border-color: #7c70ff;
    box-shadow: 0 0 0 3px rgba(124, 112, 255, .12);
}
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px;
    border: 1px solid #dde6f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
    width: fit-content;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}
.admin-tabs a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}
.admin-tabs a.active {
    color: #fff;
    background: linear-gradient(135deg, #6f63ff, #ef6fb4);
    box-shadow: 0 10px 18px rgba(111, 99, 255, .18);
}
.admin-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid rgba(218, 226, 237, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 30px rgba(22, 34, 51, .06);
}
.admin-list-top h2 {
    margin: 0 0 4px;
    color: #14213d;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 950;
}
.admin-list-top p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 750;
}
.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-info-grid div {
    padding: 14px;
    border-radius: 8px;
    background: #f7f9fd;
}
.admin-info-grid b,
.admin-info-grid span {
    display: block;
}
.admin-info-grid b {
    margin-bottom: 5px;
    color: #172033;
    font-size: 14px;
}
.admin-info-grid span {
    color: #667085;
    line-height: 1.5;
    font-size: 13px;
}
.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 24px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, .9), transparent 24%),
        linear-gradient(135deg, #17223a, #273c63 46%, #6b5cf6 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(37, 59, 96, .22);
}
.admin-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #8ff0d1;
    font-size: 12px;
    font-weight: 950;
}
.admin-hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: 0;
}
.admin-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
    font-size: 14px;
    font-weight: 750;
}
.admin-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-hero .btn.secondary {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.admin-kpi-card {
    min-height: 132px;
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(218, 226, 237, .92);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(22, 34, 51, .07);
}
.admin-kpi-card::after {
    content: "";
    position: absolute;
    inset: auto -24px -34px auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    opacity: .2;
    background: currentColor;
}
.admin-kpi-card > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #f1f4ff;
}
.admin-kpi-card em {
    display: block;
    color: #667085;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
}
.admin-kpi-card b {
    display: block;
    margin-top: 6px;
    color: #132033;
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
}
.admin-kpi-card small {
    display: block;
    margin-top: 8px;
    color: #7b849b;
    font-weight: 800;
}
.accent-purple { color: #7767ff; }
.accent-blue { color: #2585d8; }
.accent-pink { color: #e7529c; }
.accent-gold { color: #c78a19; }
.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.admin-quick-card {
    min-height: 112px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(218, 226, 237, .92);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 26px rgba(22, 34, 51, .06);
}
.admin-quick-card:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 112, 255, .32);
    box-shadow: 0 18px 34px rgba(22, 34, 51, .1);
}
.admin-quick-card span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #6f63ff;
    background: #f1f3ff;
}
.admin-quick-card b {
    color: #172033;
    font-size: 14px;
}
.admin-quick-card small {
    color: #667085;
    line-height: 1.45;
    font-size: 12px;
    font-weight: 800;
}
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
    gap: 16px;
}
.admin-stock-list {
    display: grid;
    gap: 10px;
}
.admin-stock-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fbfdff;
}
.admin-stock-list strong {
    color: #172033;
}
.admin-stock-list span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}
.admin-product-cell {
    min-width: 220px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.admin-product-cell strong,
.admin-product-cell small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-product-cell small {
    margin-top: 4px;
    color: #7b849b;
    font-weight: 800;
}
.admin-banner-thumb {
    width: 142px;
    height: 72px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #eef1fa;
}
.admin-inline-edit {
    min-width: 420px;
    display: grid;
    grid-template-columns: 1.3fr 92px 82px 92px auto;
    gap: 8px;
    align-items: center;
}
.admin-inline-edit-wide {
    min-width: 680px;
    grid-template-columns: 1.2fr 90px 1.2fr 78px 88px 1.4fr 160px auto;
}
.admin-inline-edit-ship {
    min-width: 540px;
    grid-template-columns: 110px 150px 150px auto;
}
.admin-inline-edit input,
.admin-inline-edit select,
.admin-inline-edit textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #14213d;
    outline: none;
    font-size: 13px;
}
.admin-inline-edit textarea {
    min-height: 38px;
    max-height: 78px;
    resize: vertical;
}
.admin-inline-edit input:focus,
.admin-inline-edit select:focus,
.admin-inline-edit textarea:focus {
    border-color: #7c70ff;
    box-shadow: 0 0 0 3px rgba(124, 112, 255, .12);
}
.admin-inline-edit .btn {
    min-height: 38px;
}
.admin-advanced-config,
.admin-inline-advanced {
    border: 1px dashed #c9d7ea;
    border-radius: 14px;
    background: #f8fbff;
    padding: 12px 14px;
}
.admin-advanced-config summary,
.admin-inline-advanced summary {
    cursor: pointer;
    color: #52657f;
    font-weight: 800;
}
.admin-advanced-config label,
.admin-inline-advanced textarea {
    display: block;
    margin-top: 12px;
}
.admin-inline-advanced {
    grid-column: 1 / -1;
}
.admin-inline-advanced textarea {
    width: 100%;
    min-height: 88px;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #5f55dc;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.after-sale-tabs a span {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    color: #665bea;
    background: #eeecff;
    border-radius: 9px;
    font-size: 10px;
}

.after-sale-tabs a.active span {
    color: #fff;
    background: rgba(255, 255, 255, .22);
}

.after-sale-admin-table td {
    min-width: 130px;
}

.after-sale-admin-table td:nth-child(2),
.after-sale-admin-table td:last-child {
    min-width: 260px;
}

.admin-cell-note {
    max-width: 330px;
    margin: 8px 0 0;
    color: #7c879d;
    font-size: 12px;
    line-height: 1.55;
}

.after-sale-admin-actions .admin-inline-edit {
    min-width: 250px;
    grid-template-columns: 1fr 1fr;
}

.after-sale-admin-actions .admin-inline-edit .btn,
.after-sale-admin-actions .admin-inline-edit input[name="admin_remark"] {
    grid-column: 1 / -1;
}

.admin-tracking-editor {
    margin-top: 9px;
}

.admin-tracking-editor summary {
    color: #6559de;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.admin-tracking-form {
    min-width: 470px;
    margin-top: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tracking-form .btn {
    grid-column: 1 / -1;
}
.status-paid,
.status-drawn,
.status-shipped {
    background: #eafbf4;
    color: #16815b;
}
.status-pending {
    background: #fff7df;
    color: #9a6a00;
}
.status-failed,
.status-cancelled {
    background: #fff0f3;
    color: #bc405b;
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, #d4c5ff, #edf1ff 46%, #f7f8fc);
}
.login-card {
    width: min(92vw, 380px);
    padding: 24px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 8px;
    color: #25283e;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #8a93a8;
    font-size: 12px;
    font-weight: 900;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(143, 155, 179, .25);
}
.wechat-login-btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #18c76f, #05a85b);
    box-shadow: 0 14px 28px rgba(5, 168, 91, .22);
    font-weight: 950;
}
.wechat-login-btn span {
    width: 24px;
    height: 24px;
    display: inline-flex;
}
.wechat-login-btn svg {
    width: 100%;
    height: 100%;
}

/* Mature H5 app shell and home experience */
.app-shell {
    width: min(100%, 430px);
    background:
        radial-gradient(circle at 14% 0%, rgba(255, 130, 203, .26), transparent 28%),
        radial-gradient(circle at 86% 3%, rgba(85, 205, 255, .28), transparent 28%),
        linear-gradient(180deg, #f2efff 0%, #f7f9ff 38%, #f1f4fb 100%);
}
.app-main {
    padding: 12px 10px 90px;
}
.topbar {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 12px 14px 6px;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-icon-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .68);
    color: #7462ff;
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: 0 8px 18px rgba(118, 105, 199, .12);
}
.top-icon-btn svg,
.home-member-wallet svg,
.notice-ticker svg,
.home-feature-row svg,
.app-box-meta svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bottom-nav {
    width: min(100%, 430px);
}
.home-member {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 2px 0 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .64);
    border: 1px solid rgba(255, 255, 255, .72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.home-member span {
    color: #7d84a0;
    font-size: 12px;
    font-weight: 900;
}
.home-member h1 {
    margin: 3px 0;
    color: #25283e;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 950;
}
.home-member p {
    margin: 0;
    color: #737b96;
    font-size: 12px;
    font-weight: 800;
}
.home-member-wallet {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #eef7ff);
    color: #7462ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    font-size: 11px;
    font-weight: 900;
}
.home-banners {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    gap: 10px;
    margin-bottom: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.home-banners::-webkit-scrollbar { display: none; }
.home-banner {
    min-height: 142px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    scroll-snap-align: start;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .82), transparent 23%),
        linear-gradient(135deg, #9b7cff, #71cfff 50%, #ff90c8);
    box-shadow: var(--shadow);
}
.home-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, .28), transparent 44%);
    pointer-events: none;
}
.home-banner img {
    grid-column: 2;
    width: 126px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    filter: drop-shadow(0 14px 20px rgba(52, 47, 112, .18));
}
.home-banner div {
    grid-row: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.home-banner span {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .26);
    font-size: 12px;
    font-weight: 900;
}
.home-banner h2 {
    margin: 10px 0 6px;
    font-size: 27px;
    line-height: 1.08;
    font-weight: 950;
    text-shadow: 0 4px 16px rgba(65, 45, 133, .24);
}
.home-banner p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}
.notice-ticker {
    min-height: 38px;
    display: grid;
    grid-template-columns: 28px auto minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    margin: 0 0 12px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .8);
    color: #454b68;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}
.notice-ticker span {
    width: 28px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #ff7aae;
}
.notice-ticker b {
    color: #7462ff;
    font-size: 12px;
    font-weight: 950;
}
.notice-ticker em {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #6f7791;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}
.play-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
    margin: 0 0 14px;
    padding: 12px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .66);
}
.play-link {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    color: #30344e;
}
.play-link strong {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
}
.home-feature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 16px;
}
.home-feature-row a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 10px 22px rgba(102, 111, 180, .1);
}
.home-feature-row span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffe6f4, #e7f7ff);
    color: #7462ff;
}
.home-feature-row b {
    min-width: 0;
    color: #2b2f49;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 950;
}
.home-feature-row em {
    min-width: 0;
    color: #858da6;
    font-style: normal;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}
.app-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 17px 0 10px;
}
.app-section-head h2 {
    margin: 0;
    color: #25283e;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 950;
}
.app-section-head a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #7462ff;
    font-size: 12px;
    font-weight: 900;
}
.app-box-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.app-box-card {
    min-width: 0;
    display: grid;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 28px rgba(92, 104, 166, .12);
}
.app-box-cover {
    position: relative;
    aspect-ratio: 1 / .86;
    background: #edf1fb;
    overflow: hidden;
}
.app-box-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.app-box-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    min-height: 21px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #7462ff;
    font-size: 11px;
    font-weight: 950;
}
.app-box-info {
    display: grid;
    gap: 5px;
    padding: 9px;
}
.app-box-tags {
    display: flex;
    gap: 5px;
    min-height: 20px;
    overflow: hidden;
}
.app-box-tags em {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #f0edff;
    color: #7462ff;
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}
.app-box-info h3 {
    height: 34px;
    margin: 0;
    overflow: hidden;
    color: #25283e;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 950;
}
.app-box-info p {
    height: 17px;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #858da6;
    font-size: 12px;
    font-weight: 800;
}
.app-box-meta {
    display: flex;
    gap: 8px;
    min-width: 0;
    color: #8b93aa;
    font-size: 11px;
    font-weight: 850;
}
.app-box-meta span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.app-box-meta svg {
    width: 13px;
    height: 13px;
}
.app-box-buy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}
.app-box-buy strong {
    min-width: 0;
    color: #7864ff;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 950;
}
.app-box-buy small {
    color: #9aa2b7;
    font-size: 10px;
    font-weight: 800;
}
.app-box-buy i {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8abf, #8a77ff);
    color: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 8px 16px rgba(137, 119, 255, .18);
}
.activity-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 38%;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.activity-strip::-webkit-scrollbar { display: none; }
.activity-strip a {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 24px rgba(102, 111, 180, .11);
}
.activity-strip img {
    width: 100%;
    aspect-ratio: 1 / .82;
    object-fit: cover;
    border-radius: 8px;
    background: #edf1fb;
}
.activity-strip span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #2a2e47;
    font-size: 12px;
    font-weight: 950;
}
.activity-strip b {
    color: #7864ff;
    font-size: 12px;
    line-height: 1.1;
}
.box-list-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 112px;
    padding: 16px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, .86), transparent 28%),
        linear-gradient(135deg, #9b7cff, #77d6ff 52%, #ff9acc);
    color: #fff;
    box-shadow: var(--shadow);
}
.box-list-hero span {
    font-size: 12px;
    font-weight: 900;
    opacity: .9;
}
.box-list-hero h1 {
    margin: 5px 0;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 950;
}
.box-list-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    font-weight: 800;
}
.mode-tabs {
    margin-top: 12px;
}
.app-box-grid.list-page {
    margin-top: 12px;
}
.bag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.bag-card {
    display: block;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .72);
}
.bag-card::before {
    inset: 0 0 auto;
    width: auto;
    height: 3px;
}
.bag-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / .92;
    display: block;
    margin-bottom: 8px;
}
.bag-title {
    min-height: 34px;
    padding-right: 22px;
    font-size: 14px;
}
.bag-meta {
    flex-wrap: wrap;
}
.bag-value {
    min-height: 32px;
    font-size: 11px;
    line-height: 1.4;
}
.bag-actions {
    grid-template-columns: 1fr 1fr;
}
.bag-actions select {
    grid-column: 1 / -1;
}
.wallet-hero {
    min-height: 138px;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, .9), transparent 28%),
        linear-gradient(135deg, rgba(148, 124, 255, .88), rgba(107, 206, 255, .58) 50%, rgba(255, 148, 204, .72));
    color: #fff;
}
.wallet-hero .muted {
    color: rgba(255, 255, 255, .82);
}
.wallet-hero h2 {
    color: #fff;
}
.asset-box {
    box-shadow: 0 10px 22px rgba(102, 111, 180, .1);
}
.app-grid {
    background: rgba(255, 255, 255, .9);
}
.result-recycle {
    margin-top: 8px;
}
.result-recycle-link {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: #7462ff;
    border: 1px solid rgba(132, 119, 255, .22);
    font-size: 12px;
    font-weight: 900;
}
.my-app-hero {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 96px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 255, 255, .9), transparent 30%),
        linear-gradient(135deg, rgba(143, 119, 255, .88), rgba(103, 207, 255, .62) 50%, rgba(255, 147, 204, .74));
    color: #fff;
    box-shadow: var(--shadow);
}
.my-app-hero > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .22);
}
.my-app-hero svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.my-app-hero h1 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 950;
}
.my-app-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 800;
}
.my-app-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.my-app-stat {
    min-height: 72px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 22px rgba(102, 111, 180, .1);
}
.my-app-stat b {
    color: #282b43;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 950;
}
.my-app-stat span {
    color: #7d859e;
    font-size: 12px;
    font-weight: 850;
}
.coupon-list {
    display: grid;
    gap: 10px;
}
.coupon-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 24px rgba(102, 111, 180, .1);
}
.coupon-card > div {
    min-height: 66px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffecf6, #eef7ff);
}
.coupon-card b {
    color: #ff62a6;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 950;
}
.coupon-card span,
.coupon-card p {
    margin: 0;
    color: #7e879d;
    font-size: 11px;
    font-weight: 800;
}
.coupon-card h3 {
    margin: 0 0 5px;
    color: #282b43;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 950;
}
.coupon-card.is-owned > div {
    background: linear-gradient(135deg, #f0edff, #fff2fa);
}
.invite-card {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}
.invite-card span {
    color: #7d859e;
    font-size: 12px;
    font-weight: 900;
}
.invite-card b {
    color: #7462ff;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: 1px;
    font-weight: 950;
}
.invite-card p {
    margin: 0;
    color: #6f7791;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
}
.my-app-form {
    padding: 14px;
}
.support-card {
    padding: 14px;
    margin-bottom: 12px;
}
.support-card h3 {
    margin: 0 0 8px;
    color: #282b43;
    font-size: 17px;
    font-weight: 950;
}
.support-card p {
    margin: 0;
    color: #6f7791;
    line-height: 1.65;
    font-size: 13px;
}
.leader-hero {
    min-height: 150px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 12px;
    align-items: end;
    margin: 4px 0 12px;
    padding: 18px 16px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(36, 30, 72, .96), rgba(100, 91, 255, .88) 54%, rgba(255, 126, 188, .86)),
        linear-gradient(45deg, rgba(255, 255, 255, .16) 0 12%, transparent 12% 24%, rgba(255, 255, 255, .09) 24% 36%, transparent 36%);
    box-shadow: var(--shadow);
}
.leader-hero::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 10px;
    width: 118px;
    height: 118px;
    opacity: .14;
    background: url("/assets/images/defaults/box.svg") center / contain no-repeat;
    pointer-events: none;
}
.leader-hero-copy,
.leader-champion {
    position: relative;
    z-index: 1;
}
.leader-hero-copy > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .92);
    font-size: 11px;
    font-weight: 950;
}
.leader-hero svg,
.leader-tabs svg,
.leader-board-icon svg,
.rank-no svg,
.leader-empty svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.leader-hero h1 {
    margin: 12px 0 6px;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 950;
}
.leader-hero p {
    margin: 0;
    max-width: 190px;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
}
.leader-champion {
    display: grid;
    gap: 5px;
    justify-items: end;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(12px);
}
.leader-champion em {
    color: #ffe985;
    font-style: normal;
    font-size: 11px;
    font-weight: 950;
}
.leader-champion b {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
}
.leader-champion strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 950;
}
.leader-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 14px;
}
.leader-tabs a {
    min-width: 0;
    min-height: 40px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    color: #6f61ee;
    box-shadow: 0 10px 20px rgba(102, 111, 180, .1);
    font-size: 11px;
    font-weight: 900;
}
.leader-tabs span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leader-board {
    margin-top: 14px;
}
.leader-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.leader-board-head > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.leader-board-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
}
.tone-pink { background: linear-gradient(135deg, #ff76b7, #ff9d79); }
.tone-blue { background: linear-gradient(135deg, #60c5ff, #6e7dff); }
.tone-gold { background: linear-gradient(135deg, #ffd45f, #ff9c6b); }
.tone-purple { background: linear-gradient(135deg, #9278ff, #e87bd1); }
.leader-board h2 {
    margin: 0 0 3px;
    color: #25283e;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
}
.leader-board p {
    margin: 0;
    color: #858da6;
    font-size: 12px;
    font-weight: 850;
}
.leader-board-head small {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #7462ff;
    font-size: 11px;
    font-weight: 950;
}
.leader-rank-list {
    display: grid;
    gap: 9px;
}
.leader-rank-row {
    min-height: 68px;
    display: grid;
    grid-template-columns: 34px 42px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 12px 26px rgba(102, 111, 180, .1);
}
.leader-rank-row.rank-1 {
    background: linear-gradient(135deg, rgba(255, 250, 231, .95), rgba(255, 239, 249, .94));
    border-color: rgba(255, 209, 93, .42);
}
.leader-rank-row.rank-2 {
    background: linear-gradient(135deg, rgba(241, 247, 255, .95), rgba(246, 242, 255, .94));
}
.leader-rank-row.rank-3 {
    background: linear-gradient(135deg, rgba(255, 246, 235, .95), rgba(239, 249, 255, .94));
}
.rank-no {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f2ff;
    color: #7462ff;
    font-size: 12px;
    font-weight: 950;
}
.rank-1 .rank-no {
    color: #9a6400;
    background: #ffe99b;
}
.rank-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #8a77ff, #ff80bf);
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(138, 119, 255, .18);
}
.rank-user {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.rank-user b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #25283e;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 950;
}
.rank-user span {
    color: #858da6;
    font-size: 11px;
    font-weight: 850;
}
.leader-rank-row > strong {
    color: #2f3150;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 950;
    white-space: nowrap;
}
.leader-empty {
    min-height: 96px;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 1px dashed rgba(132, 139, 174, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .68);
    color: #858da6;
    font-weight: 900;
}
.leader-empty span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #7462ff;
    background: rgba(255, 255, 255, .86);
}

@media (max-width: 820px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: relative; height: auto; }
    .admin-brand-block { margin-bottom: 8px; }
    .admin-menu { grid-template-columns: repeat(2, 1fr); }
    .admin-menu a { min-height: 38px; }
    .admin-top {
        position: relative;
        margin: -14px -14px 16px;
        padding: 14px;
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-title { font-size: 22px; }
    .admin-top-actions { width: 100%; }
    .admin-form, .stat-grid { grid-template-columns: 1fr; }
    .admin-main { padding: 14px; }
    .admin-editor-layout,
    .admin-form-grid,
    .admin-mode-config,
    .admin-kpi-grid,
    .admin-dashboard-grid,
    .admin-info-grid {
        grid-template-columns: 1fr;
    }
    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
    .admin-hero h1 { font-size: 24px; }
    .admin-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-tabs {
        width: 100%;
        overflow-x: auto;
    }
    .admin-tabs a {
        white-space: nowrap;
    }
    .admin-list-top {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-inline-edit,
    .admin-inline-edit-wide,
    .admin-inline-edit-ship {
        min-width: 280px;
        grid-template-columns: 1fr;
    }
    .admin-config-row,
    .admin-config-row.head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .admin-config-row.head {
        display: none;
    }
    .admin-config-row {
        padding: 12px;
        border: 1px solid #e6ebf4;
        border-radius: 12px;
        background: #fbfdff;
    }
    .admin-config-row label {
        justify-content: flex-start;
    }
    .admin-banner-thumb {
        width: 108px;
        height: 58px;
    }
    .admin-box-preview {
        position: relative;
        top: auto;
    }
    .pool-editor-head {
        display: none;
    }
    .pool-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pool-row select:first-of-type,
    .pool-flags,
    .pool-row small {
        grid-column: 1 / -1;
    }
    .admin-sticky-save {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 27px; }
    .quick-icon { width: 44px; height: 44px; }
    .number-wall { grid-template-columns: repeat(4, 1fr); }
    .app-grid { gap: 14px 4px; }
}
