﻿/* ================= USER PROFILES & SETTINGS REFINED ================= */

/* Message Layout: Icon Outside Bubble */
.message {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 15px;
    max-width: 85%;
}

.message-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.message-profile-pic:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: #00C9FF;
    box-shadow: 0 0 15px rgba(0, 201, 255, 0.5);
}

/* User Profile Modal (Elegant Card) */
.profile-view-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: url(#liquidGlass) blur(30px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-view-modal.active {
    display: flex;
    opacity: 1;
}

.profile-modal-content {
    background: rgba(15, 15, 20, 0.1) !important;
    backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    -webkit-backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    width: 340px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Luxury Glow Layer for Profile Modal */
.profile-modal-content::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 201, 255, 0.08) 0%, transparent 60%);
    animation: luxuryGlow 15s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

/* Nuclear Noise Layer for Profile Modal */
.profile-modal-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.22'/%3E%3C/svg%3E"),
        var(--rough-frost-noise);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

.profile-view-modal.active .profile-modal-content {
    transform: translateY(0);
}

.profile-modal-banner {
    height: 80px;
    background: linear-gradient(45deg, #111, #333);
}

.profile-modal-body {
    padding: 0 25px 35px;
    margin-top: -55px;
    text-align: center;
}

.profile-pic-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.profile-pic-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1a1a1a;
    background: #1a1a1a;
}

.profile-pic-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00C9FF, #92FE9D);
    z-index: -1;
    animation: rotateGlow 4s linear infinite;
}

#viewProfileUsername {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
}

.profile-view-status {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: #92FE9D;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.profile-bio-container {
    background: rgba(255, 255, 255, 0.035);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: url(#liquidGlass) blur(30px);
    margin-bottom: 25px;
}

#viewProfileBio {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    word-wrap: break-word;
}

.profile-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.profile-modal-close:hover {
    background: #ff006e;
    transform: rotate(90deg);
}

/* Settings Modal Base Styling */
.settings-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: url(#liquidGlass) blur(30px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-modal.active {
    display: flex;
    opacity: 1;
}

.settings-modal-content {
    background: rgba(15, 15, 20, 0.08) !important;
    backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    -webkit-backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    width: 95%;
    max-width: 450px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.settings-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 201, 255, 0.08) 0%, transparent 60%);
    animation: luxuryGlow 15s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

.settings-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('data:image/svg+xml,%3Csvg viewBox=' '0 0 200 200' ' xmlns=' 'http://www.w3.org/2000/svg' '%3E%3Cfilter id=' 'noiseFilter' '%3E%3CfeTurbulence type=' 'fractalNoise' ' baseFrequency=' '0.65' ' numOctaves=' '3' ' stitchTiles=' 'stitch' '/%3E%3C/filter%3E%3Crect width=' '100%25' ' height=' '100%25' ' filter=' 'url(%23noiseFilter)' ' opacity=' '0.14' '/%3E%3C/svg%3E'),
        var(--rough-frost-noise);
    opacity: 0.20;
    pointer-events: none;
    z-index: -1;
}

.settings-modal.active .settings-modal-content {
    background: rgba(15, 15, 20, 0.08) !important;
    backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    -webkit-backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    width: 95%;
    max-width: 450px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.settings-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 201, 255, 0.08) 0%, transparent 60%);
    animation: luxuryGlow 15s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

.settings-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('data:image/svg+xml,%3Csvg viewBox=' '0 0 200 200' ' xmlns=' 'http://www.w3.org/2000/svg' '%3E%3Cfilter id=' 'noiseFilter' '%3E%3CfeTurbulence type=' 'fractalNoise' ' baseFrequency=' '0.65' ' numOctaves=' '3' ' stitchTiles=' 'stitch' '/%3E%3C/filter%3E%3Crect width=' '100%25' ' height=' '100%25' ' filter=' 'url(%23noiseFilter)' ' opacity=' '0.14' '/%3E%3C/svg%3E'),
        var(--rough-frost-noise);
    opacity: 0.20;
    pointer-events: none;
    z-index: -1;
}

.settings-body .input-container:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00C9FF;
    box-shadow: 0 0 15px rgba(0, 201, 255, 0.2);
}

.settings-body input,
.settings-body textarea {
    background: transparent !important;
    border: none !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff !important;
    padding: 12px 15px !important;
    width: 100%;
}

.settings-body textarea {
    resize: none;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00C9FF, #92FE9D);
    transition: width 0.3s ease;
}

.input-container:focus-within .input-border {
    width: 100%;
}

/* Creative Save Button */
.save-btn {
    background: linear-gradient(45deg, #00C9FF, #92FE9D) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 15px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #000 !important;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 201, 255, 0.3) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
    margin-top: 10px;
}

.save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 201, 255, 0.5) !important;
}

