/* --- Profile Page Specific Styles --- */

/* Banner Background */
.profile-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    height: 6rem;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* --- Cards --- */
.profile-card {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.profile-card-content {
    position: relative;
    z-index: 10;
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

/* --- Avatar --- */
.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-image {
    width: 6rem;
    height: 6rem;
    border-radius: 1rem;
    object-fit: cover;
    border: 4px solid #0f172a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-card:hover .avatar-image {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    bottom: -0.5rem;
    right: -0.5rem;
    background-color: #0f172a;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.status-text {
    background-color: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
}

/* --- Nav Links (Settings, Menu) --- */
.nav-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: rgba(55, 65, 81, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.nav-card:hover .nav-icon-box.blue {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.nav-card:hover .nav-icon-box.purple {
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

/* --- Balance Cards --- */
.balance-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.balance-glow {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    filter: blur(40px);
    z-index: 0;
}

.glow-green { background-color: rgba(34, 197, 94, 0.1); }
.glow-blue { background-color: rgba(59, 130, 246, 0.1); }
.glow-yellow { background-color: rgba(234, 179, 8, 0.1); }

.balance-content {
    position: relative;
    z-index: 10;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.balance-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.bg-icon-green { background-color: rgba(34, 197, 94, 0.2); color: #4ade80; }
.bg-icon-blue { background-color: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.bg-icon-yellow { background-color: rgba(234, 179, 8, 0.2); color: #facc15; }

.balance-action {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-green-soft { background-color: rgba(34, 197, 94, 0.2); color: #86efac; }
.btn-green-soft:hover { background-color: rgba(34, 197, 94, 0.3); }

.btn-blue-soft { background-color: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.btn-blue-soft:hover { background-color: rgba(59, 130, 246, 0.3); }

.btn-yellow-soft { background-color: rgba(234, 179, 8, 0.2); color: #fde047; }
.btn-yellow-soft:hover { background-color: rgba(234, 179, 8, 0.3); }

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: monospace;
}

/* --- Info Lists (Ref, Bonuses) --- */
.info-panel {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.ref-link-box {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ref-copy-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s;
}

.ref-copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- Bonuses Panel Specific --- */
.bonuses-panel {
    background: linear-gradient(to bottom right, rgba(49, 46, 129, 0.4), rgba(88, 28, 135, 0.4));
    border-color: rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url('/assets/img/noise.png');
    opacity: 0.05;
    pointer-events: none;
}

.bonus-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Loading & Error --- */
.center-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
    padding: 2rem;
}