:root {
    --primary-glow: #ff0055;
    --secondary-glow: #00d4ff;
    --discord-dark: #111214;
    --discord-card-bg: #18191c;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #050505;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-video {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -1;
    filter: brightness(0.4) contrast(1.1);
}

.main-layout {
    position: relative;
    z-index: 10;
    display: flex;
    width: 98%;
    max-width: 1650px;
    height: 90vh;
    gap: 70px;
    align-items: center;
}

/* --- Premium Discord Card --- */
.premium-discord-card {
    flex: 0 0 340px;
    min-height: 570px;
    background: rgba(17, 18, 20, 0.95);
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: sideSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 0, 0, 0.4);
    position: relative;
    padding-bottom: 20px;
    overflow: hidden;
    margin-left: -50px;
    margin-top: -80px;
    transition: transform 0.25s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1200px;
    transform: perspective(1200px) rotateY(12deg) rotateX(2deg);
}



.premium-discord-card:hover {
    box-shadow: 0 0 80px rgba(255, 0, 0, 0.4);
    border-color: rgba(255, 0, 0, 0.8);
    z-index: 100;
}

/* Holographic Shine Overlay */
.premium-discord-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 0, 0, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(255, 255, 255, 0) 70%
    );
    background-size: 200% 200%;
    animation: holoShine 6s linear infinite;
    pointer-events: none;
    z-index: 20;
}

@keyframes holoShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.p-banner {
    height: 140px;
    background-image: url('https://cdn.discordapp.com/attachments/1502217900428361751/1502238684458520658/demon-slayer-kimetsu-no-yaiba.gif?ex=6a004dcc&is=69fefc4c&hm=94469d581bb98eb3e196e506d8ff9a42e8b86ff02eef8fc96623d3015acd6fd8&');
    background-size: cover;
    background-position: 0% 20%; /* Balanced view */
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
}

/* Shine Effect for Banner */
.p-banner::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    animation: bannerShine 4s infinite linear;
}

.p-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExNHJieGR6bzR5ZHJ6YnJyYnJyYnJyYnJyYnJyYnJyYnJyYnJyJnB0PXN3JmU9cw/3o7TKVUn7iM8FMEU24/giphy.gif');
    opacity: 0.1;
    pointer-events: none;
    mix-blend-mode: screen;
}

.p-header {
    padding: 0 16px;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.p-avatar-container {
    position: absolute;
    top: -55px;
    left: 16px;
    background: var(--discord-dark);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.p-avatar-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid #ff0000;
    animation: avatarPulse 2s infinite;
}

@keyframes avatarPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.8; }
}

#p-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 5;
    transition: transform 0.3s;
    border: 3px solid rgba(255, 0, 0, 0.4);
}

.p-avatar-container:hover #p-avatar {
    transform: scale(1.1);
}

.p-decoration {
    position: absolute;
    top: -3px; left: -3px;
    width: 105%; height: 105%;
    z-index: 10;
    pointer-events: none;
    text-indent: -9999px; /* Hide broken text */
}

