@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --accent-color: #ff3b3b; 
    --discord-online: #23a559;
    --discord-idle: #f0b232;
    --discord-dnd: #f23f43;
    --discord-offline: #80848e;
}

.theme-red { --accent-color: #ff3b3b; }
.theme-blue { --accent-color: #3b82f6; }
.theme-purple { --accent-color: #a855f7; }
.theme-green { --accent-color: #22c55e; }

* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: none;
    perspective: 1000px;
}

.custom-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -3;
    transition: opacity 0.5s ease;
}

.video-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -3;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
}

.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.4);
    position: fixed;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, background-color 0.15s, border-color 0.15s;
}

#cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.glass-card {
    position: relative;
    width: 95%;
    max-width: 720px;
    padding: 45px 35px;
    background: rgba(20, 20, 20, 0);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    text-align: center;
    z-index: 10;
    max-height: 90vh;
    overflow-y: visible;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.glass-card::-webkit-scrollbar {
    width: 4px;
}

.glass-card::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.glass-card.is-flipped {
    transform: none !important;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card.is-flipped .card-inner {
    transform: rotateY(180deg);
}

@keyframes jumpFlip {
    0% { transform: translateY(0) rotateY(0); }
    40% { transform: translateY(-30px) rotateY(90deg); }
    100% { transform: translateY(0) rotateY(180deg); }
}

@keyframes jumpFlipBack {
    0% { transform: translateY(0) rotateY(180deg); }
    40% { transform: translateY(-30px) rotateY(90deg); }
    100% { transform: translateY(0) rotateY(0); }
}

.glass-card.is-flipped.animate-jump .card-inner {
    animation: jumpFlip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.glass-card.animate-return .card-inner {
    animation: jumpFlipBack 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.card-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.card-front {
    position: relative;
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
}

.glass-card:not(.is-flipped) .card-back {
    visibility: hidden;
    pointer-events: none;
}

.glass-card.is-flipped .card-front {
    visibility: hidden;
    pointer-events: none;
}

.bank-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-frame {
    width: 250px;
    height: 250px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.qr-frame:hover {
    transform: scale(1.05);
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.bank-details {
    width: 100%;
    max-width: 400px;
    text-align: left;
    margin-top: 10px;
}

.bank-title {
    margin: 0 0 15px 0;
    text-transform: uppercase;
    color: var(--accent-color);
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.bank-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.bank-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.2);
}

.bank-text-group {
    display: flex;
    flex-direction: column;
}

.bank-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.bank-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
    text-decoration: none;
    -webkit-text-decoration: none;
}

.bank-value a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

.bank-label {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.copy-btn:active {
    transform: scale(0.9);
}

.return-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.return-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.profile-header {
    margin-bottom: 25px;
    transform: translateZ(20px);
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    transform: translateZ(30px);
}

.avatar-box {
    position: relative;
    width: 100%;
    height: 100%;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: 2;
    pointer-events: none;
}

.status-indicator {
    width: 22px;
    height: 22px;
    position: absolute;
    bottom: 2px;
    right: 2px;
    z-index: 5;
    border-radius: 50%;
    background-color: #101010;
    border: 3px solid #101010;
    box-sizing: content-box;
}

.status-indicator.online {
    background-color: var(--discord-online);
}

.status-indicator.idle {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

.status-indicator.idle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--discord-idle);
    -webkit-mask: radial-gradient(circle at 20% 10%, transparent 35%, black 36%);
    mask: radial-gradient(circle at 20% 10%, transparent 35%, black 36%);
    transform: rotate(-15deg);
}

.status-indicator.idle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 14px;
    height: 14px;
    background: #101010;
    border-radius: 50%;
    z-index: -1;
}

.status-indicator.dnd {
    background-color: var(--discord-dnd);
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator.dnd::after {
    content: '';
    width: 12px;
    height: 4px;
    background-color: #101010;
    border-radius: 2px;
}

.status-indicator.offline {
    background-color: #101010;
    border: 2px solid var(--discord-offline);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #101010;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator.offline::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--discord-offline);
    border-radius: 50%;
    display: none;
}

.status-bubble {
    position: absolute;
    top: -5px;
    right: -85px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    animation: floatBubble 4s ease-in-out infinite;
    z-index: 10;
    transform: translateZ(45px);
}

.status-bubble::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent rgba(15,15,15,0.95) transparent transparent;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.username {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transform: translateZ(25px);
}

.verify-badge {
    color: #3b82f6;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(59,130,246,0.5));
}

.user-meta-container {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 14px;
    border-radius: 10px;
    gap: 12px;
    margin-bottom: 20px;
    transform: translateZ(20px);
}

.tag-username {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #ccc;
}

.badges-list {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid #444;
}

.badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.bio-container {
    min-height: 30px;
    margin: 0 auto 25px;
    max-width: 90%;
    transform: translateZ(20px);
}

#typed-bio {
    color: #f2f2f2; 
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    font-family: 'Outfit', sans-serif;
}

.typed-cursor {
    color: var(--accent-color);
    font-size: 1.15rem;
}

.activity-card {
    display: flex;
    align-items: center;
    background: rgba(22, 22, 22, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin: 20px auto;
    width: 100%;
    text-align: left;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateZ(25px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.activity-card:hover {
    transform: translateZ(35px) translateY(-3px);
    border-color: rgba(255,255,255,0.3);
    background: rgba(30, 30, 30, 0.85);
}

.activity-images {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.act-large-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.act-small-img {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #181818;
    background: #000;
}

.act-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #555;
}

.activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.act-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.act-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-details, .act-state {
    font-size: 0.9rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-timer {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #aaa;
    font-family: 'JetBrains Mono', monospace;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 15px;
    transform: translateZ(30px);
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: none;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.link-item:active {
    transform: scale(0.95);
}

.link-item i {
    margin-right: 0;
}

.footer {
    margin-top: 35px;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 1px;
    transform: translateZ(10px);
}

.music-widget {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid #333;
    padding: 10px 18px 10px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: none;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.music-widget:hover {
    transform: scale(1.05);
    background: rgba(20, 20, 20, 0.95);
    border-color: #555;
}

.music-icon-spin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    overflow: hidden;
    animation: spin 4s linear infinite;
    animation-play-state: paused;
    border: 2px solid #111;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.music-content {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.music-label {
    font-size: 0.65rem;
    color: #666;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#music-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
}

.music-control {
    width: 36px;
    height: 36px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s;
}

@media (max-width: 768px) {
    .glass-card { 
        width: 92%; 
        padding: 35px 20px; 
        max-height: 85vh; 
    }
    
    .card-inner {
        min-height: 450px;
    }
    
    .card-back { 
        padding: 35px 20px; 
    }
    
    .status-bubble { 
        right: auto; 
        left: 50%; 
        top: -45px; 
        transform: translateX(-50%); 
    }
    
    .status-bubble::before { 
        left: 50%; 
        bottom: -6px; 
        top: auto; 
        transform: translateX(-50%); 
        border-width: 6px 6px 0 6px; 
        border-color: rgba(15,15,15,0.95) transparent transparent transparent; 
    }
    
    .status-bubble::after { 
        display: none; 
    }
    
    .music-widget { 
        bottom: 20px; 
        right: 20px; 
        padding: 8px 12px; 
    }
    
    .username { 
        font-size: 1.5rem; 
    }
    
    #cursor-dot, #cursor-outline { 
        display: none; 
    }
    
    body, a, button { 
        cursor: auto; 
    }
    
    .qr-frame { 
        width: 220px; 
        height: 220px; 
    }
    
    .bank-details {
        max-width: 100%;
    }
    
    .bank-title {
        font-size: 1.2rem;
    }
}