body.cp-shell {
    padding-bottom: 0;
}

.platform-wrapper.recharge-records-app.rr-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 108px;
    color: rgba(244, 244, 245, 0.92);
    background: #0a0a0a;
}

.rr-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 55% at 0% 0%, rgba(196, 30, 58, 0.18) 0%, transparent 52%),
        radial-gradient(ellipse 80% 50% at 100% 8%, rgba(30, 64, 175, 0.16) 0%, transparent 48%),
        #0a0a0a;
}

.rr-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 12px 12px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rr-top__back {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(244, 244, 245, 0.18);
    border-radius: 6px;
    background: rgba(15, 17, 24, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rr-top__back svg {
    width: 22px;
    height: 22px;
    color: #f4f4f5;
}

.rr-top__title {
    margin: 0;
    font-family: var(--font-display), var(--font-family);
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    color: #f4f4f5;
    line-height: 1.1;
}

.rr-top__slot {
    width: 44px;
    height: 44px;
}

.rr-main {
    position: relative;
    z-index: 1;
    padding: 8px 14px 20px;
}

.rr-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 4px;
}

.profit-card {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.profit-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.pr-row__sheet {
    padding: 14px 16px;
    background: rgba(244, 244, 245, 0.97);
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.pr-row__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    align-items: center;
}

.pr-row__sum-val {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-display), var(--font-family);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #0a0a0a;
    line-height: 1;
}

.pr-row__category {
    grid-column: 2;
    grid-row: 1;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pr-row__category--status.st-complete {
    color: var(--success);
    background: rgba(22, 163, 74, 0.12);
}

.pr-row__category--status.st-processing {
    color: var(--warning);
    background: rgba(217, 119, 6, 0.12);
}

.pr-row__category--status.st-rejected {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.12);
}

.pr-row__stamp {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.pr-row__stamp::before {
    display: none;
}

.rr-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(10, 10, 10, 0.07);
}

.rr-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #0a0a0a;
    border-radius: 6px;
    background: #0a0a0a;
    color: #f4f4f5;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rr-upload-btn:disabled,
.rr-upload-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.rr-upload-btn svg {
    width: 15px;
    height: 15px;
}

.rr-bonus {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--hz-accent-primary);
}

.rr-bonus svg {
    width: 14px;
    height: 14px;
}

.rr-empty {
    margin: 48px 0;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(244, 244, 245, 0.45);
}

.rr-empty.hidden {
    display: none;
}

.rr-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding: 12px 0;
}

.rr-pages.hidden {
    display: none;
}

.rr-pages__btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(244, 244, 245, 0.16);
    border-radius: 6px;
    background: rgba(20, 22, 28, 0.9);
    color: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rr-pages__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.rr-pages__btn svg {
    width: 18px;
    height: 18px;
}

.rr-pages__info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(244, 244, 245, 0.75);
}

.rr-pages__cur {
    color: #f4f4f5;
}

.rr-pages__sep {
    opacity: 0.4;
}

.rr-page .loading {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rr-page .loading.active {
    opacity: 1;
    visibility: visible;
}

.rr-page .spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(244, 244, 245, 0.1);
    border-top-color: var(--hz-accent-primary);
    border-radius: 50%;
    animation: rr-spin 0.7s linear infinite;
}

@keyframes rr-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .rr-main {
        padding: 6px 12px 16px;
    }

    .pr-row__sheet {
        padding: 12px 14px;
    }

    .pr-row__sum-val {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profit-card,
    .rr-page .spinner {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