.p-status {
    position: absolute;
    bottom: 5px; right: 5px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 5px solid var(--discord-dark);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-online { background: #23a55a; }
.status-idle { background: #f0b232; }
.status-idle::after {
    content: "";
    width: 12px; height: 12px;
    background: var(--discord-dark);
    border-radius: 50%;
    position: absolute;
    top: -2px; left: -2px;
}
.status-dnd { background: #f23f43; }
.status-dnd::after {
    content: "";
    width: 10px; height: 3px;
    background: var(--discord-dark);
    border-radius: 4px;
}
.status-offline { background: #80848e; }
.status-offline::after {
    content: "";
    width: 8px; height: 8px;
    background: var(--discord-dark);
    border-radius: 50%;
}

.p-badges {
    margin-top: 15px;
    display: flex;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 8px;
}

.p-badges img {
    width: 24px; height: 24px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.2));
}

.p-content {
    padding: 20px 16px;
    background: var(--discord-dark);
    color: #dbdee1;
}

.p-glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    font-size: 1.5rem !important;
}

.p-sub-names {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #b5bac1;
    margin-top: 4px;
}

.p-hz-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 3px;
}

.hz-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.p-badges-row {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.p-badges-row img {
    width: 20px;
    height: 20px;
}

.p-link-blue {
    color: #00a8fc;
    text-decoration: none;
    font-size: 0.85rem;
}

.p-link-blue:hover {
    text-decoration: underline;
}

/* Dynamic Activity Slots */
.p-activity-card {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.act-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.act-body {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.act-large {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.act-img-stack {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.act-small {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #1e1f22;
    object-fit: cover;
    background: #1e1f22;
}

.act-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.act-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 2px;
}

.act-detail {
    font-size: 0.8rem;
    color: #b5bac1;
    margin-bottom: 8px;
}

.p-spotify-time-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.time-text {
    font-size: 0.7rem;
    color: #fff;
    min-width: 32px;
}

.p-spotify-progress {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.p-spotify-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Right Section Slots */
.right-section { flex-grow: 1; display: flex; flex-direction: column; gap: 15px; animation: mainFadeIn 1.2s ease-out; }
.main-title { 
    font-size: 5.5rem; 
    font-weight: 900; 
    text-align: center; 
    text-transform: uppercase;
    letter-spacing: 15px;
    margin-top: 20px; /* Resetting to bring cards back up */
    margin-bottom: 0px; /* Moving title closer to cards */
    position: relative;
}

.text-blue {
    background: linear-gradient(to bottom, #fff 35%, #00d4ff 50%, #0088ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}

.text-red {
    background: linear-gradient(to bottom, #fff 35%, #ff0033 50%, #cc0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 0, 51, 0.4));
}

/* Metallic Continuous Shine */
.main-title::after {
    content: "HYPERS ZONE";
    position: absolute;
    top: 0; left: 50%; width: 100%; height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,0.3) 50%, transparent 55%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: metallicSweep 4s infinite linear;
    pointer-events: none;
}

@keyframes metallicSweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.music-player-top { position: fixed; top: 30px; right: 30px; z-index: 1000; }
.music-player { 
    background: rgba(15, 15, 15, 0.85); 
    backdrop-filter: blur(30px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 16px; 
    padding: 12px 20px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    width: 400px; 
    box-shadow: 0 20px 45px rgba(0,0,0,0.6);
    transition: 0.3s ease;
}
.music-player:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.album-art { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.song-info { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.song-title { font-size: 0.85rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-controls { margin-left: 8px; }
.control-btn { cursor: pointer; color: #fff; font-size: 1.1rem; transition: 0.2s; }
.control-btn:hover { transform: scale(1.1); }

.premium-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 20px;
    flex-grow: 1;
}

.tk-card {
    background: rgba(17, 19, 21, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 210px; /* Forces uniform exact height */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    gap: 15px;
}
.tk-card:hover { 
    border-color: rgba(255, 255, 255, 0.3); 
    transform: translateY(-5px); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); 
}

/* Shiny Continuous Shimmer Effect */
.tk-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 5;
    animation: continuousShine 4s infinite linear;
}

@keyframes continuousShine {
    0% { left: -150%; }
    100% { left: 150%; }
}

.tk-left { display: flex; flex-direction: column; justify-content: center; z-index: 2; width: auto; flex-shrink: 1; min-width: 0; }
.tk-header { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.tk-divider { color: #555; font-weight: 300; }
.tk-role { color: #999; font-weight: 400; font-size: 0.8rem; }

.tk-name { font-size: 1.8rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.tk-name img { height: 22px; width: auto; flex-shrink: 0;}
.tk-sub { font-size: 0.75rem; letter-spacing: 2px; color: #777; font-weight: 600; margin-bottom: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

.tk-stats { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; width: fit-content; }
.tk-stat { display: flex; align-items: center; gap: 6px; }
.tk-stat i { font-size: 1rem; color: #888; }
.tk-stat-text { display: flex; flex-direction: column; }
.tk-stat-val { color: #fff; font-weight: 700; font-size: 0.9rem; }
.tk-stat-lbl { color: #777; font-size: 0.65rem; }
.tk-divider-vertical { width: 1px; height: 18px; background: rgba(255,255,255,0.1); }

.tk-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
.tk-btn { 
    padding: 10px 20px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; 
    cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: none; outline: none;
    text-transform: capitalize;
    position: relative; overflow: hidden;
}

.tk-btn:hover {
    transform: translateY(-4px) scale(1.06);
}

/* Platform Colors & Glows */
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { box-shadow: 0 10px 25px rgba(88, 101, 242, 0.5); }

.btn-youtube { background: #ff0000; color: #fff; }
.btn-youtube:hover { box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5); }

.btn-telegram { background: #0088cc; color: #fff; }
.btn-telegram:hover { box-shadow: 0 10px 25px rgba(0, 136, 204, 0.5); }

.tk-follow { background: #fff; color: #000; }
.tk-follow:hover { background: #fff; box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3); }

.tk-msg { 
    background: rgba(255,255,255,0.05); color: #fff; 
    border: 1px solid rgba(255,255,255,0.1); padding: 10px 18px; 
    border-radius: 50px;
}
.tk-msg:hover { background: rgba(255,255,255,0.1); transform: rotate(15deg) scale(1.1); }

.tk-discord { display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 500; margin-left: 6px; transition: 0.3s;}
.tk-discord:hover { color: var(--secondary-glow); }

.tk-middle { display: none; }

.tk-right { display: flex; align-items: center; justify-content: flex-end; width: auto; z-index: 2; flex-shrink: 0;}
.tk-avatar-wrapper {
    width: 110px; height: 110px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tk-avatar-wrapper img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-watermark {
    position: absolute;
    right: 25%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
}

.particles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

@keyframes sideSlideIn { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mainFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hidden { display: none !important; }

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.volume-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2000;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 48px;
    height: 48px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.volume-container:hover {
    width: 200px;
    gap: 15px;
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.volume-icon {
    font-size: 1.2rem;
    color: #fff;
    width: 24px;
    flex-shrink: 0;
    text-align: center;
    transition: 0.2s;
}

.volume-icon:hover {
    transform: scale(1.1);
    color: var(--primary-glow);
}

.volume-slider-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.volume-container:hover .volume-slider-wrapper {
    opacity: 1;
    transform: translateX(0);
}

#volume-slider {
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 10px;
    outline: none;
    position: relative;
    /* This will be updated by JS: --volume-percent */
    background-image: linear-gradient(#fff, #fff);
    background-size: var(--volume-percent, 100%) 100%;
    background-repeat: no-repeat;
}

#volume-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 10px;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    margin-top: -4px; /* Centers thumb on 6px track */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transition: 0.2s ease;
    border: 2px solid #fff;
}

#volume-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 20px #fff;
}

#volume-slider::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#volume-slider::-moz-range-progress {
    height: 6px;
    background: #fff;
    border-radius: 10px;
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* --- RESPONSIVE DESIGN (FOR MOBILE & TABLETS) --- */
@media screen and (max-width: 1200px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding: 40px 10px;
    }

    .main-layout {
        flex-direction: column;
        height: auto;
        gap: 40px;
        width: 100%;
        padding: 0 15px;
    }

    .premium-discord-card {
        flex: none;
        width: 100%;
        max-width: 450px;
        min-height: auto;
        transform: none !important;
        margin: 0 auto;
    }

    .right-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-title {
        font-size: 4rem;
        text-align: center;
        margin-bottom: 30px;
    }

    .premium-cards-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }

    .music-player-top {
        position: relative;
        top: 0; right: 0;
        margin-bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .music-player {
        width: 100%;
        max-width: 450px;
    }
}

@media screen and (max-width: 768px) {
    .main-title {
        font-size: 3.2rem;
    }

    .tk-card {
        flex-direction: column;
        height: auto;
        padding: 30px 20px;
        gap: 20px;
        text-align: center;
    }

    .tk-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tk-stats {
        justify-content: center;
        width: 100%;
    }

    .tk-actions {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .tk-right {
        width: 100%;
        justify-content: center;
    }

    .tk-avatar-wrapper {
        width: 120px;
        height: 120px;
    }

    .card-watermark {
        font-size: 7rem;
        opacity: 0.02;
    }
    
    .tk-discord {
        margin-left: 0;
        margin-top: 5px;
    }

    #splash-subtitle {
        font-size: 0.8rem;
    }
}

@media screen and (max-height: 700px) {
    .main-layout {
        padding-top: 20px;
    }
}
