/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* BODY */
body {
    min-height: 100vh;
    position: relative;
    z-index: 0;
    color: white;
    padding: 40px 14px;

    /* IMAGE BACKGROUND */
    background: url("../images/bgimage.png") center center / cover no-repeat fixed;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    z-index: -1;
    pointer-events: none;
}


/* DARK OVERLAY */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: -1;
    pointer-events: none;
}

/* HEADER */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: headerFloat 6s ease-in-out infinite;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;

    box-shadow:
        0 0 20px rgba(255,255,255,.15),
        0 0 40px rgba(255,255,255,.08);

    animation: logoPulse 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.08) rotate(3deg);
}

.title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    animation: titleGlow 2.5s ease-in-out infinite;
}

@keyframes headerFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes logoPulse {
    0%,100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes titleGlow {
    0%,100% {
        text-shadow:
            0 0 10px rgba(255,255,255,.15),
            0 0 25px rgba(255,255,255,.08);
    }

    50% {
        text-shadow:
            0 0 15px rgba(255,255,255,.25),
            0 0 40px rgba(255,255,255,.15);
    }
}

/* TIER */
.tier-title {
    text-align: center;
    font-size: 13px;
    opacity: .6;
    margin: 18px 0 12px;
    letter-spacing: 2px;
}

.tier-top {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

/* GRID */
.container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5,250px);
    justify-content: center;
    gap: 14px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* BODY */
body {
    min-height: 100vh;
    position: relative;
    z-index: 0;
    color: white;
    padding: 40px 14px;

    /* IMAGE BACKGROUND */
    background: url("../images/bgimage.png") center center / cover no-repeat fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
    pointer-events: none;
}

/* HEADER */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: headerFloat 6s ease-in-out infinite;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 20px rgba(255,255,255,.15),
        0 0 40px rgba(255,255,255,.08);
    animation: logoPulse 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.08) rotate(3deg);
}

.title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    animation: titleGlow 2.5s ease-in-out infinite;
}

/* GRID */
.container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5,250px);
    justify-content: center;
    gap: 14px;
}

/* =========================
   ✅ CARD (GLASSMORPHISM FIXED)
   - NO layout changes
   - NO position changes
   - ONLY visual upgrade
========================= */

.card {
    width: 250px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;

    /* OLD BASE REMOVED SAFELY */
    background: rgba(20, 20, 28, 0.45);

    /* GLASS EFFECT */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 10px 22px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.05);

    cursor: pointer;

    opacity: 0;
    transform: translateY(10px);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        opacity .35s ease,
        filter .35s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}

/* LIGHT SWIPE EFFECT (UNCHANGED) */
.card::after {
    content: "";
    position: absolute;
    inset: -60%;

    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(255,255,255,.04) 45%,
        rgba(255,255,255,.16) 50%,
        rgba(255,255,255,.04) 55%,
        transparent 60%
    );

    transform: translateX(-120%) rotate(12deg);
    transition: transform .7s ease;
    pointer-events: none;
}

.card:hover::after {
    transform: translateX(120%) rotate(12deg);
}

/* HOVER GLOW (SAFE) */
.card:hover {
    transform: translateY(-6px) scale(1.02);

    border-color: rgba(255,255,255,.25);

    box-shadow:
        0 18px 40px rgba(0,0,0,.7),
        0 0 25px rgba(255,255,255,.12);

    filter: brightness(1.05);
}

/* BANNER */
.banner {
    height: 80px;
    background: linear-gradient(135deg,#1a1a22,#0f0f13);
}

/* AVATAR */
.avatar-wrapper {
    width: 92px;
    height: 92px;
    position: absolute;
    left: 50%;
    top: 36px;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 10;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* STATUS DOT */


.avatar-wrapper {
    width: 92px;
    height: 92px;
    position: absolute;
    left: 50%;
    top: 36px;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 50;
}

.status {
    position: absolute;

    width: 16px;
    height: 16px;

    right: 4px;
    bottom: 4px;

    border-radius: 50%;
    border: 3px solid #0a0a0d;

    z-index: 999;
}

/* ONLINE */
.status.online {
    background: #23a55a;
}

/* IDLE */
.status.idle {
    background: #f0b232;
}

/* DND */
.status.dnd {
    background: #f23f43;
}

/* OFFLINE */
.status.offline {
    background: #000000;
}
/*glow*/
.status {
    animation: statusGlow 2s ease-in-out infinite;
}

/* ONLINE */
.status.online {
    background: #23a55a;
    box-shadow:
        0 0 6px #23a55a,
        0 0 12px #23a55a,
        0 0 20px rgba(35,165,90,.8);
}

/* IDLE */
.status.idle {
    background: #f0b232;
    box-shadow:
        0 0 6px #f0b232,
        0 0 12px #f0b232,
        0 0 20px rgba(240,178,50,.8);
}

/* DND */
.status.dnd {
    background: #f23f43;
    box-shadow:
        0 0 6px #f23f43,
        0 0 12px #f23f43,
        0 0 20px rgba(242,63,67,.8);
}

/* OFFLINE */
.status.offline {
    background: #747f8d;
    box-shadow:
        0 0 4px #747f8d,
        0 0 10px rgba(116,127,141,.5);
}

@keyframes statusGlow {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.15);
        filter: brightness(1.25);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* =========================
   CARD TEXT
========================= */

.content {
    padding-top: 70px;
    text-align: center;
}

.name {
    font-size: 16px;
    font-weight: 800;
}

.role {
    font-size: 11px;
    color: rgba(255,255,255,.45);
}


/* =========================
   ACTIVITY AREA
   (Discord-like layout)
========================= */

.activity {
    font-size: 11px;
    color: rgba(255,255,255,.65);

    margin-top: 6px;
    padding: 0 8px;

    line-height: 1.35;
    min-height: 40px;

    text-align: center;
}


/* =========================
   FINAL CUSTOM DISCORD EMOJI FIX
========================= */

.status-emoji {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    object-fit: contain !important;
    vertical-align: -2px !important;
    display: inline-block !important;
}



/* =========================
   DISCORD STATUS PILL
========================= */

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 100%;

    margin-top: 6px;
    padding: 4px 10px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
    gap: 6px;

    margin-left: auto;
    margin-right: auto;
}


/* Status indicator inside pill */

.status-pill::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
    flex-shrink: 0;
}


