:root {
    --ink: #2a1116;
    --muted: #826166;
    --line: #f2d8dc;
    --soft: #fff6f2;
    --card: #fffaf7;
    --accent: #F62440;
    --accent-2: #d71631;
    --accent-3: #ffc3cc;
    --on-accent: #fff9f7;
    --shadow: 0 18px 45px rgba(118, 29, 43, .14);
    --tight-shadow: 0 10px 28px rgba(246, 36, 64, .17);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background: #fff1ed;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0, rgba(246, 36, 64, .13), transparent 34rem),
        linear-gradient(180deg, #fffaf6 0, #fff0ed 100%);
    color: var(--ink);
    font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
}

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

button {
    font: inherit;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
}

.app-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 14px 102px;
    background:
        linear-gradient(180deg, rgba(255, 250, 247, .95), rgba(255, 244, 240, .97)),
        radial-gradient(circle at 8% 14%, rgba(246, 36, 64, .08), transparent 12rem);
    box-shadow: 0 0 0 1px rgba(246, 215, 219, .82), 0 30px 90px rgba(112, 36, 48, .18);
    position: relative;
    overflow: hidden;
}

.app-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(246, 36, 64, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 36, 64, .035) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0, transparent 38%);
    pointer-events: none;
}

.topbar,
.marquee-card,
.hero-card,
.quick-grid,
.feature-grid,
.market-widget,
.bottom-nav {
    position: relative;
    z-index: 1;
}

.topbar {
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(242, 216, 220, .95);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 250, 247, .9), rgba(255, 241, 237, .72)),
        radial-gradient(circle at 12% 18%, rgba(246, 36, 64, .14), transparent 8rem);
    box-shadow: 0 14px 32px rgba(118, 29, 43, .08);
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    color: var(--on-accent);
    font-size: 25px;
    line-height: 1;
    font-weight: 950;
    box-shadow: var(--tight-shadow);
    transform: rotate(-7deg);
}

.brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand-name {
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.brand-copy small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.language-dropdown {
    position: relative;
    z-index: 20;
}

.language-dropdown summary {
    width: 112px;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px 4px 4px;
    border: 1px solid rgba(242, 216, 220, .95);
    border-radius: 999px;
    background: rgba(255, 250, 247, .86);
    color: var(--muted);
    cursor: pointer;
    list-style: none;
    box-shadow: 0 8px 18px rgba(118, 29, 43, .06);
}

.language-dropdown summary::-webkit-details-marker {
    display: none;
}

.language-dropdown summary b,
.language-menu a b {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-accent);
    font-size: 10px;
    font-weight: 950;
}

.language-dropdown summary span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 950;
}

.language-dropdown summary::after {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .75;
}

.language-dropdown[open] summary {
    border-color: rgba(246, 36, 64, .35);
    background: #fff4f1;
    color: var(--ink);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 188px;
    max-height: 292px;
    overflow-y: auto;
    display: grid;
    gap: 5px;
    padding: 8px;
    border: 1px solid rgba(242, 216, 220, .95);
    border-radius: 16px;
    background: rgba(255, 250, 247, .98);
    box-shadow: 0 22px 46px rgba(118, 29, 43, .18);
    backdrop-filter: blur(18px);
}

.language-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 5px 8px 5px 5px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.language-menu a.active,
.language-menu a:hover {
    background: #fff0f2;
    color: var(--ink);
}

.language-menu a.active b {
    background: var(--accent);
}

.marquee-card {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 9px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, #2a1116, #3a141b 60%, #60121f),
        var(--ink);
    color: var(--on-accent);
    box-shadow: 0 18px 32px rgba(42, 17, 22, .14);
    overflow: hidden;
    margin-bottom: 18px;
}

.marquee-label {
    flex: 0 0 auto;
    height: 34px;
    min-width: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .06em;
}

.marquee-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 28px;
    animation: marquee-slide 22s linear infinite;
}

.marquee-track span {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 850;
    color: #fff3f1;
    position: relative;
}

.marquee-track span::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes marquee-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.hero-card {
    min-height: 318px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff0ed;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 250, 247, .92);
}

.hero-card img {
    width: 100%;
    height: 236px;
    object-fit: cover;
    display: block;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(255, 248, 245, .92) 78%, #fff8f4 100%);
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    top: 48px;
    right: 16px;
    z-index: 2;
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(255, 250, 247, .88);
    color: var(--ink);
    box-shadow: 0 12px 26px rgba(118, 29, 43, .13);
    border: 1px solid rgba(255, 250, 247, .92);
}

.hero-copy span,
.hero-text p,
.feature-card small {
    color: var(--muted);
}

.hero-copy span {
    display: block;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-copy strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    color: var(--accent);
}

.hero-text {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
}

.hero-text h1 {
    max-width: 310px;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.hero-text p {
    max-width: 340px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.quick-action {
    min-width: 0;
    min-height: 78px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    padding: 9px 5px;
    border: 1px solid rgba(242, 216, 220, .92);
    border-radius: 16px;
    background: rgba(255, 250, 247, .72);
    box-shadow: 0 12px 24px rgba(118, 29, 43, .07);
    color: var(--ink);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.quick-action:nth-child(even) {
    background: rgba(255, 240, 237, .82);
}

.quick-action > span:last-child {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 240, 237, .92);
    color: var(--on-accent);
    box-shadow: inset 0 0 0 1px rgba(242, 216, 220, .85), 0 9px 16px rgba(118, 29, 43, .1);
}

.quick-action:nth-child(odd) .quick-icon {
    background: var(--accent);
}

.quick-action:nth-child(even) .quick-icon {
    color: var(--ink);
}

.quick-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.feature-card {
    min-height: 162px;
    border-radius: 18px;
    padding: 15px;
    background: rgba(255, 250, 247, .82);
    border: 1px solid rgba(242, 216, 220, .95);
    box-shadow: 0 14px 30px rgba(118, 29, 43, .08);
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 11px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -50px;
    bottom: -48px;
    border-radius: 42px;
    background: linear-gradient(135deg, rgba(246, 36, 64, .15), rgba(246, 36, 64, 0));
    transform: rotate(20deg);
}

.feature-card.wide {
    grid-column: span 2;
    min-height: 154px;
    grid-template-columns: minmax(0, 1fr) 112px;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "index visual"
        "content visual"
        "link visual";
    align-items: stretch;
    column-gap: 14px;
    padding: 18px;
    background:
        radial-gradient(circle at 85% 32%, rgba(255, 255, 255, .2), transparent 7rem),
        linear-gradient(135deg, #2a1116, #4a1320 58%, #F62440);
    color: var(--on-accent);
    border-color: rgba(246, 36, 64, .24);
}

.feature-card.wide::before {
    background: rgba(255, 250, 247, .12);
}

.feature-index {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(246, 36, 64, .1);
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

.feature-card.wide .feature-index {
    grid-area: index;
    background: rgba(255, 250, 247, .17);
    color: var(--on-accent);
}

.feature-content {
    display: grid;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.feature-card strong {
    font-size: 18px;
    line-height: 1.08;
    letter-spacing: 0;
}

.feature-card small {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 750;
}

.feature-card.wide small {
    color: #ffd8dd;
}

.feature-card.wide .feature-content {
    grid-area: content;
    align-self: center;
    max-width: 190px;
}

.feature-card.wide .feature-content strong {
    font-size: 20px;
}

.feature-visual {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 76px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(255, 240, 237, .84);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(242, 216, 220, .85), 0 18px 28px rgba(246, 36, 64, .13);
    z-index: 1;
}

.feature-card.wide .feature-visual {
    position: relative;
    inset: auto;
    grid-area: visual;
    justify-self: end;
    align-self: center;
    width: 104px;
    height: 94px;
    border-radius: 28px;
    background: rgba(255, 250, 247, .16);
    color: var(--on-accent);
    box-shadow: inset 0 0 0 1px rgba(255, 250, 247, .2);
}

.feature-visual span {
    font-size: 20px;
    font-weight: 950;
    z-index: 1;
}

.feature-visual i {
    position: absolute;
    bottom: 11px;
    width: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: .22;
}

.feature-visual i:nth-child(2) {
    left: 17px;
    height: 18px;
}

.feature-visual i:nth-child(3) {
    left: 32px;
    height: 30px;
}

.feature-visual i:nth-child(4) {
    left: 47px;
    height: 42px;
}

.feature-link {
    align-self: end;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-accent);
    font-size: 11px;
    font-weight: 950;
    position: relative;
    z-index: 2;
}

.feature-card.wide .feature-link {
    grid-area: link;
    align-self: end;
    background: var(--on-accent);
    color: var(--accent);
}

.market-widget {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    color: var(--on-accent);
    background:
        radial-gradient(circle at 92% 8%, rgba(246, 36, 64, .42), transparent 8rem),
        linear-gradient(145deg, #241014 0%, #3b1119 58%, #56101c 100%);
    border: 1px solid rgba(246, 36, 64, .24);
    box-shadow: 0 22px 40px rgba(42, 17, 22, .18);
    overflow: hidden;
}

.market-widget::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -76px;
    bottom: -88px;
    border: 22px solid rgba(255, 250, 247, .04);
    border-radius: 50%;
}

.market-header,
.market-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.market-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #ff9fac;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .13em;
}

.market-header h2 {
    font-size: 20px;
    line-height: 1.1;
}

.market-status {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 250, 247, .12);
    border-radius: 999px;
    background: rgba(255, 250, 247, .07);
    color: #ffd8dd;
    font-size: 10px;
    font-weight: 900;
}

.market-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(246, 36, 64, .16);
    animation: market-pulse 1.7s ease-out infinite;
}

@keyframes market-pulse {
    50% {
        box-shadow: 0 0 0 7px rgba(246, 36, 64, 0);
    }
}

.market-list {
    display: grid;
    margin-top: 14px;
    border-top: 1px solid rgba(255, 250, 247, .1);
    position: relative;
    z-index: 1;
}

.market-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: 38px minmax(78px, 1fr) 76px minmax(82px, auto);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 250, 247, .09);
}

