:root {
    --miraculous-red: #d92f4b;
    --miraculous-blue: #3777c8;
    --miraculous-gold: #e7b94b;
    --cat-noir: #0c0e16;
}

body {
    background:
        radial-gradient(circle at 8% 0, rgba(217, 47, 75, .1), transparent 25rem),
        radial-gradient(circle at 95% 85%, rgba(55, 119, 200, .1), transparent 28rem),
        var(--cat-noir);
}

.header {
    border-top: 3px solid var(--miraculous-red);
    background: rgba(12, 14, 22, .94);
}

.header__nav-link:hover,
.header__nav-link--active,
.footer__link:hover {
    color: #ff6b83;
}

.header__nav-link--live svg circle:last-child {
    fill: var(--miraculous-red);
}

.btn-custom,
.form__btn,
.sign__btn {
    background: var(--miraculous-red);
    box-shadow: 0 8px 20px rgba(217, 47, 75, .2);
}

.btn-custom:hover,
.form__btn:hover,
.sign__btn:hover {
    background: #ef4562;
    transform: translateY(-2px);
}

.card,
.main__table-wrap,
.admin-form-card,
.quick-panel,
.dashbox {
    border-color: rgba(255, 255, 255, .09);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.card:hover,
.quick-panel:hover,
.dashbox:hover {
    border-color: rgba(217, 47, 75, .48);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
    transform: translateY(-4px);
}

.main__title h2,
.section__title,
.hero__title {
    letter-spacing: -.035em;
}

.main__title h2::after,
.section__title::after {
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    content: "";
    background: linear-gradient(90deg, var(--miraculous-red), var(--miraculous-blue));
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, .09);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
 .footer-active-visitors {
    margin: 18px 0 20px;
    color: rgba(255,255,255,.82);
}

.footer-active-visitors summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
}

.footer-active-visitors summary::-webkit-details-marker {
    display: none;
}

.footer-active-visitors__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #45d483;
    box-shadow: 0 0 0 5px rgba(69, 212, 131, .12);
}

.footer-active-visitors__details {
    display: grid;
    gap: 6px;
    width: min(220px, 100%);
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(168, 85, 247, .25);
    border-radius: 10px;
    background: rgba(10, 14, 25, .75);
    font-size: 12px;
}

.footer-active-visitors:hover .footer-active-visitors__details,
.footer-active-visitors:focus-within .footer-active-visitors__details {
    display: grid;
}

.footer-active-visitors__country {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.profile-rewards-layout {
    display: grid;
    gap: 24px;
}

.profile--theme-unlocked .profile-hero-card,
.profile--theme-unlocked .profile-rewards-hero {
    border-color: rgba(192, 132, 252, .5);
    background:
        radial-gradient(circle at 85% 10%, rgba(192, 132, 252, .2), transparent 34%),
        rgba(18, 18, 30, .58);
}

.profile--theme-unlocked .profile-hero-badge {
    box-shadow: 0 0 22px rgba(192, 132, 252, .25);
}

.profile-rewards-hero,
.profile-reward-card,
.profile-reward-color-form {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(18, 18, 18, .45);
    padding: 24px;
}
.profile-reward-form-label {
    display: block;
    margin-top: 18px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}
.profile-frame-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.profile-frame-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.profile-frame-option span {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    cursor: pointer;
    font-size: 12px;
}
.profile-frame-option input:checked + span {
    border-color: #67e8f9;
    color: #fff;
    box-shadow: 0 0 12px rgba(103, 232, 249, .25);
}
.profile-frame-option--royal input:checked + span { border-color: #a78bfa; }
.profile-frame-option--neon input:checked + span { border-color: #fb7185; }
.profile-frame-option--reset input:checked + span { border-color: rgba(255, 255, 255, .5); }

.profile-rewards-hero h2 {
    margin: 8px 0;
}

.profile-checkin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.profile-checkin-bar strong,
.profile-checkin-bar span {
    display: block;
}

.profile-checkin-bar span {
    margin-top: 4px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
}

.profile-achievements-panel,
.community-page-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(18, 18, 18, .45);
}

.profile-achievement-list,
.community-achievements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-achievement-list article,
.profile-notification-list article,
.community-achievement,
.community-leaderboard__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
}

.profile-achievement-list i,
.community-achievement i {
    color: #f6c453;
    font-size: 20px;
}

.profile-achievement-list strong,
.profile-achievement-list span {
    display: block;
}

.profile-achievement-list span,
.profile-notification-list span,
.community-achievement p,
.community-page-card > p,
.community-leaderboard small {
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
}

.profile-notification-list {
    display: grid;
    gap: 10px;
}

.profile-notification-list article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

.profile-notification-list i {
    color: #c084fc;
}

.profile-notification-list strong,
.profile-notification-list span {
    display: block;
}

.community-page-card h1 {
    margin: 8px 0;
    color: #fff;
}

.community-leaderboard {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.community-leaderboard__rank {
    width: 42px;
    color: #f6c453;
}

.community-leaderboard__row img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.community-leaderboard__row div {
    flex: 1;
}

.community-leaderboard__row div strong,
.community-leaderboard__row small {
    display: block;
}

.community-leaderboard__row > span {
    color: #f6c453;
    font-size: 13px;
}

.community-achievement {
    align-items: flex-start;
}

.community-achievement div {
    flex: 1;
}

.community-achievement p {
    margin: 4px 0 0;
}

.community-achievement > span {
    color: #f6c453;
    white-space: nowrap;
    font-size: 12px;
}

.community-achievement.is-unlocked {
    border-color: rgba(246, 196, 83, .35);
}

.profile-level-progress__bar {
    height: 10px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.profile-level-progress__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f6c453, #fb7185);
}

.profile-level-progress__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

.profile-reward-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.profile-reward-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    opacity: .58;
}

.profile-reward-card.is-unlocked {
    opacity: 1;
    border-color: rgba(246, 196, 83, .4);
}

.profile-reward-card > i {
    color: #f6c453;
    font-size: 20px;
}

.profile-reward-card div {
    flex: 1;
}

.profile-reward-card strong,
.profile-reward-card p {
    display: block;
}

.profile-reward-card p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.profile-reward-card > span {
    color: #f6c453;
    white-space: nowrap;
    font-size: 13px;
}

.profile-reward-color-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px 20px;
}

