/* ============================================================
   CUSTOM FONTS
   ============================================================ */
@font-face {
    font-family: 'ShinaQalline';
    src: url('assets/shina-qalline.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* ============================================================
   ROOT & RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #ffc840;
    --pink-dark: #d4941a;
    --rose: #ff8c30;
    --lavender: #ffe080;
    --purple: #e05010;
    --bg: #05080f;
    --card-bg: rgba(255, 200, 80, 0.032);
    --card-border: rgba(255, 190, 60, 0.18);
    --glow: rgba(255, 180, 40, 0.55);
    --text: #fef0d0;
    --text-mute: rgba(254, 240, 208, 0.6);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   ANIMATED GRADIENT BACKGROUND
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 28% at 50% 100%, rgba(200, 100, 10, 0.24) 0%, transparent 80%),
        radial-gradient(ellipse 55% 22% at 18% 96%, rgba(180, 80, 0, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 45% 20% at 82% 92%, rgba(160, 70, 0, 0.15) 0%, transparent 65%);
    animation: bgShift 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgShift {
    0% {
        opacity: 1;
        filter: hue-rotate(0deg);
    }

    100% {
        opacity: 1;
        filter: hue-rotate(30deg);
    }
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
#particleCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   SPARKLE CONTAINER
   ============================================================ */
#sparkleContainer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    pointer-events: none;
    animation: sparklePop 0.6s ease forwards;
    font-size: 14px;
}

@keyframes sparklePop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.4) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg) translateY(-30px);
        opacity: 0;
    }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    background: var(--pink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, background 0.2s;
    box-shadow: 0 0 12px var(--pink), 0 0 24px rgba(245, 197, 24, 0.5);
    mix-blend-mode: screen;
}

.cursor-trail {
    display: none;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: stretch;
}

.left-col {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
}

.left-col .profile-card {
    flex: 1;
}

.right-col {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.right-col .about-card {
    grid-column: 1 / -1;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 4px 32px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(220, 150, 40, 0.04);
    transition: box-shadow 0.35s, transform 0.35s;
    animation: fadeUp 0.7s ease both;
}

.card:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.07) inset,
        0 8px 48px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(220, 150, 40, 0.12);
    transform: translateY(-3px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-col .card:nth-child(1) {
    animation-delay: 0.0s;
}

.left-col .card:nth-child(2) {
    animation-delay: 0.1s;
}

.left-col .card:nth-child(3) {
    animation-delay: 0.2s;
}

.right-col .card:nth-child(1) {
    animation-delay: 0.15s;
}

.right-col .card:nth-child(2) {
    animation-delay: 0.25s;
}

.right-col .card:nth-child(3) {
    animation-delay: 0.35s;
}

.card-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 14px;
    text-shadow: 0 0 12px var(--pink);
    text-align: center;
}

/* ============================================================
   PROFILE CARD
   ============================================================ */
.profile-card {
    text-align: center;
    padding: 0 0 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.profile-banner {
    position: relative;
    width: 100%;
    height: 110px;
    overflow: hidden;
    flex-shrink: 0;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.profile-card:hover .banner-img {
    transform: scale(1.04);
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-top: -48px;
    margin-bottom: 14px;
    z-index: 5;
}

.profile-info {
    padding: 0 20px;
    width: 100%;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(0, 0, 0, 0.6);
}

.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: conic-gradient(var(--pink), var(--lavender), var(--rose), var(--pink)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spinRing 4s linear infinite;
    z-index: 1;
}

@keyframes spinRing {
    to {
        transform: rotate(360deg);
    }
}

.status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #3ba55c;
    border-radius: 50%;
    border: 3px solid var(--bg);
    z-index: 3;
    box-shadow: 0 0 8px #3ba55c;
}

.avatar-deco {
    position: absolute;
    inset: -18px;
    width: calc(100% + 36px);
    height: calc(100% + 36px);
    pointer-events: none;
    z-index: 4;
}

.username {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink), var(--lavender), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.6));
}