/* ================= IMAGE CROP MODAL ================= */
.crop-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: url(#liquidGlass) blur(30px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crop-modal.active {
    display: flex;
    opacity: 1;
}

.crop-modal-content {
    background: #111;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crop-header {
    padding: 15px 20px;
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.crop-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00C9FF;
    font-size: 1rem;
    letter-spacing: 2px;
    margin: 0;
}

.crop-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}

.crop-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crop-container {
    width: 100%;
    max-height: 400px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.crop-container img {
    max-width: 100%;
}

.crop-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.crop-preview-container p {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.crop-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00C9FF;
    background: #222;
}

.crop-footer {
    padding: 15px 20px;
    background: #1a1a1a;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.crop-cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    transition: all 0.2s;
}

.crop-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.crop-apply-btn {
    background: linear-gradient(45deg, #00C9FF, #92FE9D);
    border: none;
    color: #000;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(0, 201, 255, 0.3);
    transition: all 0.2s;
}

.crop-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 201, 255, 0.5);
}

/* ================= REFINED TRAY LAYOUT ================= */
.user-hamburger-menu {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    right: 0;
    top: 0;
    height: 100%;
    width: 320px;
    background: rgba(15, 15, 20, 0.1) !important;
    /* 60% Transparent */
    backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(120%) !important;
    -webkit-backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(120%) !important;
    border-left: 1.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
    z-index: 10001 !important;
    overflow: hidden;
}

.hamburger-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding-bottom: 40px !important;
}

.genz-container-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-gap: 16px !important;
    padding: 24px !important;
    background: transparent !important;
}

.genz-container {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

.genz-container:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

.genz-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #00C9FF !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-family: 'Orbitron', sans-serif !important;
}

.setting-item {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(0, 201, 255, 0.3) !important;
    transform: translateX(5px) !important;
}

.setting-item i {
    font-size: 1rem !important;
    color: #00C9FF !important;
}

.setting-item.logout {
    border-color: rgba(255, 0, 110, 0.1) !important;
}

.setting-item.logout:hover {
    background: rgba(255, 0, 110, 0.05) !important;
    border-color: #ff006e !important;
    color: #ff006e !important;
}

.setting-item.logout:hover i {
    color: #ff006e !important;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ================= NEW TRAY REFINEMENTS ================= */

/* Online Users Bar */
.online-users-bar {
    margin: 16px 24px 0;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.online-users-bar:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00C9FF;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.bar-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 201, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00C9FF;
    font-size: 1.2rem;
}

.bar-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bar-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.bar-count {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    color: #00ff41;
    font-weight: 600;
}

.bar-arrow {
    color: rgba(255, 255, 255, 0.3);
}

/* Games Mini List */
.games-mini-list {
    display: flex;
    gap: 10px;
}

.game-btn-mini {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.game-btn-mini:hover {
    background: #00C9FF;
    color: #000;
    transform: rotate(10deg);
}

/* Online Users Modal */
.online-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: url(#liquidGlass) blur(30px);
    display: none;
    z-index: 200000;
    align-items: center;
    justify-content: center;
}

.online-list-modal.active {
    display: flex;
}

.online-modal-content {
    width: 90%;
    max-width: 400px;
    height: 80vh;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.online-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

#closeOnlineModal {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.online-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow: hidden;
}

.online-search-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.online-search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.detailed-users-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Detailed User Item */
.detailed-user-item {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.detailed-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-item-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.user-item-info {
    flex: 1;
}

.user-item-name {
    display: block;
    color: #fff;
    font-weight: 600;
}

.user-item-status {
    font-size: 0.75rem;
    color: #00ff41;
}

/* Header overrides removed to prevent conflicts with style.css */

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    position: relative;
    gap: 0 !important;
    /* Managed by flex-grow */
}

.logo-mini {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-content: flex-start !important;
}

.center-controls {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    justify-content: center !important;
    pointer-events: none;
    /* Container is passthrough */
    transform: none !important;
    position: static !important;
}

.regular-user-controls,
.developer-controls {
    display: none;
    /* Controlled by JS */
    align-items: center !important;
    justify-content: center !important;
    pointer-events: all;
    position: static !important;
    transform: none !important;
}

.right-controls {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    justify-content: flex-end !important;
    z-index: 10 !important;
}

.bulb-container {
    margin: 0 !important;
}

.user-hamburger-btn {
    margin: 0 !important;
    position: relative;
    z-index: 10;
}

.online-counter {
    margin: 0 !important;
    font-size: 1rem !important;
    padding: 6px 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
}

#onlineCount {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

@media (max-width: 480px) {


    .header-content {
        justify-content: space-between !important;
    }

    .logo-mini .logo-text {
        font-size: 0.9rem !important;
        letter-spacing: 0.5px !important;
    }

    .center-controls {
        gap: 10px !important;
    }

    .online-counter {
        display: flex !important;
        transform: none !important;
        padding: 4px 10px !important;
    }

    .theme-toggle-container {
        display: flex !important;
    }

}

/* ================= CUSTOM MODALS (CONFIRM/WARN) ================= */
.custom-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: url(#liquidGlass) blur(30px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300000 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.active {
    display: flex;
    opacity: 1;
}

.confirm-modal-content {
    background: #0d0d12;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    border: 1px solid rgba(0, 201, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 201, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.custom-modal.active .confirm-modal-content {
    transform: scale(1);
}

.confirm-header {
    padding: 20px;
    background: rgba(0, 201, 255, 0.05);
    border-bottom: 1px solid rgba(0, 201, 255, 0.1);
    text-align: center;
}

.confirm-header h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    color: #00C9FF;
    font-size: 1rem;
    letter-spacing: 3px;
}

.confirm-body {
    padding: 30px 20px;
    text-align: center;
}

#confirmMessage {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-yes-btn,
.confirm-no-btn {
    padding: 10px 30px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    letter-spacing: 1px;
}

.confirm-yes-btn {
    background: #00C9FF;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 201, 255, 0.4);
}

.confirm-yes-btn:hover {
    background: #92FE9D;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(146, 254, 157, 0.5);
}

.confirm-no-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.confirm-no-btn:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: #ff006e;
    color: #ff006e;
}