.profile-reward-color-form > label:first-child {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.profile-reward-color-form .profile-color-options {
    justify-content: flex-start;
}

.profile-reward-color-form .profile-reward-form-label,
.profile-reward-color-form .profile-frame-options,
.profile-reward-color-form .text-danger,
.profile-reward-color-form button {
    grid-column: 1 / -1;
}

.profile-reward-color-form button {
    justify-self: start;
}

.profile-reward-choice {
    display: grid;
    gap: 7px;
    min-width: min(220px, 100%);
}

.profile-reward-choice label {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.profile-reward-choice select {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.profile-theme-royal .profile-hero-card,
.profile-theme-royal .profile-rewards-hero {
    background: radial-gradient(circle at 85% 10%, rgba(167, 139, 250, .24), transparent 34%), rgba(18, 18, 30, .58);
}

.profile-theme-midnight .profile-hero-card,
.profile-theme-midnight .profile-rewards-hero {
    background: radial-gradient(circle at 85% 10%, rgba(56, 189, 248, .18), transparent 34%), #080d18;
}

.comments__avatar--aurora {
    box-shadow: 0 0 0 3px #67e8f9, 0 0 14px rgba(103, 232, 249, .65);
}

.comments__avatar--royal {
    box-shadow: 0 0 0 3px #a78bfa, 0 0 14px rgba(167, 139, 250, .65);
}

.comments__avatar--neon {
    box-shadow: 0 0 0 3px #fb7185, 0 0 14px rgba(251, 113, 133, .65);
}

.comment-badge--supporter {
    color: #67e8f9;
}

.comment-badge--special {
    color: #f6c453;
}

.comment-badge--glow {
    color: #fb7185;
    animation: kk-reward-pulse 1.8s ease-in-out infinite;
}

.comment-badge--loyal {
    color: #4ade80;
}

.comment-badge--vip {
    color: #f6c453;
    border: 1px solid rgba(246, 196, 83, .55);
    box-shadow: 0 0 12px rgba(246, 196, 83, .3);
}

@keyframes kk-reward-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(251, 113, 133, 0); }
    50% { box-shadow: 0 0 12px rgba(251, 113, 133, .45); }
}

.profile-color-options {
    display: flex;
    gap: 10px;
}

.profile-color-option input {
    position: absolute;
    opacity: 0;
}

.profile-color-option span {
    display: grid;
    width: 30px;
    height: 30px;
    cursor: pointer;
    place-items: center;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--reward-color, transparent);
    color: #fff;
}

.profile-color-option input:checked + span {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(246, 196, 83, .8);
}

.profile-color-option--reset span {
    border-color: rgba(255, 255, 255, .4);
}

@media (max-width: 767px) {
    .profile-reward-list {
        grid-template-columns: 1fr;
    }

    .profile-reward-color-form {
        grid-template-columns: 1fr;
    }

    .profile-reward-color-form > * {
        grid-column: 1;
    }

    .profile-reward-choice {
        width: 100%;
    }

    .profile-achievement-list,
    .community-achievements {
        grid-template-columns: 1fr;
    }

    .profile-checkin-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}