.blink-cursor {
    display: inline-block;
    -webkit-text-fill-color: var(--pink);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.display-name {
    font-size: 0.85rem;
    color: var(--rose);
    margin-top: 4px;
    text-shadow: 0 0 10px rgba(240, 140, 30, 0.5);
}

.tag {
    font-size: 0.78rem;
    color: var(--text-mute);
    margin-top: 4px;
}

/* ============================================================
   ABOUT CARD
   ============================================================ */
.about-content {
    text-align: left;
}

.about-content p {
    font-size: 0.70rem;
    line-height: 1.8;
    color: var(--text);
}

.meow-text {
    font-size: 1.2rem;
    color: var(--pink);
    text-shadow: 0 0 16px var(--pink);
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
    margin-top: 6px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 16px var(--pink);
    }

    50% {
        transform: scale(1.08);
        text-shadow: 0 0 30px var(--pink), 0 0 60px var(--rose);
    }
}

/* ============================================================
   SOCIAL ICONS (inline in profile card)
   ============================================================ */
.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Discord expands to show name */
.social-icon-btn.discord {
    width: auto;
    padding: 0 12px;
    color: #fff;
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.4);
}

.discord-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.social-icon-btn.github {
    color: #fff;
}

.social-icon-btn.instagram {
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.3);
    background: rgba(225, 48, 108, 0.08);
}

.social-icon-btn.telegram {
    color: #29b6f6;
    border-color: rgba(41, 182, 246, 0.3);
    background: rgba(41, 182, 246, 0.08);
}

.social-icon-btn.email {
    color: var(--pink);
    border-color: rgba(247, 168, 196, 0.3);
    background: rgba(247, 168, 196, 0.08);
}

.social-icon-btn.tiktok {
    color: #fff;
    border-color: rgba(238, 29, 82, 0.4);
    background: rgba(238, 29, 82, 0.1);
}

.social-icon-btn:hover {
    filter: brightness(1.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   SPOTIFY TOP TRACKS CARD
   ============================================================ */
.hidden {
    display: none !important;
}



/* ============================================================
   MUSIC CARD
   ============================================================ */
.music-card {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

.music-header {
    margin-bottom: 0;
    flex-shrink: 0;
}

.music-title-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--pink);
    text-shadow: 0 0 10px var(--pink);
    display: block;
    text-align: center;
}

.music-body {
    display: flex;
    flex: 1;
    gap: 16px;
    align-items: center;
}

.music-art-wrapper {
    position: relative;
    flex-shrink: 0;
}

.music-art {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.music-info {
    flex: 1;
}

.music-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: 0.78rem;
    color: var(--text-mute);
    margin-top: 2px;
}

.progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.time-label {
    font-size: 0.7rem;
    color: var(--text-mute);
    flex-shrink: 0;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink), var(--lavender));
    border-radius: 2px;
    transition: width 0.3s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 10px;
    height: 10px;
    background: var(--pink);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px var(--pink);
    pointer-events: none;
    transition: left 0.3s linear;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.75rem;
    background: rgba(220, 150, 40, 0.2);
    border-color: var(--pink);
    color: var(--pink);
}

.ctrl-btn.play-btn {
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    border-color: transparent;
    color: #05080f;
    font-weight: 700;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(220, 150, 40, 0.4);
}

.ctrl-btn.play-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 24px rgba(220, 150, 40, 0.7);
}

/* Volume control */
.volume-icon {
    font-size: 0.78rem;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    opacity: 0.8;
}

.volume-slider {
    width: 70px;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    box-shadow: 0 0 6px rgba(247, 168, 196, 0.6);
    cursor: pointer;
    transition: transform 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.volume-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    cursor: pointer;
}

/* ============================================================
   STATS CARD
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(220, 150, 40, 0.12);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.25s;
}

.stat-item:hover {
    background: rgba(220, 150, 40, 0.08);
    border-color: rgba(220, 150, 40, 0.3);
    transform: translateY(-2px);
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(220, 150, 40, 0.5));
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-mute);
    margin-top: 2px;
    display: block;
    letter-spacing: 0.05em;
}

/* ============================================================
   DISCORD PRESENCE CARD
   ============================================================ */
.discord-presence-card {
    position: relative;
    min-height: 80px;
    overflow: hidden;
}