.market-coin {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.market-coin.bitcoin {
    background: linear-gradient(145deg, #F62440, #bd1028);
}

.market-coin.ethereum {
    color: var(--ink);
    background: linear-gradient(145deg, #fff7f3, #ffc5cd);
}

.market-coin.solana {
    background: linear-gradient(145deg, #7b2636, #F62440);
}

.market-name,
.market-quote {
    display: grid;
    gap: 3px;
}

.market-name strong,
.market-quote strong {
    font-size: 13px;
    line-height: 1;
}

.market-name small {
    color: #cfaeb4;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
}

.market-sparkline {
    width: 76px;
    height: 30px;
    overflow: visible;
}

.market-sparkline path {
    fill: none;
    stroke: #ff5f75;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 6px rgba(246, 36, 64, .34));
}

.market-quote {
    justify-items: end;
    text-align: right;
}

.market-quote strong {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.market-quote small {
    width: fit-content;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 250, 247, .08);
    color: #d9bdc2;
    font-size: 9px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.market-quote small.up {
    background: rgba(246, 36, 64, .18);
    color: #ff9fac;
}

.market-quote small.down {
    background: rgba(255, 250, 247, .11);
    color: #fff4f1;
}

.market-footer {
    padding-top: 12px;
    color: #b9949b;
    font-size: 9px;
    font-weight: 800;
}

.market-footer time {
    color: #ffd8dd;
    font-variant-numeric: tabular-nums;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: min(100%, 430px);
    transform: translateX(-50%);
    min-height: 80px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    background: rgba(255, 250, 247, .91);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 21px 21px 0 0;
    box-shadow: 0 -16px 34px rgba(118, 29, 43, .12);
    backdrop-filter: blur(18px);
}

.nav-item {
    display: grid;
    place-items: center;
    gap: 5px;
    color: #b1979b;
    font-size: 12px;
    font-weight: 800;
    transition: transform .18s ease;
}

.nav-item svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active svg {
    fill: currentColor;
    stroke: currentColor;
}

.nav-item.active svg path + path {
    fill: var(--on-accent);
    stroke: var(--on-accent);
}

.nav-item.quant svg {
    width: 29px;
    height: 29px;
}

.pressed {
    transform: scale(.96);
}

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

    .brand-name {
        font-size: 21px;
    }

    .brand-copy small {
        font-size: 10px;
    }

    .language-dropdown summary {
        width: 60px;
        padding-right: 7px;
    }

    .language-dropdown summary span {
        display: none;
    }

    .language-dropdown summary::after {
        margin-left: auto;
    }

    .quick-grid {
        gap: 6px;
    }

    .quick-action {
        min-height: 72px;
        font-size: 10px;
    }

    .quick-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .quick-icon svg {
        width: 21px;
        height: 21px;
    }

    .feature-card {
        min-height: 152px;
        padding: 13px;
    }

    .feature-card.wide {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    .feature-card.wide .feature-visual {
        width: 86px;
        height: 82px;
    }

    .market-widget {
        padding: 15px 13px;
    }

    .market-row {
        grid-template-columns: 34px minmax(70px, 1fr) 58px minmax(75px, auto);
        gap: 7px;
    }

    .market-sparkline {
        width: 58px;
    }
}

.app-shell[data-view="login"],
.app-shell[data-view="register"] {
    padding-bottom: 24px;
    display: grid;
    align-items: center;
}

.flash-message {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 28px 1fr 24px;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 14px;
    font-size: 12px;
    box-shadow: 0 12px 28px rgba(42, 17, 22, .12);
}

.flash-message > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 950;
}

.flash-message button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

.flash-message.success {
    border: 1px solid rgba(41, 150, 102, .18);
    background: #effaf4;
    color: #176b49;
}

.flash-message.success > span {
    background: #d5f2e2;
}

.flash-message.error {
    border: 1px solid rgba(246, 36, 64, .2);
    background: #fff0f1;
    color: #a20e24;
}

.flash-message.error > span {
    background: #ffd9df;
}

.auth-screen {
    position: relative;
    z-index: 1;
    width: 100%;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.auth-brand strong {
    font-size: 25px;
    line-height: 1;
}

.auth-brand small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.auth-panel {
    padding: 24px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 250, 247, .9);
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-orbit {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(246, 36, 64, .15);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 36, 64, .15), rgba(246, 36, 64, .03) 52%, transparent 53%);
    box-shadow: 0 18px 32px rgba(246, 36, 64, .13);
}

.auth-orbit span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 25px;
    font-weight: 950;
    transform: rotate(-7deg);
}

.auth-panel h1 {
    font-size: 25px;
    line-height: 1.05;
}

.auth-panel > p {
    margin: 8px auto 20px;
    max-width: 280px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}

.app-form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.app-form label,
.amount-field {
    display: grid;
    gap: 6px;
}

.app-form label > span,
.amount-field > span:first-child {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em;
}

.app-form input,
.app-form select,
.app-form textarea,
.amount-field input,
.admin-operation input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: rgba(255, 255, 255, .75);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.app-form input,
.app-form select,
.amount-field input,
.admin-operation input {
    height: 44px;
    padding: 0 12px;
}

.app-form textarea {
    min-height: 100px;
    padding: 12px;
    resize: vertical;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus,
.amount-field input:focus,
.admin-operation input:focus {
    border-color: rgba(246, 36, 64, .6);
    box-shadow: 0 0 0 3px rgba(246, 36, 64, .09);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.primary-button,
.secondary-button,
.approve-button,
.reject-button,
.logout-button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.primary-button {
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent), #e21634);
    box-shadow: 0 12px 22px rgba(246, 36, 64, .2);
}

.secondary-button {
    color: var(--on-accent);
    background: var(--ink);
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.auth-switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 950;
}

.auth-languages {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
}

.auth-languages a {
    min-width: 32px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
}

.auth-languages a.active {
    background: var(--ink);
    color: var(--on-accent);
}

.auth-language-dropdown summary {
    width: 106px;
    height: 33px;
}

.auth-language-dropdown .language-menu {
    width: 184px;
}

.page-intro {
    position: relative;
    z-index: 1;
    padding: 8px 4px 17px;
}

.page-intro h1 {
    font-size: 25px;
    line-height: 1.04;
}

.page-intro p {
    margin-top: 7px;
    max-width: 350px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.content-panel {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 250, 247, .84);
    box-shadow: 0 12px 28px rgba(118, 29, 43, .07);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 16px;
    line-height: 1.15;
}

.section-heading > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.team-hero,
.balance-banner,
.wallet-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: var(--on-accent);
    background:
        radial-gradient(circle at 88% 25%, rgba(255, 255, 255, .18), transparent 8rem),
        linear-gradient(135deg, #2a1116, #6f1727 68%, var(--accent));
    box-shadow: 0 18px 34px rgba(42, 17, 22, .17);
}

.team-hero {
    min-height: 144px;
    display: grid;
    grid-template-columns: 1fr 145px;
    align-items: center;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 14px;
}

.team-hero > div:first-child {
    display: grid;
    gap: 5px;
}

.team-hero span,
.balance-banner span,
.wallet-hero span {
    color: #ffd4da;
    font-size: 10px;
    font-weight: 850;
}

.team-hero strong {
    font-size: 31px;
}

.team-hero small {
    color: #ffd4da;
    font-size: 10px;
    font-weight: 750;
}

.team-hero-visual {
    height: 100px;
    position: relative;
}

.team-hero-visual i {
    position: absolute;
    bottom: 10px;
    width: 24px;
    border-radius: 9px 9px 3px 3px;
    background: linear-gradient(180deg, #ff8595, var(--accent));
    box-shadow: 0 12px 20px rgba(0, 0, 0, .12);
}

.team-hero-visual i:nth-child(1) {
    right: 75px;
    height: 36px;
}

.team-hero-visual i:nth-child(2) {
    right: 45px;
    height: 60px;
}

.team-hero-visual i:nth-child(3) {
    right: 15px;
    height: 82px;
}

.team-hero-visual b {
    position: absolute;
    left: 5px;
    top: 20px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    font-size: 26px;
}

.copy-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.copy-field input {
    min-width: 0;
    height: 43px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 750;
}

.copy-field button {
    min-width: 68px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 10px;
    font-weight: 950;
    cursor: pointer;
}

.telegram-share {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
}

.telegram-share span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #ffe5e8;
}

.level-table {
    display: grid;
}

.level-row {
    min-height: 41px;
    display: grid;
    grid-template-columns: 1fr .75fr .75fr 1fr;
    align-items: center;
    border-top: 1px solid rgba(242, 216, 220, .75);
    font-size: 11px;
    font-weight: 800;
}

.level-row > *:not(:first-child) {
    text-align: right;
}

.level-row strong {
    width: 30px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(246, 36, 64, .09);
    color: var(--accent);
    font-size: 10px;
}

.level-row.level-head {
    min-height: 30px;
    border-top: 0;
    color: var(--muted);
    font-size: 9px;
}

.record-list {
    display: grid;
}

.record-row,
.investment-record,
.ticket-row {
    border-top: 1px solid rgba(242, 216, 220, .78);
}

.record-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 9px;
}

.record-row:first-child,
.investment-record:first-child,
.ticket-row:first-child {
    border-top: 0;
}

.record-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 950;
}

.record-icon.positive {
    color: var(--accent);
    background: #ffe4e8;
}

.record-icon.negative {
    color: var(--on-accent);
    background: var(--ink);
}

.record-main {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.record-main strong {
    font-size: 12px;
}

.record-main small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-value {
    font-size: 11px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.record-value.positive {
    color: var(--accent);
}

.record-value.negative {
    color: var(--ink);
}

.empty-state {
    padding: 20px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

.balance-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 14px;
}

.balance-banner > div {
    display: grid;
    gap: 5px;
}

.balance-banner > div + div {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.balance-banner strong {
    font-size: 22px;
}

.investment-builder {
    position: relative;
    z-index: 1;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.plan-option {
    min-width: 0;
    min-height: 105px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .58);
    cursor: pointer;
}

.plan-option.selected {
    border-color: var(--accent);
    background: #fff1f2;
    box-shadow: inset 0 0 0 1px var(--accent);
}

.plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
}

.plan-option span {
    color: var(--accent);
    font-size: 11px;
    font-weight: 950;
}

.plan-option small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.money-input {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.money-input b,
.money-input em {
    padding: 0 12px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
}

.money-input input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 11px;
}

.quick-amounts button {
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff4f2;
    color: var(--ink);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.projection-panel {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 95% 0, rgba(246, 36, 64, .2), transparent 8rem),
        #fff8f5;
    border: 1px solid var(--line);
}

.projection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.projection-grid span {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.projection-grid strong {
    color: var(--ink);
    font-size: 14px;
}

.projection-grid span:last-child strong {
    color: var(--accent);
}

.projection-panel > p {
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.projection-panel .primary-button {
    width: 100%;
}

.investment-record {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.investment-record > div {
    display: grid;
    gap: 5px;
}

.investment-record > div:last-child {
    justify-items: end;
}

.investment-record strong {
    font-size: 12px;
}

.investment-record small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.status-tag {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1e5e7;
    color: var(--muted);
    font-size: 8px;
    font-weight: 950;
}

.status-tag.pending,
.status-tag.open {
    background: #fff0ce;
    color: #9b6700;
}

.status-tag.approved,
.status-tag.running,
.status-tag.paid,
.status-tag.answered {
    background: #dff4e8;
    color: #267450;
}

.status-tag.rejected,
.status-tag.cancelled {
    background: #ffe0e4;
    color: #b10f27;
}

.wallet-hero {
    border-radius: 18px;
    margin-bottom: 12px;
}

.wallet-balance {
    padding: 22px 20px 18px;
    display: grid;
    gap: 5px;
}

.wallet-balance strong {
    font-size: 31px;
}

.wallet-balance small {
    color: #ffd4da;
    font-size: 10px;
    font-weight: 850;
}

.wallet-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 14px 20px;
    background: rgba(255, 255, 255, .08);
}

.wallet-split span {
    display: grid;
    gap: 4px;
}

.wallet-split span + span {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.wallet-split strong {
    color: var(--on-accent);
    font-size: 15px;
}

.segmented-tabs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 250, 247, .82);
}

.segmented-tabs button {
    height: 39px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
}

.segmented-tabs button.active {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 9px 18px rgba(246, 36, 64, .18);
}

.wallet-form-panel {
    display: none;
}

.wallet-form-panel.active {
    display: block;
}

.deposit-address {
    display: grid;
    gap: 5px;
    margin-bottom: 13px;
    padding: 12px;
    border-radius: 12px;
    background: #fff0f2;
}

.deposit-address span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.deposit-address strong {
    overflow-wrap: anywhere;
    color: var(--accent);
    font-size: 11px;
}

.fee-line {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.fee-line strong {
    color: var(--ink);
}

.request-columns {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.request-columns .content-panel {
    min-width: 0;
    padding: 13px;
}

.request-columns h2 {
    font-size: 13px;
}

.mini-request {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-top: 1px solid var(--line);
}

.mini-request strong {
    font-size: 10px;
}

.support-links {
    display: grid;
    gap: 8px;
}

.support-links a {
    min-height: 58px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(242, 216, 220, .8);
    border-radius: 13px;
    background: rgba(255, 255, 255, .58);
}

.support-links a > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 13px;
    font-weight: 950;
}

.support-links strong {
    display: grid;
    gap: 3px;
    font-size: 12px;
}

.support-links small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-links b {
    color: var(--accent);
}

.support-hours {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.support-hours article {
    min-height: 95px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff0ed;
}

.support-hours span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.support-hours strong {
    font-size: 12px;
    line-height: 1.35;
}

.faq-list {
    display: grid;
}

.faq-list details {
    border-top: 1px solid var(--line);
}

.faq-list details:first-child {
    border-top: 0;
}

.faq-list summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    color: var(--accent);
    font-size: 17px;
    transition: transform .18s ease;
}

.faq-list details[open] summary span {
    transform: rotate(45deg);
}

.faq-list p {
    padding: 0 0 14px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
}

.ticket-row {
    padding: 12px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
}

.ticket-row > div {
    display: grid;
    gap: 4px;
}

.ticket-row strong {
    font-size: 11px;
}

.ticket-row small {
    color: var(--muted);
    font-size: 9px;
}

.ticket-row p {
    grid-column: span 2;
    padding: 9px;
    border-radius: 9px;
    background: #fff0f2;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.profile-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 62px 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 250, 247, .84);
}

.profile-avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: #fffaf7;
    box-shadow: 0 0 0 5px #ffe8eb, inset 0 -8px 16px rgba(246, 36, 64, .08);
    color: var(--accent);
    font-size: 21px;
    font-weight: 950;
}

.profile-card > .profile-avatar {
    color: var(--accent);
    font-size: 21px;
}

.profile-card > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-card strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card span,
.profile-card small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.profile-card small {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 999px;
    background: #dff4e8;
    color: #267450;
}

.profile-card > b {
    padding: 5px 7px;
    border-radius: 8px;
    background: #ffe2e6;
    color: var(--accent);
    font-size: 8px;
}

.bottom-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(calc(100% - 20px), 410px);
    min-height: 70px;
    padding: 7px;
    gap: 3px;
    border: 1px solid rgba(126, 24, 40, .12);
    border-radius: 20px;
    background: rgba(255, 251, 248, .96);
    box-shadow: 0 14px 42px rgba(77, 12, 24, .18), 0 2px 8px rgba(77, 12, 24, .07);
}

.nav-item {
    min-width: 0;
    gap: 3px;
    padding: 7px 2px 5px;
    border-radius: 14px;
    font-size: 10px;
}

.nav-item svg,
.nav-item.quant svg {
    width: 22px;
    height: 22px;
}

.nav-item.active {
    background: #fff0f2;
    box-shadow: inset 0 0 0 1px rgba(246, 36, 64, .08);
}

.nav-item.active svg path + path {
    fill: currentColor;
    stroke: currentColor;
}

.activity-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 247, .9);
}

.activity-filters label {
    display: grid;
    gap: 6px;
}

.activity-filters label span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.activity-filters select,
.activity-filters input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffdfa;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    font-weight: 800;
}