/* ONLINE */

.status-pill.online {
    color: #3cff8f;
    background: rgba(60,255,143,.12);
}

.status-pill.online::before {
    background: #3cff8f;
}


/* IDLE */

.status-pill.idle {
    color: #ffd34d;
    background: rgba(255,211,77,.12);
}

.status-pill.idle::before {
    background: #ffd34d;
}


/* DND */

.status-pill.dnd {
    color: #ff4d4d;
    background: rgba(255,77,77,.12);
}

.status-pill.dnd::before {
    background: #ff4d4d;
}


/* OFFLINE */

.status-pill.offline {
    color: #aaa;
    background: rgba(120,120,120,.12);
}

.status-pill.offline::before {
    background: #777;
}
/* =========================
   MODERN INTRO SCREEN
========================= */

#intro {
    position: fixed;
    inset: 0;

    background: #000;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    z-index: 99999;
    cursor: pointer;

    opacity: 1;
    transition:
        opacity 1.2s ease,
        filter 1.2s ease;
}

/* INTRO EXIT */

#intro.fade-out {
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;
}


/* TITLE */

#introText {
    color: #fff;

    font-size: 48px;
    font-weight: 900;

    letter-spacing: 4px;
    text-align: center;

    text-shadow:
        0 0 10px rgba(255,255,255,.2),
        0 0 30px rgba(255,255,255,.12);

    animation: introGlow 2.5s ease-in-out infinite;
}


/* BLINKING CURSOR */

#introText::after {
    content: "|";
    margin-left: 5px;

    animation: blink .8s infinite;
}


/* CONTINUE TEXT */

#continueText {
    margin-top: 25px;

    color: rgba(255,255,255,.65);

    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;

    opacity: 0;

    animation: pulse 2s infinite;
}


#continueText.show {
    opacity: 1;
    transition: opacity 1s ease;
}


/* =========================
   INTRO ANIMATIONS
========================= */

@keyframes blink {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


@keyframes pulse {

    0%, 100% {
        opacity: .45;
    }

    50% {
        opacity: 1;
    }
}


@keyframes introGlow {

    0%, 100% {
        text-shadow:
            0 0 10px rgba(255,255,255,.2),
            0 0 30px rgba(255,255,255,.12);
    }

    50% {
        text-shadow:
            0 0 18px rgba(255,255,255,.4),
            0 0 55px rgba(255,255,255,.22);
    }
}


/* =========================
   RESPONSIVE DESIGN
========================= */

/* 4 cards per row */

@media (max-width: 1400px) {

    .container {
        grid-template-columns: repeat(4, 250px);
    }
}


/* 3 cards per row */

@media (max-width: 1100px) {

    .container {
        grid-template-columns: repeat(3, 250px);
    }

    .title {
        font-size: 28px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }
}


/* 2 cards per row */

@media (max-width: 820px) {

    .container {
        grid-template-columns: repeat(2, 250px);
    }

    #introText {
        font-size: 38px;
    }
}


/* Mobile */

@media (max-width: 580px) {

    body {
        padding: 25px 10px;
    }


    header {
        gap: 10px;
        margin-bottom: 25px;
    }


    .title {
        font-size: 20px;
        letter-spacing: 1px;
    }


    .logo {
        width: 50px;
        height: 50px;
    }


    .container {
        grid-template-columns: 1fr;
        justify-items: center;
    }


    .tier-top {
        gap: 10px;
    }


    .card {
        width: 250px;
    }


    #introText {
        font-size: 30px;
        letter-spacing: 2px;
    }


    #continueText {
        font-size: 11px;
        letter-spacing: 2px;
    }
}