/* Nameplate: absolute background layer inside dp-body only */
.dp-nameplate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 var(--radius) var(--radius) 0;
    z-index: 0;
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: opacity 0.4s;
}

.dp-nameplate.visible {
    opacity: 0.45;
}

.dp-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.dp-body.loaded {
    opacity: 1;
}

/* Children above nameplate */
.dp-body>*:not(.dp-nameplate) {
    position: relative;
    z-index: 1;
}

/* Square avatar with status dot */
.dp-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.dp-avatar {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    /* square with slight rounding */
    object-fit: cover;
    display: block;
    border: 2px solid rgba(220, 150, 40, 0.25);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.dp-status-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    /* square status indicator */
    border: 3px solid var(--bg);
    background: #747f8d;
    /* default: offline */
    box-shadow: 0 0 6px currentColor;
}

/* Status colours */
.dp-status-dot.online {
    background: #3ba55c;
    box-shadow: 0 0 8px #3ba55c;
}

.dp-status-dot.idle {
    background: #faa61a;
    box-shadow: 0 0 8px #faa61a;
}

.dp-status-dot.dnd {
    background: #ed4245;
    box-shadow: 0 0 8px #ed4245;
}

.dp-status-dot.offline {
    background: #747f8d;
    box-shadow: none;
}

/* Info */
.dp-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dp-username-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}

.dp-username {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-clan-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--pink);
    background: rgba(220, 150, 40, 0.12);
    border: 1px solid rgba(220, 150, 40, 0.28);
    border-radius: 5px;
    padding: 1px 6px 1px 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dp-clan-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.dp-status-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dp-status-label.online {
    color: #3ba55c;
}

.dp-status-label.idle {
    color: #faa61a;
}

.dp-status-label.dnd {
    color: #ed4245;
}

.dp-status-label.offline {
    color: #747f8d;
}

.dp-custom-status {
    font-size: 0.8rem;
    color: var(--text-mute);
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Activity section */
.dp-activity {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(220, 150, 40, 0.1);
    border-radius: 12px;
    gap: 10px;
    align-items: center;
}

.dp-activity.visible {
    display: flex;
}

.dp-activity-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.dp-activity-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.dp-activity-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pink);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dp-activity-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-activity-detail {
    font-size: 0.75rem;
    color: var(--text-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-activity-elapsed {
    font-size: 0.72rem;
    color: rgba(253, 232, 200, 0.45);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* Spotify progress bar inside Discord presence */
.dp-spotify-bar {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.dp-spotify-bar.visible {
    display: flex;
}

.dp-sp-time {
    font-size: 0.68rem;
    color: rgba(253, 232, 200, 0.45);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 26px;
}

.dp-sp-time:last-child {
    text-align: right;
}

.dp-sp-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.dp-sp-fill {
    height: 100%;
    width: 0%;
    background: var(--pink);
    border-radius: 3px;
    transition: width 1s linear;
}

.dp-custom-status .dp-emoji {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

/* Loading dots */
.dp-loading {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dp-loading.hidden {
    display: none;
}

.dp-loading-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pink);
    animation: dpDotPulse 1.2s ease-in-out infinite;
}

.dp-loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dp-loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dpDotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   BADGE CARD — image badges
   ============================================================ */
.badges-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.badge-item {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 2px;
    position: relative;
}

.badge-item::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(28, 10, 4, 0.92);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(220, 150, 40, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 99;
}

.badge-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================================
   FLOATING DECORATIONS
   ============================================================ */
.float-deco .float-el {
    position: fixed;
    pointer-events: none;
    font-size: 1.2rem;
    opacity: 0.45;
    animation: floatAround linear infinite;
    z-index: 2;
}

@keyframes floatAround {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.25;
    }

    10% {
        opacity: 0.55;
    }

    40% {
        transform: translateX(14px) translateY(-45px) rotate(8deg);
        opacity: 0.6;
    }

    70% {
        transform: translateX(-10px) translateY(-80px) rotate(-6deg);
        opacity: 0.5;
    }

    100% {
        transform: translateX(6px) translateY(-130px) rotate(4deg);
        opacity: 0;
    }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--pink-dark);
    border-radius: 3px;
}

/* ============================================================
   LỄ HỘI ĐÈN TRỜI — SKY LANTERNS
   ============================================================ */
#lanternContainer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.lantern {
    position: absolute;
    pointer-events: none;
    animation: lanternRise linear infinite;
    transform-origin: center bottom;
    filter:
        drop-shadow(0 0 10px rgba(255, 140, 20, 0.88)) drop-shadow(0 0 26px rgba(255, 55, 0, 0.48)) drop-shadow(0 0 50px rgba(180, 25, 0, 0.22));
}

.lantern img {
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes lanternRise {
    0% {
        transform: translateX(0px) translateY(0vh) rotate(-4deg);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    25% {
        transform: translateX(20px) translateY(-22vh) rotate(4deg);
    }

    50% {
        transform: translateX(-14px) translateY(-50vh) rotate(-3deg);
    }

    75% {
        transform: translateX(10px) translateY(-75vh) rotate(3deg);
    }

    92% {
        opacity: 0.65;
    }

    100% {
        transform: translateX(-6px) translateY(-108vh) rotate(-2deg);
        opacity: 0;
    }
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 4px;
}

.admin-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: var(--text-mute);
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 10px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.04em;
}

.admin-tab.active {
    background: rgba(220, 150, 40, 0.18);
    color: var(--pink);
    box-shadow: 0 0 0 1px rgba(220, 150, 40, 0.25);
}

.admin-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.admin-tab-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-tab-content.hidden {
    display: none;
}

/* Admin badge grid (inside panel) */
.admin-badge-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-dark) transparent;
}