.activity-filters .primary-button {
    grid-column: 1 / -1;
}

.company-hero {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 16px;
    min-height: 190px;
    margin-bottom: 12px;
    padding: 24px 20px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #3c0913 0%, #6e1022 52%, #f62440 140%);
    color: #fff;
}

.company-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -72px;
    width: 180px;
    height: 180px;
    border: 30px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.company-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--accent);
    box-shadow: 0 14px 30px rgba(20, 0, 4, .3);
    font-size: 34px;
    font-weight: 950;
}

.company-hero small {
    color: #ffbcc5;
    font-size: 9px;
    font-weight: 950;
}

.company-hero h1 {
    margin: 5px 0;
    font-size: 30px;
}

.company-hero p,
.company-grid p {
    margin: 0;
    color: #f5dce0;
    font-size: 11px;
    line-height: 1.55;
}

.company-grid {
    display: grid;
    gap: 9px;
}

.company-grid article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 2px 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 250, 247, .85);
}

.company-grid article > span {
    grid-row: span 2;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

.company-grid h2 {
    margin: 0;
    font-size: 14px;
}

.company-grid p {
    color: var(--muted);
}

.company-support {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px;
    margin-top: 10px;
    padding: 16px;
    border-radius: 15px;
    background: #ffe9ec;
    color: var(--ink);
}

.company-support span {
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
}

.company-support strong {
    grid-column: 1;
    font-size: 12px;
}

.company-support b {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--accent);
    font-size: 22px;
}