/* Warn Modal Refinement */
.warn-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: url(#liquidGlass) blur(30px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300000 !important;
}

.warn-modal-content {
    background: #111;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    border: 1px solid #ff006e;
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.3);
    overflow: hidden;
}

.warn-header {
    background: rgba(255, 0, 110, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 0, 110, 0.2);
}

.warn-header h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    color: #ff006e;
    font-size: 1rem;
    letter-spacing: 2px;
}

.warn-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}

.warn-body {
    padding: 20px;
}

.warn-body p {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    margin-bottom: 15px;
}

#warnUserName {
    color: #ff006e;
    font-weight: 700;
}

.warn-body textarea {
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    padding: 12px;
    font-family: 'Rajdhani', sans-serif;
    resize: none;
}

.warn-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.warn-send-btn {
    flex: 2;
    background: #ff006e;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.warn-cancel-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    cursor: pointer;
}

/* ================= FOLLOW SYSTEM ================= */

/* Profile Stats Bar - Elegant & Modern */
/* Profile Stats Bar - Super Premium Sub-Glass */
.profile-stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 25px 0;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.035) !important;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: url(#liquidGlass) blur(30px) !important;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-count {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(to bottom, #fff, #00C9FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Follow Button - Sleek Glow */
.follow-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(45deg, #00C9FF, #92FE9D);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 201, 255, 0.3);
    text-shadow: none;
}

.follow-btn i {
    font-size: 1rem;
}

.follow-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 201, 255, 0.5);
}

.follow-btn.following {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
}

.follow-btn.following:hover {
    background: rgba(255, 0, 110, 0.15);
    border-color: #ff006e;
    color: #ff006e;
}

/* Badges */
.mutual-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-left: 8px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    vertical-align: middle;
    display: inline-block;
}

.follows-you-tag {
    font-size: 0.7rem;
    color: #92FE9D;
    font-weight: 600;
    margin-top: 2px;
    display: block;
}

/* Locked DM */
.message-btn.dm-locked {
    display: none !important;
}

/* DM Guidance Tag */
.dm-guidance-tag {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin: 10px 0;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Profile Loader Overlay */
.profile-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: url(#liquidGlass) blur(30px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
}

.profile-loader-overlay.active {
    display: flex;
}

.elegant-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 201, 255, 0.1);
    border-top: 3px solid #00C9FF;
    border-radius: 50%;
    animation: elegant-spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 15px rgba(0, 201, 255, 0.2);
}

@keyframes elegant-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button Loading State */
.follow-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.follow-btn.loading span {
    display: none;
}

.follow-btn.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: elegant-spin 0.6s linear infinite;
}

/* Follow List Modal */
.follow-list-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: url(#liquidGlass) blur(30px);
    z-index: 10000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.follow-list-modal.active {
    display: flex;
    opacity: 1;
}

.follow-modal-content {
    width: 90%;
    max-width: 400px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.follow-list-modal.active .follow-modal-content {
    transform: scale(1);
}

.follow-modal-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.follow-modal-header h3 {
    flex: 1;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}

.follow-modal-back,
.follow-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.follow-modal-back:hover,
.follow-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.follow-modal-back:hover {
    color: #00C9FF;
}

.follow-modal-close:hover {
    color: #ff006e;
}

.follow-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}



/* Premium Ambient Glow & Noise Layers */
.user-hamburger-menu::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 201, 255, 0.05) 0%, transparent 60%);
    animation: luxuryGlow 15s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