.admin-badge-grid::-webkit-scrollbar {
    width: 4px;
}

.admin-badge-grid::-webkit-scrollbar-thumb {
    background: var(--pink-dark);
    border-radius: 2px;
}

.admin-badge-item {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px 4px 4px;
    transition: all 0.2s;
}

.admin-badge-item:hover {
    border-color: rgba(220, 150, 40, 0.5);
    background: rgba(220, 150, 40, 0.08);
    transform: translateY(-2px);
}

.admin-badge-item.selected {
    border-color: var(--pink);
    background: rgba(220, 150, 40, 0.12);
    box-shadow: 0 0 0 2px rgba(220, 150, 40, 0.25);
}

.admin-badge-item.selected::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: var(--pink);
    border-radius: 50%;
    font-size: 9px;
    color: #05080f;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.admin-badge-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(220, 150, 40, 0.3));
}

.admin-badge-item span {
    font-size: 0.5rem;
    color: var(--text-mute);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
    .page-wrapper {
        flex-direction: column;
    }

    .left-col {
        flex: none;
        width: 100%;
    }

    .right-col {
        grid-template-columns: 1fr;
    }

    .right-col .about-card {
        grid-column: 1;
    }

    .music-card {
        padding: 16px;
    }

    .music-body {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .music-art-wrapper {
        flex-shrink: 0;
    }

    .music-art {
        width: 100px;
        height: 100px;
        border-radius: 16px;
    }

    /* Info: full width, centered text */
    .music-info {
        width: 100%;
        text-align: center;
        min-width: 0;
    }

    .music-name {
        font-size: 1rem;
    }

    .music-artist {
        font-size: 0.82rem;
        margin-top: 3px;
    }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.admin-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.admin-modal {
    background: rgba(15, 0, 22, 0.92);
    border: 1px solid rgba(247, 168, 196, 0.3);
    border-radius: 20px;
    padding: 28px 28px 24px;
    width: min(640px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 8px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(247, 168, 196, 0.08);
    position: relative;
    animation: adminSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes adminSlideIn {
    from {
        transform: translateY(24px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.admin-screen {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-screen.hidden {
    display: none;
}

/* Header */
.admin-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.admin-header-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 12px rgba(247, 168, 196, 0.7));
}

.admin-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.06em;
}

.admin-hint {
    font-size: 0.72rem;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}

/* Close button */
.admin-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-mute);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.admin-close-btn:hover {
    background: rgba(237, 66, 69, 0.2);
    border-color: rgba(237, 66, 69, 0.4);
    color: #ed4245;
}

/* Inputs */
.admin-input-row {
    display: flex;
    gap: 8px;
}

.admin-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(247, 168, 196, 0.2);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.85rem;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input:focus {
    border-color: rgba(247, 168, 196, 0.55);
    box-shadow: 0 0 0 3px rgba(247, 168, 196, 0.08);
}

.admin-input::placeholder {
    color: var(--text-mute);
}

/* Buttons */
.admin-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 0.83rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-btn.primary {
    background: linear-gradient(135deg, rgba(247, 168, 196, 0.3), rgba(213, 166, 224, 0.25));
    border-color: rgba(247, 168, 196, 0.45);
    color: var(--pink);
}

.admin-btn.primary:hover {
    background: linear-gradient(135deg, rgba(247, 168, 196, 0.45), rgba(213, 166, 224, 0.35));
    box-shadow: 0 0 20px rgba(247, 168, 196, 0.25);
}

.admin-btn.small {
    padding: 9px 12px;
    font-size: 0.78rem;
}

.admin-btn.danger {
    background: rgba(237, 66, 69, 0.12);
    border-color: rgba(237, 66, 69, 0.3);
    color: #ed4245;
}

.admin-btn.danger:hover {
    background: rgba(237, 66, 69, 0.22);
    box-shadow: 0 0 14px rgba(237, 66, 69, 0.2);
}

/* Error text */
.admin-error {
    font-size: 0.78rem;
    color: #ed4245;
    text-align: center;
    min-height: 1em;
    text-shadow: 0 0 8px rgba(237, 66, 69, 0.5);
}

/* Deco grid */
.deco-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--pink-dark) transparent;
}

.deco-grid::-webkit-scrollbar {
    width: 4px;
}

.deco-grid::-webkit-scrollbar-thumb {
    background: var(--pink-dark);
    border-radius: 2px;
}

.deco-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Avatar silhouette preview under the deco */
.deco-item .deco-preview-bg {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(247, 168, 196, 0.35), rgba(213, 166, 224, 0.3));
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deco-item .deco-preview-img {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: contain;
    pointer-events: none;
}

.deco-item:hover {
    border-color: rgba(247, 168, 196, 0.5);
    background: rgba(247, 168, 196, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 168, 196, 0.2);
}

.deco-item.selected {
    border-color: var(--pink);
    background: rgba(247, 168, 196, 0.12);
    box-shadow: 0 0 0 2px rgba(247, 168, 196, 0.3), 0 6px 20px rgba(247, 168, 196, 0.25);
}

.deco-item.selected::after {
    content: '✓';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--pink);
    border-radius: 50%;
    font-size: 10px;
    color: #05080f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* "No deco" item */
.deco-item.deco-none .deco-preview-bg {
    background: rgba(255, 255, 255, 0.04);
}

.deco-item.deco-none .deco-none-label {
    font-size: 0.6rem;
    color: var(--text-mute);
    text-align: center;
    letter-spacing: 0.04em;
}

/* Divider */
.admin-divider {
    font-size: 0.7rem;
    color: var(--text-mute);
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-divider::before,
.admin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Actions row */
.admin-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Toast notification */
.admin-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 0, 22, 0.95);
    border: 1px solid rgba(247, 168, 196, 0.35);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--pink);
    z-index: 9999999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.admin-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   TYPING ANIMATION for username
   ============================================================ */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ============================================================
   SHIMMER on cards
   ============================================================ */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    pointer-events: none;
}