.wheel-intro > span {
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
}

.wheel-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 390px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 43%, #fff 0 25%, #fff0f2 65%, #ffe2e6 100%);
    border: 1px solid var(--line);
}

.lucky-wheel {
    position: relative;
    width: 276px;
    height: 276px;
    border: 10px solid #fffaf7;
    border-radius: 50%;
    background: conic-gradient(#f62440 0 60deg, #4a0a16 60deg 120deg, #ff7a8d 120deg 180deg, #6e1022 180deg 240deg, #ffabb7 240deg 300deg, #d11733 300deg 360deg);
    box-shadow: 0 18px 45px rgba(104, 14, 30, .23), inset 0 0 0 3px rgba(255, 255, 255, .4);
    transition: transform 4s cubic-bezier(.12, .72, .1, 1);
}

.lucky-wheel span {
    --angle: calc(var(--i) * 60deg + 30deg);
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    margin-left: -30px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    text-align: center;
    transform: rotate(var(--angle)) translateY(-105px) rotate(90deg);
}

.wheel-pointer {
    position: absolute;
    z-index: 4;
    top: 38px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 25px solid #3d0711;
    filter: drop-shadow(0 4px 4px rgba(61, 7, 17, .2));
}

.wheel-spin-button {
    position: absolute;
    z-index: 3;
    top: 154px;
    width: 82px;
    height: 82px;
    border: 8px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: #fffaf7;
    box-shadow: 0 8px 24px rgba(61, 7, 17, .22);
    color: var(--accent);
    font-size: 14px;
    font-weight: 950;
}

.wheel-spin-button:disabled {
    cursor: not-allowed;
    color: #b7999f;
}

.wheel-spin-button.loading {
    color: transparent;
}

.wheel-spin-button.loading::after {
    content: "";
    position: absolute;
    inset: 24px;
    border: 3px solid #ffd8de;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: wheel-loading .7s linear infinite;
}

.wheel-result {
    position: absolute;
    bottom: 18px;
    display: grid;
    gap: 3px;
    text-align: center;
}

.wheel-result strong {
    font-size: 13px;
}

.wheel-result span {
    color: var(--muted);
    font-size: 10px;
}

.wheel-result.won strong,
.wheel-result.won span {
    color: var(--accent);
}

.wheel-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 15px 17px;
    border-radius: 15px;
    background: #430914;
    color: #fff;
}

.wheel-balance span {
    color: #eab8c1;
    font-size: 10px;
}

.wheel-balance strong {
    font-size: 18px;
}

.wheel-history-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.wheel-history-row span {
    font-size: 12px;
    font-weight: 900;
}

.wheel-history-row small {
    grid-column: 1;
    color: var(--muted);
    font-size: 9px;
}

.wheel-history-row strong {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--accent);
}

.plan-admin-item {
    position: relative;
    padding-right: 74px !important;
}

.plan-admin-item form {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.plan-delete-button {
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: #ffe4e8;
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
}

@keyframes wheel-loading {
    to { transform: rotate(360deg); }
}

.wheel-topbar {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    margin-bottom: 12px;
}

.wheel-topbar a,
.wheel-topbar > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf7;
    box-shadow: 0 6px 16px rgba(80, 12, 25, .08);
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.wheel-topbar svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.wheel-topbar h1 {
    margin: 0;
    text-align: center;
    font-size: 20px;
}

.wheel-availability {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 250, 247, .9);
}

.wheel-gift {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #ffe7eb;
    color: var(--accent);
}

.wheel-gift svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wheel-availability > strong {
    display: grid;
    gap: 3px;
    font-size: 12px;
}

.wheel-availability small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.wheel-availability > b {
    padding: 8px 10px;
    border: 1px solid #ffc9d1;
    border-radius: 9px;
    background: #fff4f5;
    color: var(--accent);
    font-size: 10px;
}

.wheel-casino {
    position: relative;
    min-height: 358px;
    margin-bottom: 10px;
    padding-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(119, 14, 34, .13);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 43%, rgba(246, 36, 64, .13), transparent 44%),
        linear-gradient(180deg, #fffaf7 0%, #fff1f0 100%);
}

.wheel-rim {
    position: relative;
    width: 288px;
    height: 288px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border: 3px solid #9b0d25;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6a7e, #a50d27 50%, #ff8c9b);
    box-shadow:
        0 20px 34px rgba(91, 9, 25, .25),
        0 0 0 5px #fff8f5,
        0 0 0 7px #d91c38,
        inset 0 0 0 5px rgba(255, 255, 255, .32);
}

.wheel-rim::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 22px;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    box-shadow: inset 0 0 16px rgba(71, 4, 17, .24);
}

.wheel-rim > i {
    --light-angle: calc(var(--light) * 20deg);
    position: absolute;
    z-index: 4;
    left: calc(50% - 4px);
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border: 2px solid rgba(109, 9, 28, .35);
    border-radius: 50%;
    background: #fff9dc;
    box-shadow: 0 0 8px #fff3a8;
    transform: rotate(var(--light-angle)) translateY(-129px);
}

.lucky-wheel {
    width: 250px;
    height: 250px;
    border: 0;
    background: var(--wheel-gradient);
    box-shadow: inset 0 0 0 1px rgba(104, 8, 26, .2);
}

.lucky-wheel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(from calc(var(--segment-angle) / -2), rgba(86, 5, 20, .26) 0 1deg, transparent 1deg var(--segment-angle));
}

.lucky-wheel > span {
    --angle: calc(var(--i) * var(--segment-angle));
    z-index: 1;
    width: 74px;
    margin-left: -37px;
    color: #fff;
    transform: rotate(var(--angle)) translateY(-92px) rotate(calc(var(--angle) * -1));
}