.user-hamburger-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E"),
        var(--rough-frost-noise);
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

@keyframes luxuryGlow {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: translate(-10%, 10%);
        opacity: 0.6;
    }
}

/* Luxury Menu Bars */
.menu-bar {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: url(#liquidGlass) blur(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.menu-bar:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 201, 255, 0.15) !important;
    transform: translateX(-5px) scale(1.02);
}






/* RESTORED CSS START */
.settings-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.settings-close {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.settings-close:hover {
    opacity: 1;
    color: #ff006e;
}

.settings-body {
    padding: 25px;
}

/* Edit Profile Sections */
.edit-profile-pic-section {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.edit-pic-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #00C9FF;
    background: #222;
    box-shadow: 0 0 20px rgba(0, 201, 255, 0.3);
}

.edit-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-pic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-pic-container:hover .edit-pic-overlay {
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.edit-profile-pic-section p {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #00C9FF, #92FE9D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-top: 5px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.edit-profile-pic-section p:hover {
    opacity: 0.8;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* RESTORED CSS END */


/* FORCED GLASS OVERRIDE */
.settings-modal-content {
    background: rgba(15, 15, 20, 0.08) !important;
    backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    -webkit-backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
}

.settings-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('data:image/svg+xml,%3Csvg viewBox=' '0 0 200 200' ' xmlns=' 'http://www.w3.org/2000/svg' '%3E%3Cfilter id=' 'noiseFilter' '%3E%3CfeTurbulence type=' 'fractalNoise' ' baseFrequency=' '0.65' ' numOctaves=' '3' ' stitchTiles=' 'stitch' '/%3E%3C/filter%3E%3Crect width=' '100%25' ' height=' '100%25' ' filter=' 'url(%23noiseFilter)' ' opacity=' '0.14' '/%3E%3C/svg%3E'),
        var(--rough-frost-noise);
    opacity: 0.20;
    pointer-events: none;
    z-index: -1;
}


/* SUPER-SPECIFIC GLASS OVERRIDE */
#settingsModal .settings-modal-content {
    background: rgba(15, 15, 20, 0.08) !important;
    backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    -webkit-backdrop-filter: url(#liquidGlass) blur(30px) saturate(250%) contrast(125%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
    overflow: hidden !important;
}

#settingsModal .settings-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url('data:image/svg+xml,%3Csvg viewBox=' '0 0 200 200' ' xmlns=' 'http://www.w3.org/2000/svg' '%3E%3Cfilter id=' 'noiseFilter' '%3E%3CfeTurbulence type=' 'fractalNoise' ' baseFrequency=' '0.65' ' numOctaves=' '3' ' stitchTiles=' 'stitch' '/%3E%3C/filter%3E%3Crect width=' '100%25' ' height=' '100%25' ' filter=' 'url(%23noiseFilter)' ' opacity=' '0.14' '/%3E%3C/svg%3E'),
        var(--rough-frost-noise);
    opacity: 0.20;
    pointer-events: none;
    z-index: -1;
}

#settingsModal .settings-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 201, 255, 0.08) 0%, transparent 60%);
    animation: luxuryGlow 15s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}



/* PURE LIQUID GLASS OVERRIDE (NO DARKNESS) */
.settings-modal {
    background: transparent !important;
}

#settingsModal .settings-modal-content {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: url(#liquidGlass) blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: url(#liquidGlass) blur(25px) saturate(200%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Add specular highlight for that 'wet' surface look */
#settingsModal .settings-modal-content::before {
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.1) 100%) !important;
    opacity: 0.6 !important;
}


/* ULTRA-PURE TRANSPARENCY OVERRIDE (NO MILK) */
#settingsModal .settings-modal-content {
    background: transparent !important;
    backdrop-filter: url(#liquidGlass) blur(20px) saturate(250%) brightness(1.1) !important;
    -webkit-backdrop-filter: url(#liquidGlass) blur(20px) saturate(250%) brightness(1.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3) !important;
}

#settingsModal .settings-modal-content::before {
    /* Subtle gloss only, no heavy white fill */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%) !important;
    opacity: 1 !important;
}

#settingsModal .settings-modal-content::after {
    /* Minimal noise for texture, barely visible */
    opacity: 0.08 !important;
}


/* ================= SKELETON LOADER ANIMATIONS ================= */
.skeleton-loader-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.skeleton-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-text {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
}

.skeleton-text.title {
    width: 50%;
    height: 14px;
}

.skeleton-text.subtitle {
    width: 30%;
}

/* Shimmer Animation */
.skeleton-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}