.card {
    position: relative;
    overflow: hidden;
}

/* ============================================================
   SPLASH INTRO OVERLAY
   ============================================================ */
#splashOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

/* Separate background layer — fades independently */
.splash-bg {
    position: absolute;
    inset: 0;
    background: #05080f;
    z-index: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.splash-bg.fading {
    opacity: 0;
}

#splashOverlay.ready {
    cursor: pointer;
}

#splashOverlay.fade-out {
    pointer-events: none;
}

/* Floating stars in overlay background */
.splash-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.splash-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: splashStarTwinkle linear infinite;
}

@keyframes splashStarTwinkle {

    0%,
    100% {
        opacity: 0.15;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.4);
    }
}

/* Row: lanterns + text */
.splash-center {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* Lantern images flanking the name */
.splash-lantern {
    width: clamp(70px, 10vw, 130px);
    height: auto;
    filter:
        drop-shadow(0 0 18px rgba(255, 140, 20, 0.9)) drop-shadow(0 0 40px rgba(255, 55, 0, 0.5));
    flex-shrink: 0;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

#splashOverlay.fade-out .splash-lantern {
    opacity: 0;
    filter: drop-shadow(0 0 0px transparent);
}

.splash-lantern-l {
    animation: splashLanternL 5s ease-in-out infinite alternate;
}

.splash-lantern-r {
    animation: splashLanternR 5s ease-in-out infinite alternate;
    animation-delay: -2.5s;
}

@keyframes splashLanternL {
    0% {
        transform: translateY(0px) rotate(-3deg);
    }

    100% {
        transform: translateY(-16px) rotate(3deg);
    }
}

@keyframes splashLanternR {
    0% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(6px) rotate(-3deg);
    }
}