.lucky-wheel > span.light,
.lucky-wheel > span.empty {
    color: #4c111b;
}

.lucky-wheel > span b,
.lucky-wheel > span small {
    display: block;
    text-align: center;
    line-height: 1.1;
}

.lucky-wheel > span b {
    font-size: 11px;
}

.lucky-wheel > span small {
    max-width: 70px;
    margin-top: 3px;
    font-size: 6px;
    font-weight: 900;
    text-transform: uppercase;
}

.wheel-pointer {
    z-index: 8;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 49px;
    border: 0;
    filter: drop-shadow(0 6px 6px rgba(76, 6, 20, .25));
    transform: translateX(-50%);
}

.wheel-pointer::before {
    content: "";
    position: absolute;
    left: 3px;
    width: 32px;
    height: 32px;
    border: 4px solid #fff8f5;
    border-radius: 50% 50% 50% 8px;
    background: var(--accent);
    transform: rotate(-45deg);
}

.wheel-pointer span {
    position: absolute;
    z-index: 1;
    left: 15px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff8f5;
}

.wheel-spin-button {
    z-index: 7;
    top: 50%;
    width: 84px;
    height: 84px;
    border: 7px solid #ff8998;
    background: linear-gradient(145deg, #f62440, #a80d27);
    box-shadow: 0 8px 22px rgba(73, 5, 18, .35), inset 0 0 0 2px rgba(255, 255, 255, .45);
    color: #fff;
    transform: translateY(-50%);
}

.wheel-result {
    bottom: 11px;
    opacity: 0;
    transform: translateY(5px);
    transition: .25s ease;
}

.wheel-result.won,
.wheel-result.empty {
    opacity: 1;
    transform: translateY(0);
}

.wheel-result.empty strong,
.wheel-result.empty span {
    color: #6b4b51;
}

.wheel-history-row.empty strong {
    color: var(--muted);
    font-size: 9px;
}

.admin-summary {
    grid-template-columns: repeat(2, 1fr);
}

.wheel-admin-panel .section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.wheel-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf7;
}

.wheel-admin-stats span {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 11px 6px;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: 8px;
    text-align: center;
}

.wheel-admin-stats span:last-child {
    border-right: 0;
}

.wheel-admin-stats strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
}

.wheel-global-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 10px;
    margin-bottom: 12px;
}

.wheel-global-settings > label {
    display: grid;
    gap: 6px;
}

.wheel-global-settings > label > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
}

.wheel-global-settings input[type="number"] {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.wheel-global-settings .admin-switch {
    grid-template-columns: 40px 1fr;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
}

.admin-switch > span {
    position: relative;
    width: 36px;
    height: 21px;
    border-radius: 20px;
    background: #d9c4c7;
}

.admin-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    transition: .2s ease;
}

.admin-switch input:checked + span {
    background: var(--accent);
}

.admin-switch input:checked + span::after {
    transform: translateX(15px);
}

.admin-switch strong {
    font-size: 10px;
}

.wheel-reward-editor {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.wheel-reward-admin {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf7;
}

.wheel-reward-admin.empty {
    background: #f8f2f1;
}

.wheel-reward-admin header,
.wheel-reward-admin footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wheel-reward-admin header {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
}

.wheel-reward-admin header strong {
    color: var(--accent);
}

.wheel-reward-fields {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 6px;
}

.wheel-reward-fields label {
    display: grid;
    gap: 4px;
}

.wheel-reward-fields label span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 900;
}

.wheel-reward-fields input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 9px;
}

.wheel-reward-admin footer {
    justify-content: flex-start;
    gap: 16px;
    margin-top: 8px;
}

.wheel-reward-admin footer label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.wheel-reward-admin footer input {
    accent-color: var(--accent);
}

@media (max-width: 374px) {
    .wheel-rim {
        width: 270px;
        height: 270px;
    }

    .lucky-wheel {
        width: 234px;
        height: 234px;
    }

    .wheel-rim > i {
        transform: rotate(var(--light-angle)) translateY(-120px);
    }

    .lucky-wheel > span {
        transform: rotate(var(--angle)) translateY(-85px) rotate(calc(var(--angle) * -1));
    }
}

.profile-stats,
.admin-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 250, 247, .82);
}

.profile-stats span,
.admin-summary span {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 13px 8px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    text-align: center;
}

.profile-stats span + span,
.admin-summary span + span {
    border-left: 0;
}

.profile-stats strong,
.admin-summary strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
}

.admin-entry {
    position: relative;
    z-index: 1;
    min-height: 68px;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 13px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--on-accent);
}

.admin-entry > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--accent);
    font-weight: 950;
}

.admin-entry strong {
    display: grid;
    gap: 3px;
    font-size: 12px;
}

.admin-entry small {
    color: #d8b8bd;
    font-size: 9px;
    font-weight: 700;
}

.profile-languages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.profile-languages a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
}

.profile-languages a b {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff0f2;
    color: var(--accent);
    font-size: 10px;
}

.profile-languages a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-languages a.active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--on-accent);
}

.profile-languages a.active b {
    background: var(--accent);
    color: var(--on-accent);
}

.logout-button {
    position: relative;
    z-index: 1;
    width: 100%;
    border: 1px solid rgba(246, 36, 64, .25);
    background: #fff0f2;
    color: var(--accent);
}

.admin-intro {
    padding-top: 2px;
}

.admin-intro > a {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
}

.admin-summary strong {
    font-size: 20px;
}

.admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 0;
    background: transparent;
}

.admin-summary span {
    min-height: 86px;
    align-content: center;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, #fffaf7, #fff1f2);
    box-shadow: 0 8px 20px rgba(91, 15, 29, .06);
    color: #8b6870;
    font-size: 11px;
}

.admin-summary span + span {
    border-left: 0;
}

.profile-stats + .content-panel,
.admin-summary + .content-panel {
    margin-top: 0;
}

.admin-summary strong {
    color: var(--ink);
    font-size: 23px;
}

.wheel-casino {
    min-height: 382px;
    padding-top: 30px;
    background:
        radial-gradient(circle at 50% 40%, rgba(246, 36, 64, .16), transparent 42%),
        linear-gradient(180deg, #fffaf7 0%, #fff0ef 100%);
}

.wheel-rim {
    width: 306px;
    height: 306px;
    border-color: #b50f2b;
    background: linear-gradient(145deg, #ff6f81, #b50d2b 48%, #ff9baa);
    box-shadow:
        0 22px 40px rgba(91, 9, 25, .27),
        0 0 0 5px #fff8f5,
        0 0 0 8px #e31c39,
        inset 0 0 0 5px rgba(255, 255, 255, .36);
}

.wheel-rim::after {
    inset: 20px;
    border-color: rgba(255, 255, 255, .6);
}

.wheel-rim > i {
    transform: rotate(var(--light-angle)) translateY(-138px);
}

.lucky-wheel {
    width: 268px;
    height: 268px;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(104, 8, 26, .2),
        inset 0 0 32px rgba(66, 3, 15, .16);
}

.lucky-wheel::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .17), rgba(255, 255, 255, .03) 62%, transparent 63%);
    pointer-events: none;
}

.lucky-wheel > span,
.lucky-wheel > span.light,
.lucky-wheel > span.empty {
    z-index: 3;
    width: 64px;
    margin-left: -32px;
    color: #fff;
    pointer-events: none;
    transform: rotate(var(--angle)) translateY(-88px) rotate(calc(var(--angle) * -1));
    text-shadow: 0 1px 3px rgba(48, 0, 10, .34);
}

.lucky-wheel > span b {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lucky-wheel > span small {
    overflow: hidden;
    margin-top: 4px;
    font-size: 6.8px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lucky-wheel::after {
    z-index: 2;
    pointer-events: none;
    background: repeating-conic-gradient(from calc(var(--segment-angle) / -2), rgba(255, 255, 255, .38) 0 .75deg, transparent .75deg var(--segment-angle));
}

.wheel-spin-button {
    z-index: 8;
    font-size: 15px;
}

.wheel-admin-panel .section-heading p,
.deposit-address-admin .section-heading p,
.manual-credit-panel .section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.wheel-admin-stats span {
    font-size: 9px;
}

.wheel-reward-admin header {
    font-size: 10px;
}

.wheel-reward-admin header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wheel-reward-admin header button,
.deposit-address-admin-row button {
    border: 0;
    border-radius: 7px;
    background: #ffe3e7;
    color: var(--accent);
    font: inherit;
    font-size: 9px;
    font-weight: 900;
}

.wheel-reward-admin header button {
    padding: 5px 7px;
}

.wheel-reward-admin header button:disabled,
.deposit-address-admin-row button:disabled,
.editor-add-button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.wheel-reward-fields label span {
    font-size: 8.5px;
}

.wheel-reward-fields input {
    height: 39px;
    font-size: 11px;
}

.wheel-reward-admin footer label {
    font-size: 9.5px;
}

.editor-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
    margin-top: 12px;
}

.editor-actions .primary-button {
    margin: 0;
}

.editor-add-button {
    min-height: 44px;
    border: 1px dashed rgba(246, 36, 64, .4);
    border-radius: 11px;
    background: #fff5f5;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

.deposit-address-editor {
    display: grid;
    gap: 8px;
}

.deposit-address-admin-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 7px;
}

.deposit-address-admin-row > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ffe5e9;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

.deposit-address-admin-row input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
}

.deposit-address-admin-row button {
    width: 34px;
    height: 34px;
    font-size: 18px;
}

@media (max-width: 374px) {
    .wheel-casino {
        min-height: 348px;
        padding-top: 24px;
    }

    .wheel-rim {
        width: 276px;
        height: 276px;
    }

    .wheel-rim > i {
        transform: rotate(var(--light-angle)) translateY(-124px);
    }

    .lucky-wheel {
        width: 240px;
        height: 240px;
    }

    .lucky-wheel > span,
    .lucky-wheel > span.light,
    .lucky-wheel > span.empty {
        width: 56px;
        margin-left: -28px;
        transform: rotate(var(--angle)) translateY(-79px) rotate(calc(var(--angle) * -1));
    }

    .lucky-wheel > span b {
        font-size: 11.5px;
    }

    .lucky-wheel > span small {
        font-size: 6.2px;
    }

    .wheel-reward-fields {
        grid-template-columns: 1fr 1fr;
    }

    .wheel-reward-fields label:first-child {
        grid-column: 1 / -1;
    }
}

.admin-operations,
.admin-operation-group {
    display: grid;
    gap: 10px;
}

.admin-operation-group + .admin-operation-group {
    margin-top: 10px;
}

.admin-operation-group h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.admin-operation-group h3 span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ffe3e7;
    color: var(--accent);
    font-size: 9px;
}

.admin-operation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .58);
}

.admin-operation-main {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
}

.admin-operation-main strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
}

.admin-operation-main span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 750;
}

.admin-operation-main b {
    color: var(--accent);
    font-size: 11px;
}

.admin-operation form {
    display: grid;
    gap: 6px;
}

.admin-operation input {
    height: 34px;
    font-size: 9px;
}

.admin-operation form > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.manual-credit-panel {
    display: grid;
    gap: 14px;
}

.manual-credit-form {
    padding: 13px;
    border: 1px solid rgba(246, 36, 64, .15);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 250, 247, .88), rgba(255, 239, 241, .7));
}

.manual-credit-recent {
    display: grid;
    gap: 8px;
}

.manual-credit-recent h3 {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
}

.manual-credit-recent article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 3px 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .58);
}

.manual-credit-recent article > span {
    grid-row: span 2;
    align-self: start;
    padding: 6px 7px;
    border-radius: 9px;
    background: #ffe4e8;
    color: var(--accent);
    font-size: 8px;
    font-weight: 950;
    text-align: center;
}

.manual-credit-recent strong {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.manual-credit-recent strong b {
    color: var(--accent);
    font-size: 12px;
}

.manual-credit-recent strong b.negative {
    color: #9d1027;
}

.manual-credit-recent small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.approve-button,
.reject-button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 9px;
}

.approve-button {
    background: #dff4e8;
    color: #267450;
}

.reject-button {
    background: #ffe0e4;
    color: #b10f27;
}

.five-fields {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.five-fields input {
    padding-inline: 7px;
    text-align: center;
}

.plan-admin-list {
    display: grid;
    margin-bottom: 14px;
}

.plan-admin-list > div {
    min-height: 46px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line);
    font-size: 10px;
}

.plan-admin-list > div:first-child {
    border-top: 0;
}

.plan-admin-list span {
    color: var(--muted);
    font-weight: 750;
}

.plan-admin-list b {
    color: var(--accent);
    font-size: 9px;
}

.plan-create-form {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

@media (max-width: 374px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .team-hero {
        grid-template-columns: 1fr 110px;
        padding: 17px;
    }

    .team-hero strong {
        font-size: 27px;
    }

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

    .plan-option {
        min-height: 78px;
    }

    .request-columns,
    .support-hours {
        grid-template-columns: 1fr;
    }

    .admin-operation {
        grid-template-columns: 1fr;
    }

    .five-fields {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.app-shell[data-view="login"],
.app-shell[data-view="register"] {
    display: block;
    align-items: initial;
    padding: 14px 14px 24px;
    background:
        linear-gradient(180deg, rgba(255, 250, 247, .96), rgba(255, 244, 240, .98)),
        radial-gradient(circle at 50% 20%, rgba(246, 36, 64, .12), transparent 20rem);
}

.auth-screen {
    min-height: calc(100vh - 38px);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.auth-topbar {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 3;
    padding: 7px 4px 11px;
}

.auth-topbar .auth-brand {
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
}

.auth-topbar .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.auth-topbar .auth-brand > span:last-child {
    display: grid;
    gap: 3px;
}

.auth-topbar .auth-brand strong {
    font-size: 23px;
}

.auth-topbar .auth-brand small {
    font-size: 10px;
}

.auth-topbar .language-dropdown {
    flex: 0 0 auto;
    margin-left: auto;
}

.auth-topbar .auth-languages {
    flex: 0 0 auto;
    margin: 0;
    padding: 3px;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 250, 247, .86);
}

.auth-topbar .auth-languages a {
    min-width: 27px;
    height: 25px;
}

.auth-visual {
    height: 248px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(242, 216, 220, .9);
    border-radius: 19px 19px 8px 8px;
    background: #fff0ed;
    box-shadow: 0 20px 38px rgba(118, 29, 43, .13);
}

.register-screen .auth-visual {
    height: 170px;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(255, 248, 245, .15) 75%, #fff8f5 100%);
}

.auth-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 38%;
    transform: scale(1.03);
}

.auth-content {
    position: relative;
    z-index: 2;
    flex: 1;
    margin-top: -18px;
    padding: 23px 14px 0;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, rgba(255, 248, 245, .98), rgba(255, 248, 245, .9));
}

.auth-content h1 {
    max-width: 320px;
    font-size: 27px;
    line-height: 1.04;
}

.auth-content > p {
    max-width: 330px;
    margin: 7px 0 19px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.auth-content .app-form {
    gap: 13px;
}

.auth-content .app-form label {
    gap: 7px;
}

.auth-content .app-form label > span:first-child {
    color: var(--ink);
    font-size: 10px;
    font-weight: 950;
}

.auth-input {
    min-height: 50px;
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(232, 194, 200, .92);
    border-radius: 13px;
    background: rgba(255, 252, 250, .78);
    box-shadow: inset 0 1px rgba(255, 255, 255, .9);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input:focus-within {
    border-color: rgba(246, 36, 64, .65);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(246, 36, 64, .08);
}

.auth-input svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #ad7f87;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-content .auth-input input {
    height: 48px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-size: 13px;
}

.auth-content .auth-input input::placeholder {
    color: #b99ba0;
    opacity: 1;
}

.auth-content .primary-button {
    min-height: 50px;
    margin-top: 3px;
    border-radius: 13px;
    font-size: 13px;
    box-shadow: 0 15px 28px rgba(246, 36, 64, .23);
}

.auth-content .auth-switch {
    margin: 16px 0 0;
    padding: 0;
    font-size: 11px;
}

.auth-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 19px;
    padding: 13px 0 0;
    border-top: 1px solid var(--line);
}

.auth-trust > span {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 0 10px;
}

.auth-trust > span:first-child {
    padding-left: 0;
}

.auth-trust > span + span {
    border-left: 1px solid var(--line);
}

.auth-trust svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-trust strong {
    min-width: 0;
    display: grid;
    gap: 3px;
    font-size: 9px;
}

.auth-trust small {
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.register-screen .auth-content {
    padding-top: 21px;
}

.register-screen .auth-content h1 {
    font-size: 25px;
}

.register-screen .auth-content > p {
    margin-bottom: 16px;
}

.register-screen .form-grid {
    grid-template-columns: 1fr;
}

.register-screen .auth-input {
    min-height: 46px;
}

.register-screen .auth-content .auth-input input {
    height: 44px;
}

.register-screen .auth-content .app-form {
    gap: 10px;
}

.register-screen .auth-content .primary-button {
    min-height: 48px;
}

.register-screen .auth-trust {
    margin-top: 15px;
}

@media (max-width: 374px) {
    .app-shell[data-view="login"],
    .app-shell[data-view="register"] {
        padding-inline: 10px;
    }

    .auth-visual {
        height: 220px;
    }

    .register-screen .auth-visual {
        height: 170px;
    }

    .auth-content {
        padding-inline: 10px;
    }

    .auth-topbar .auth-brand strong {
        font-size: 21px;
    }

    .auth-trust > span {
        grid-template-columns: 24px minmax(0, 1fr);
        padding-inline: 7px;
    }

    .auth-trust svg {
        width: 23px;
        height: 23px;
    }
}

.quant-hero {
    position: relative;
    min-height: 228px;
    display: grid;
    align-items: end;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid rgba(246, 36, 64, .14);
    border-radius: 22px;
    background: linear-gradient(145deg, #fffaf7, #fff0f1);
    box-shadow: 0 18px 34px rgba(91, 12, 27, .09);
}

.quant-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .92;
}

.quant-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 250, 247, .08), rgba(255, 250, 247, .88) 72%);
}