/* SVG name text */
#splashSvg {
    width: clamp(280px, 60vw, 700px);
    overflow: visible;
}

#splashText {
    font-family: 'ShinaQalline', cursive;
    font-size: 108px;
    fill: transparent;
    stroke: #ffc840;
    stroke-width: 1.2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 14px rgba(255, 170, 20, 0.85)) drop-shadow(0 0 36px rgba(255, 80, 0, 0.45));
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    animation: splashWrite 3.2s cubic-bezier(0.4, 0, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

@keyframes splashWrite {
    to {
        stroke-dashoffset: 0;
    }
}

/* Fill phase — added via JS class after stroke finishes */
#splashText.filled {
    animation:
        splashFill 1s ease forwards,
        splashGlow 2s ease-in-out infinite alternate;
}

/* Dismiss phase — strokes retract (reverse draw) + fill vanishes */
#splashText.closing {
    fill: #ffc840;
    stroke-dashoffset: 0;
    animation:
        splashUnfill 1.1s cubic-bezier(0.5, 0, 0.8, 0.4) forwards,
        splashUnwrite 1.1s cubic-bezier(0.5, 0, 0.8, 0.4) forwards;
}

@keyframes splashUnfill {
    from {
        fill: #ffc840;
    }

    to {
        fill: transparent;
    }
}

@keyframes splashUnwrite {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 4000;
    }
}

@keyframes splashFill {
    from {
        fill: transparent;
    }

    to {
        fill: #ffc840;
    }
}

@keyframes splashGlow {
    0%, 100% {
        filter: drop-shadow(0 0 22px rgba(255, 210, 40, 1.0)) drop-shadow(0 0 50px rgba(255, 100, 0, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 32px rgba(255, 230, 80, 1.0)) drop-shadow(0 0 70px rgba(255, 130, 0, 0.8)) drop-shadow(0 0 100px rgba(255, 200, 0, 0.4));
    }
}

/* "press any key" hint */
.splash-hint {
    position: relative;
    z-index: 1;
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: rgba(255, 200, 100, 0.42);
    text-transform: uppercase;
    opacity: 0;
    animation: splashHintFade 0.8s ease forwards;
    animation-delay: 4.8s;
    transition: opacity 0.35s ease;
}

#splashOverlay.fade-out .splash-hint {
    opacity: 0 !important;
}

@keyframes splashHintFade {
    to {
        opacity: 1;
    }
}

/* ============================================================
   QR CARD
   ============================================================ */
.qr-card {
    text-align: center;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-subtitle {
    font-size: 0.85rem;
    color: var(--text-mute);
    margin-top: -8px;
    /* Bring it closer to the title since .qr-card has gap:16px */
    margin-bottom: 8px;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.05em;
    max-width: 80%;
    line-height: 1.4;
}

.qr-container {
    display: inline-block;
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 200, 64, 0.1), rgba(255, 200, 64, 0.3));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 200, 64, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.qr-container:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 200, 64, 0.4), 0 0 15px rgba(255, 200, 64, 0.6);
    border-color: var(--pink);
}

.qr-image {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    background: #fff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}