.quant-hero > div {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 3px;
}

.quant-hero span {
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .08em;
}

.quant-hero strong {
    color: var(--ink);
    font-size: 35px;
    line-height: 1;
}

.quant-hero small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.quant-hero i {
    position: absolute;
    z-index: 1;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 22px rgba(246, 36, 64, .65);
    animation: quant-float 3.8s ease-in-out infinite;
}

.quant-hero i:nth-of-type(1) {
    right: 34px;
    top: 38px;
}

.quant-hero i:nth-of-type(2) {
    left: 48px;
    top: 78px;
    animation-delay: .8s;
}

.quant-hero i:nth-of-type(3) {
    right: 92px;
    bottom: 74px;
    animation-delay: 1.4s;
}

.quant-console {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 13px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(246, 36, 64, .16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% -8%, rgba(246, 36, 64, .2), transparent 30%),
        radial-gradient(circle at 0% 98%, rgba(74, 7, 22, .11), transparent 35%),
        linear-gradient(145deg, #fffaf7 0%, #fff2f1 100%);
    box-shadow: 0 20px 42px rgba(80, 10, 24, .1);
}

.quant-console::before {
    content: "";
    position: absolute;
    right: -54px;
    top: -58px;
    width: 170px;
    height: 170px;
    border-radius: 54px;
    background: linear-gradient(145deg, rgba(246, 36, 64, .2), rgba(74, 7, 22, .04));
    transform: rotate(18deg);
}

.quant-console-head,
.quant-stats-grid,
.quant-progress-shell,
.quant-currency-box,
.quant-run-card,
.quant-ledger,
.quant-execute-form {
    position: relative;
    z-index: 1;
}

.quant-console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.quant-console-head div {
    display: grid;
    gap: 3px;
}

.quant-console-head span,
.quant-stats-grid small,
.quant-progress-shell span,
.quant-currency-select em,
.quant-run-info span,
.quant-ledger small,
.quant-history-list small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
}

.quant-console-head strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.05;
}

.quant-console-head a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(246, 36, 64, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

.quant-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(246, 36, 64, .12);
    border-radius: 18px;
    background: linear-gradient(135deg, #3c0713, #c22d49 72%, #f62440);
    box-shadow: 0 18px 34px rgba(80, 10, 24, .16);
}

.quant-stats-grid span {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 11px 8px;
    text-align: center;
}

.quant-stats-grid span + span {
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.quant-stats-grid b {
    overflow: hidden;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quant-stats-grid small {
    color: rgba(255, 255, 255, .72);
}

.quant-progress-shell {
    display: grid;
    gap: 7px;
    padding: 10px;
    border-radius: 15px;
    background: #3c0713;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.quant-progress-shell div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quant-progress-shell span {
    color: rgba(255, 255, 255, .72);
}

.quant-progress-shell strong {
    color: #fff;
    font-size: 17px;
}

.quant-progress-shell b {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.quant-progress-shell i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8a9a, var(--accent));
}

.quant-currency-box {
    display: grid;
    gap: 8px;
}

.quant-currency-select,
.quant-currency-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(246, 36, 64, .14);
    background: rgba(255, 255, 255, .8);
}

.quant-currency-select {
    min-height: 54px;
    padding: 9px 11px;
    border-radius: 16px;
}

.quant-currency-select span,
.quant-currency-menu button {
    min-width: 0;
}

.quant-currency-select span,
.quant-currency-menu button span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.quant-currency-select i,
.quant-currency-menu i {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: radial-gradient(circle at 35% 25%, #ff6b7c, var(--accent) 58%, #4a0716);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
}

.quant-currency-select strong {
    color: var(--ink);
    font-size: 14px;
}

.quant-currency-menu {
    display: none;
    gap: 7px;
}

.quant-currency-box.open .quant-currency-menu {
    display: grid;
}

.quant-currency-menu button {
    min-height: 46px;
    padding: 7px 9px;
    border-radius: 13px;
}

.quant-currency-menu span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.quant-currency-menu small {
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
}

.quant-run-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 13px;
    border-radius: 19px;
    background: linear-gradient(135deg, #4a0716, #811329 58%, var(--accent));
    color: #fff;
    box-shadow: 0 18px 30px rgba(246, 36, 64, .2);
}

.quant-run-orbit {
    position: relative;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
}

.quant-run-orbit span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #fff;
    color: var(--accent);
    font-size: 14px;
    font-weight: 950;
}

.quant-run-orbit i {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 13px rgba(255, 255, 255, .8);
    animation: quant-float 3.4s ease-in-out infinite;
}

.quant-run-orbit i:nth-child(2) {
    right: 5px;
    top: 13px;
}

.quant-run-orbit i:nth-child(3) {
    left: 9px;
    bottom: 13px;
    animation-delay: .7s;
}

.quant-run-orbit i:nth-child(4) {
    right: 18px;
    bottom: 4px;
    animation-delay: 1.2s;
}

.quant-run-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.quant-run-info span {
    color: rgba(255, 255, 255, .72);
}

.quant-run-info strong {
    overflow: hidden;
    font-size: 18px;
    line-height: 1.06;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quant-run-info small {
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    font-weight: 850;
}

.quant-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.quant-next-unlock {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px dashed rgba(246, 36, 64, .32);
    border-radius: 15px;
    background: rgba(255, 255, 255, .62);
}

.quant-next-unlock span {
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.quant-next-unlock strong {
    color: var(--ink);
    font-size: 12px;
    line-height: 1.25;
}

.quant-ledger span {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(246, 36, 64, .13);
    border-radius: 15px;
    background: rgba(255, 255, 255, .72);
}

.quant-ledger b {
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
}

.quant-execute-form {
    display: grid;
}

.quant-main-action {
    margin-top: -2px;
}

.quant-execute-button {
    min-height: 76px;
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 12px;
    border: 0;
    border-radius: 22px 22px 34px 34px;
    background:
        linear-gradient(120deg, transparent, rgba(255, 255, 255, .32), transparent) -180px 0 / 140px 100% no-repeat,
        linear-gradient(135deg, var(--accent), #ff5870 52%, #4a0716);
    color: #fff;
    box-shadow: 0 18px 30px rgba(246, 36, 64, .28), inset 0 0 0 1px rgba(255, 255, 255, .18);
    animation: quant-scan 3.2s ease-in-out infinite;
}

.quant-execute-button:disabled {
    opacity: .55;
    animation: none;
}

.quant-execute-form.is-processing .quant-execute-button:disabled {
    opacity: 1;
    background:
        linear-gradient(120deg, transparent, rgba(255, 255, 255, .34), transparent) -180px 0 / 140px 100% no-repeat,
        linear-gradient(135deg, #f62440, #ff6a7e 52%, #3c0713);
    animation: quant-scan 1.5s ease-in-out infinite;
}

.quant-execute-button span {
    font-size: 16px;
    font-weight: 950;
}

.quant-execute-button small {
    max-width: 280px;
    color: rgba(255, 255, 255, .78);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.quant-submit-progress {
    display: none;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(246, 36, 64, .16);
    border-radius: 18px;
    background:
        radial-gradient(circle at 14% 0%, rgba(246, 36, 64, .14), transparent 34%),
        rgba(255, 255, 255, .76);
    box-shadow: 0 14px 28px rgba(80, 10, 24, .08);
}

.quant-execute-form.is-processing .quant-submit-progress,
.quant-task-action.is-processing .quant-submit-progress {
    display: grid;
}

.quant-submit-progress div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quant-submit-progress span,
.quant-submit-progress small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
}

.quant-submit-progress strong {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    animation: quant-progress-count 3.2s steps(4, end) forwards;
}

.quant-submit-progress b {
    position: relative;
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(60, 7, 19, .12);
    box-shadow: inset 0 0 0 1px rgba(246, 36, 64, .12);
}

.quant-submit-progress b::before,
.quant-submit-progress b::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.quant-submit-progress b::before {
    transform-origin: left center;
    transform: scaleX(.06);
    background: linear-gradient(90deg, #3c0713, var(--accent) 58%, #ff8fa0);
    animation: quant-progress-fill 3.2s cubic-bezier(.18, .82, .2, 1) forwards;
}

.quant-submit-progress b::after {
    width: 44%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
    transform: translateX(-120%);
    animation: quant-progress-glow 1.05s ease-in-out infinite;
}

.quant-submit-progress.compact {
    margin-top: -2px;
    padding: 10px;
    border-radius: 15px;
}

.quant-level-panel {
    overflow: hidden;
}

.quant-level-strip {
    display: grid;
    gap: 13px;
}

.quant-level-strip article {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(246, 36, 64, .17);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 90%, rgba(246, 36, 64, .18), transparent 38%),
        linear-gradient(135deg, #fffbf8 0%, #fff0f1 100%);
    box-shadow: 0 16px 34px rgba(80, 10, 24, .08);
}

.quant-level-strip article::before {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -42px;
    width: 116px;
    height: 116px;
    border-radius: 38px;
    background: rgba(246, 36, 64, .12);
    transform: rotate(12deg);
}

.quant-level-strip article.current {
    border-color: rgba(246, 36, 64, .34);
    background: linear-gradient(135deg, #fff4f3, #ffe8eb);
    box-shadow: 0 14px 28px rgba(246, 36, 64, .12);
}

.quant-level-strip article.locked {
    background:
        radial-gradient(circle at 92% 90%, rgba(42, 17, 22, .09), transparent 38%),
        linear-gradient(135deg, #fffaf8 0%, #fff5f4 100%);
}

.quant-task-head,
.quant-task-metrics,
.quant-task-action,
.quant-level-strip article > p {
    position: relative;
    z-index: 1;
}

.quant-task-head {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 10px;
}

.quant-task-head > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: radial-gradient(circle at 32% 24%, #ff6d7d, var(--accent) 56%, #3c0713);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 12px 22px rgba(246, 36, 64, .24);
}

.quant-task-head div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.quant-task-head strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quant-task-head small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
}

.quant-lock-badge {
    width: 48px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #3c0713;
    color: #fff;
    box-shadow: 0 10px 22px rgba(80, 10, 24, .18);
}

.quant-lock-badge.open {
    background: linear-gradient(135deg, var(--accent), #3c0713);
}

.quant-lock-badge.locked {
    background: #3c0713;
    opacity: .88;
}

.quant-lock-badge svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quant-task-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.quant-task-metrics span {
    min-height: 62px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 11px 12px;
    border: 1px solid rgba(246, 36, 64, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 20px rgba(80, 10, 24, .04);
}

.quant-task-metrics small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
}

.quant-task-metrics b {
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quant-task-action {
    display: grid;
}

.quant-task-action button {
    min-height: 50px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--accent), #ff536a 55%, #3c0713);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 14px 24px rgba(246, 36, 64, .2);
}

.quant-task-action button:disabled {
    background: #ead9da;
    color: #9d7d82;
    box-shadow: none;
}

.quant-task-action.is-processing button:disabled {
    background: linear-gradient(135deg, var(--accent), #ff536a 55%, #3c0713);
    color: #fff;
    box-shadow: 0 14px 24px rgba(246, 36, 64, .2);
}

.quant-level-strip article > p {
    margin: -2px 2px 0;
    color: #8d6970;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 850;
}

.quant-history-list {
    display: grid;
    gap: 9px;
}

.quant-history-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px;
    border: 1px solid rgba(246, 36, 64, .12);
    border-radius: 15px;
    background: #fff9f7;
}

.quant-history-list div,
.quant-history-list span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.quant-history-list strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quant-history-list span {
    justify-items: end;
    text-align: right;
}

.quant-history-list b {
    color: var(--accent);
    font-size: 16px;
}

@keyframes quant-scan {
    0% { background-position: -180px 0, 0 0; }
    55%, 100% { background-position: 420px 0, 0 0; }
}

@keyframes quant-progress-fill {
    0% { transform: scaleX(.06); }
    48% { transform: scaleX(.54); }
    78% { transform: scaleX(.82); }
    100% { transform: scaleX(1); }
}

@keyframes quant-progress-glow {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

@keyframes quant-progress-count {
    0% { opacity: .55; }
    100% { opacity: 1; }
}

.team-list-button {
    min-height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 15px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.team-list-button.active {
    background: #fff0f2;
    color: var(--accent);
    border: 1px solid var(--line);
}

.team-list-panel {
    display: grid;
    gap: 12px;
}

.team-list-back {
    width: max-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff8f6;
    color: var(--ink);
    font-size: 11px;
    font-weight: 950;
}

.team-list-head {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 9px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 950;
}

.team-list-head span:last-child {
    text-align: right;
}

.team-level-list h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
}

.team-level-list h3 span {
    min-width: 26px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #ffe4e8;
}

.team-member-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--line);
}

.team-member-row > span {
    padding: 7px 5px;
    border-radius: 9px;
    background: #fff0f2;
    color: var(--accent);
    font-size: 9px;
    font-weight: 950;
    text-align: center;
}

.team-member-row strong,
.team-member-row b {
    display: grid;
    gap: 3px;
    font-size: 11px;
}

.team-member-row strong {
    min-width: 0;
}

.team-member-row small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-member-row b {
    color: var(--accent);
    text-align: right;
}

.profile-action-grid {
    display: grid;
    gap: 9px;
}

.profile-action-grid a {
    min-height: 64px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, #fffaf7, #fff3f4);
}

.profile-action-grid b {
    width: 42px;
    height: 42px;
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}

.profile-action-grid b svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-action-grid strong {
    font-size: 13px;
}

.profile-action-grid span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.profile-language-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-language-buttons a {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff8f7;
    color: var(--muted);
    font-size: 10px;
    font-weight: 950;
}

.profile-language-buttons a span {
    font-weight: 800;
}

.profile-language-buttons a.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.profile-subpage a {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

.withdrawal-profile-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff5f5;
}

.withdrawal-profile-card span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.withdrawal-profile-card strong {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.withdrawal-profile-card a {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--accent);
    font-size: 10px;
    font-weight: 950;
}

.wheel-progress-card {
    display: grid;
    gap: 9px;
    margin-bottom: 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff8f7;
}

.wheel-progress-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wheel-progress-card span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
}

.wheel-progress-card strong {
    color: var(--accent);
    font-size: 12px;
}

.wheel-progress-card em {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #ffe1e5;
}

.wheel-progress-card i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c0f22, var(--accent));
}

.lucky-wheel > span,
.lucky-wheel > span.light,
.lucky-wheel > span.empty {
    width: 58px;
    margin-left: -29px;
    transform: rotate(var(--angle)) translateY(-82px) rotate(calc(var(--angle) * -1));
}

.lucky-wheel > span b {
    display: block;
    max-width: 58px;
    font-size: 11px;
}

.lucky-wheel > span small {
    display: block;
    max-width: 58px;
    font-size: 5.8px;
}

@keyframes quant-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: .75; }
    50% { transform: translateY(-12px) scale(1.2); opacity: 1; }
}
