/* styles.css - Complete Updated Version */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --neon-primary: #ff00de;
    --neon-secondary: #00ffff;
    --neon-accent: #ff5500;
    --neon-success: #00ff00;
    --neon-warning: #ffff00;
    --bg-primary: #0a0a16;
    --bg-secondary: #1a1a2e;
    --chat-bg: var(--bg-primary);
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--bg-primary);
    color: #fff;
    overflow: hidden;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100vw;
    position: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Screen Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* Enhanced Splash Screen */
.splash-neon-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.neon-lights-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.neon-light {
    position: absolute;
    width: 4px;
    height: 100px;
    background: var(--neon-primary);
    box-shadow: 
        0 0 10px var(--neon-primary),
        0 0 20px var(--neon-primary),
        0 0 40px var(--neon-primary);
    animation: moveLightFast 3s linear infinite;
    opacity: 0.8;
}

@keyframes moveLightFast {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.neon-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(10, 10, 22, 0.8);
    padding: 3rem;
    border-radius: 50%;
    border: 3px solid var(--neon-primary);
    box-shadow: 
        0 0 50px var(--neon-primary),
        inset 0 0 50px rgba(255, 0, 222, 0.3);
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.neon-text {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-primary),
        0 0 30px var(--neon-primary),
        0 0 40px var(--neon-primary);
    animation: flicker 1.5s infinite alternate;
    text-align: center;
}

.neon-text span {
    color: var(--neon-secondary);
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-secondary),
        0 0 30px var(--neon-secondary),
        0 0 40px var(--neon-secondary);
}

.neon-subtitle {
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
    color: #aaa;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px var(--neon-primary),
            0 0 30px var(--neon-primary),
            0 0 40px var(--neon-primary);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-secondary), transparent);
    animation: scan 3s linear infinite;
    box-shadow: 0 0 10px var(--neon-secondary);
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Auth Screens */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 1rem;
}

.neon-border {
    border: 2px solid var(--neon-primary);
    border-radius: 15px;
    padding: 1.5rem;
    background: rgba(10, 10, 22, 0.9);
    box-shadow: 
        0 0 10px var(--neon-primary),
        0 0 20px var(--neon-primary),
        inset 0 0 10px rgba(255, 0, 222, 0.1);
    animation: borderGlow 2s infinite alternate;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

@keyframes borderGlow {
    0% {
        box-shadow: 
            0 0 10px var(--neon-primary),
            0 0 20px var(--neon-primary),
            inset 0 0 10px rgba(255, 0, 222, 0.1);
    }
    100% {
        box-shadow: 
            0 0 15px var(--neon-primary),
            0 0 30px var(--neon-primary),
            0 0 40px var(--neon-primary),
            inset 0 0 15px rgba(255, 0, 222, 0.2);
    }
}

.neon-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px var(--neon-primary);
    font-size: 1.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-primary);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group textarea {
    min-height: 80px;
    resize: vertical;
}

.input-group input:focus, .input-group textarea:focus {
    box-shadow: 0 0 10px var(--neon-primary);
    border-color: var(--neon-secondary);
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-primary);
}

.neon-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:hover {
    box-shadow: 0 0 15px var(--neon-primary);
    transform: translateY(-2px);
}

.neon-btn-small {
    padding: 8px 16px;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
    width: auto;
}

.neon-btn-small:hover {
    box-shadow: 0 0 10px var(--neon-primary);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-switch span {
    color: var(--neon-secondary);
    cursor: pointer;
    text-decoration: underline;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(26, 26, 46, 0.9);
    border-bottom: 1px solid var(--neon-primary);
    box-shadow: 0 0 10px rgba(255, 0, 222, 0.3);
    position: relative;
    z-index: 10;
    height: 60px;
}

/* Enhanced Search Bar */
.neon-search {
    position: relative;
    flex: 1;
    margin-right: 1rem;
}

.search-neon-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary), var(--neon-accent), var(--neon-success));
    background-size: 400% 400%;
    animation: gradientMove 3s ease infinite;
    z-index: -1;
}

.search-neon-border::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-primary);
    border-radius: 18px;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.neon-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 20px;
    color: #fff;
    outline: none;
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

.neon-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-secondary);
    z-index: 2;
}

.profile-section {
    position: relative;
}

.profile-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.profile-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.profile-icon img, .clickable-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid var(--neon-primary);
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--neon-primary);
}

.online-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--neon-success);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    z-index: 3;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid var(--neon-primary);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    display: none;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(255, 0, 222, 0.5);
}

.profile-menu.show {
    display: block;
}

.menu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: rgba(255, 0, 222, 0.2);
    color: var(--neon-primary);
}

/* App Navigation */
.app-nav {
    display: flex;
    background: rgba(26, 26, 46, 0.9);
    border-bottom: 1px solid var(--neon-primary);
    box-shadow: 0 0 10px rgba(255, 0, 222, 0.3);
    height: 50px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    font-size: 0.8rem;
    position: relative;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.nav-item span {
    font-size: 0.7rem;
}

.nav-item.active {
    color: var(--neon-primary);
}

.nav-item.active i {
    text-shadow: 0 0 10px var(--neon-primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--neon-primary);
    box-shadow: 0 0 5px var(--neon-primary);
}

/* Main Content */
.app-main {
    flex: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.tab-content {
    display: none;
    height: 100%;
    flex-direction: column;
}

.tab-content.active {
    display: flex;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.8);
    border-bottom: 1px solid rgba(255, 0, 222, 0.3);
}

.tab-header h3 {
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--neon-success);
    color: var(--neon-success);
    font-weight: bold;
}

.user-balance i {
    color: var(--neon-success);
}

.scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Chat Items */
.chat-item, .contact-item, .group-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.chat-item:hover, .contact-item:hover, .group-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-primary);
    transform: translateX(5px);
}

.chat-item img, .contact-item img, .group-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--neon-primary);
}

.chat-info, .contact-info, .group-info {
    flex: 1;
}

.chat-info h4, .contact-info h4, .group-info h4 {
    color: #fff;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.chat-info p, .contact-info p, .group-info p {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.chat-time {
    font-size: 0.7rem;
    color: #666;
}

.unread-count {
    background: var(--neon-primary);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 0 5px var(--neon-primary);
}

/* Chat Window */
.chat-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--chat-bg);
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.chat-window.hidden {
    display: none;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: rgba(26, 26, 46, 0.9);
    border-bottom: 1px solid var(--neon-primary);
    box-shadow: 0 0 10px rgba(255, 0, 222, 0.3);
}

.back-btn {
    background: none;
    border: none;
    color: var(--neon-primary);
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 1rem;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 0, 222, 0.2);
    box-shadow: 0 0 5px var(--neon-primary);
}

.chat-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.chat-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--neon-primary);
}

.chat-info h4 {
    color: #fff;
    margin-bottom: 2px;
    font-size: 1rem;
}

.chat-info span {
    color: var(--neon-success);
    font-size: 0.8rem;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-primary);
    color: var(--neon-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--neon-primary);
    color: #fff;
    box-shadow: 0 0 10px var(--neon-primary);
}

/* Messages */
.messages-container {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;
}

.message.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    color: #fff;
    border-bottom-right-radius: 5px;
}

.message.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(255, 0, 222, 0.3);
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

/* Message Input */
.message-input-container {
    padding: 1rem;
    background: rgba(26, 26, 46, 0.9);
    border-top: 1px solid var(--neon-primary);
}

.attachment-options {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.attachment-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-primary);
    color: var(--neon-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-btn:hover {
    background: var(--neon-primary);
    color: #fff;
    box-shadow: 0 0 8px var(--neon-primary);
}

.message-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.message-input input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-primary);
    border-radius: 25px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}

.message-input input:focus {
    box-shadow: 0 0 10px var(--neon-primary);
}

.message-input button {
    background: linear-gradient(45deg, var(--neon-primary), var(--neon-secondary));
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-input button:hover {
    box-shadow: 0 0 15px var(--neon-primary);
    transform: scale(1.1);
}

/* Sticker Panel */
.sticker-panel {
    background: rgba(26, 26, 46, 0.95);
    border-top: 1px solid var(--neon-primary);
    height: 200px;
    display: flex;
    flex-direction: column;
}

.sticker-panel.hidden {
    display: none;
}

.sticker-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 0, 222, 0.3);
}

.sticker-panel-header h4 {
    color: #fff;
    font-size: 0.9rem;
}

.close-panel-btn {
    background: none;
    border: none;
    color: var(--neon-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.stickers-container {
    flex: 1;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sticker-item {
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.sticker-item:hover {
    background: rgba(255, 0, 222, 0.2);
    transform: scale(1.1);
}

/* Enhanced Sticker Store */
.sticker-categories-nav {
    display: flex;
    gap: 8px;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 0, 222, 0.3);
    overflow-x: auto;
    background: rgba(26, 26, 46, 0.8);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sticker-categories-nav::-webkit-scrollbar {
    display: none;
}

.sticker-category-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 20px;
    color: #aaa;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.sticker-category-btn.active {
    background: rgba(255, 0, 222, 0.2);
    color: var(--neon-primary);
    border-color: var(--neon-primary);
    box-shadow: 0 0 10px rgba(255, 0, 222, 0.5);
}

.sticker-store-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.stickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 1rem;
    align-content: start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100%;
}

.sticker-store-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sticker-store-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 222, 0.2), transparent);
    transition: 0.5s;
}

.sticker-store-item:hover::before {
    left: 100%;
}

.sticker-store-item:hover {
    border-color: var(--neon-primary);
    background: rgba(255, 0, 222, 0.1);
    transform: translateY(-5px);
}

.sticker-store-item.owned {
    border-color: var(--neon-success);
    background: rgba(0, 255, 0, 0.1);
}

.sticker-store-item.premium {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.sticker-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--neon-primary);
    box-shadow: 0 0 15px rgba(255, 0, 222, 0.5);
    transition: all 0.3s ease;
}

.sticker-store-item:hover .sticker-circle {
    background: rgba(255, 0, 222, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-primary);
}

.sticker-price {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.sticker-price.free {
    color: var(--neon-success);
}

.sticker-price.premium {
    color: #ffaa00;
}

.sticker-name {
    font-size: 0.7rem;
    color: #aaa;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: rgba(10, 10, 22, 0.95);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* Fullscreen Modals */
.fullscreen-modal {
    padding: 0;
}

.fullscreen-modal .modal-content {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Profile Picture Viewer */
.profile-pic-viewer {
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic-fullscreen {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px var(--neon-primary);
}

.profile-pic-fullscreen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-pic-neon-lights {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--neon-primary), var(--neon-secondary), var(--neon-accent), var(--neon-success), var(--neon-primary));
    animation: rotate 3s linear infinite;
    z-index: -1;
    filter: blur(10px);
}

.close-profile-pic {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--neon-primary);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-profile-pic:hover {
    background: var(--neon-primary);
    color: #000;
    box-shadow: 0 0 20px var(--neon-primary);
}

/* Premium Settings Modal */
.premium-settings {
    position: relative;
    overflow: hidden;
}

.premium-neon-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.premium-neon-lights::before,
.premium-neon-lights::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 222, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    animation: floatPremium 6s ease-in-out infinite;
}

.premium-neon-lights::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.premium-neon-lights::after {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes floatPremium {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 46, 0.9);
    border-bottom: 1px solid var(--neon-primary);
    position: relative;
    z-index: 2;
}

.modal-header h2 {
    color: #fff;
    font-size: 1.3rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.close-modal {
    background: none;
    border: none;
    color: var(--neon-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    text-shadow: 0 0 10px var(--neon-primary);
    transform: scale(1.2);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
}

/* Settings Structure */
.profile-settings-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 0, 222, 0.3);
}

.profile-settings-section h3 {
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Theme Colors Section */
.theme-colors-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 0, 222, 0.3);
}

.theme-colors-section h3 {
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.theme-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.theme-color-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-color-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 222, 0.2), transparent);
    transition: 0.5s;
}

.theme-color-item:hover::before {
    left: 100%;
}

.theme-color-item:hover {
    border-color: var(--neon-primary);
    background: rgba(255, 0, 222, 0.1);
    transform: translateY(-5px);
}

.theme-color-item.owned {
    border-color: var(--neon-success);
    background: rgba(0, 255, 0, 0.1);
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px currentColor;
}

.theme-color-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Settings */
.settings-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.settings-tab {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #aaa;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.settings-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 222, 0.3), transparent);
    transition: 0.5s;
}

.settings-tab:hover::before {
    left: 100%;
}

.settings-tab.active {
    background: rgba(255, 0, 222, 0.2);
    color: var(--neon-primary);
    border-color: var(--neon-primary);
    box-shadow: 0 0 10px rgba(255, 0, 222, 0.5);
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-panel h3 {
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.premium-subtitle {
    color: var(--neon-secondary);
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.user-balance-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 255, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--neon-success);
    color: var(--neon-success);
    font-weight: bold;
    margin-bottom: 1rem;
}

.collection-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.stat-badge {
    background: rgba(255, 0, 222, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--neon-primary);
    color: var(--neon-primary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Profile Picture Upload */
.profile-pic-upload {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-pic-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-pic-container img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--neon-primary);
    box-shadow: 0 0 20px var(--neon-primary);
    position: relative;
    z-index: 2;
}

.profile-pic-container.large img {
    width: 120px;
    height: 120px;
}

.profile-lights {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--neon-primary), var(--neon-secondary), var(--neon-accent), var(--neon-primary));
    animation: rotate 3s linear infinite;
    z-index: 1;
}

.profile-lights::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--bg-primary);
    border-radius: 50%;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Avatars Grid */
.avatars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.avatar-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.avatar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 222, 0.2), transparent);
    transition: 0.5s;
}

.avatar-item:hover::before {
    left: 100%;
}

.avatar-item:hover {
    border-color: var(--neon-primary);
    background: rgba(255, 0, 222, 0.1);
    transform: translateY(-5px);
}

.avatar-item.owned {
    border-color: var(--neon-success);
    background: rgba(0, 255, 0, 0.1);
}

.avatar-item.premium {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.avatar-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid var(--neon-primary);
}

.avatar-item span {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
}

.avatar-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-category {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 15px;
    color: #aaa;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.avatar-category.active {
    background: rgba(255, 0, 222, 0.2);
    color: var(--neon-primary);
    border-color: var(--neon-primary);
}

/* Profile View */
.profile-view {
    text-align: center;
}

.profile-view h3 {
    margin: 1rem 0 0.5rem 0;
    color: #fff;
    font-size: 1.3rem;
}

.profile-view p {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.profile-bio {
    font-style: italic;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--neon-primary);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.stat {
    text-align: center;
    padding: 10px;
}

.stat span {
    display: block;
    font-size: 1.8rem;
    color: var(--neon-primary);
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-primary);
}

.stat small {
    color: #aaa;
    font-size: 0.8rem;
}

/* Empty States */
.no-chats, .no-groups, .no-contacts, .no-avatars, .no-stickers {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* Stories Section */
.stories-container {
    padding: 10px;
    background: rgba(26, 26, 46, 0.9);
    border-bottom: 1px solid rgba(255, 0, 222, 0.3);
}

.stories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 70px;
}

.story-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--neon-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.story-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.add-story .story-circle {
    border: 2px dashed var(--neon-secondary);
}

.add-story .story-circle i {
    color: var(--neon-secondary);
    font-size: 1.2rem;
}

.story-item span {
    font-size: 0.7rem;
    color: #aaa;
    text-align: center;
}

.story-item.active .story-circle {
    border-color: var(--neon-success);
    box-shadow: 0 0 10px var(--neon-success);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--neon-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
}

.typing-indicator span {
    animation: pulse 1.5s infinite;
}

.typing-dots {
    display: flex;
    gap: 2px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: var(--neon-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Message Status Indicators */
.message-status {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.6rem;
    margin-left: 5px;
}

.message-status i {
    color: var(--neon-secondary);
}

.message-status.read i {
    color: var(--neon-success);
}

/* Media Messages */
.media-message {
    max-width: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.media-message img, .media-message video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.file-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid var(--neon-primary);
}

.file-icon {
    font-size: 1.5rem;
    color: var(--neon-primary);
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 2px;
}

.file-size {
    font-size: 0.7rem;
    color: #aaa;
}

.download-btn {
    background: var(--neon-primary);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.7rem;
}

/* Message Actions */
.message-actions {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 10px;
    padding: 10px;
    min-width: 150px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.action-buttons button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.action-buttons button:hover {
    background: rgba(255, 0, 222, 0.3);
}

/* Purchase Modal */
.purchase-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.cancel-btn {
    background: linear-gradient(45deg, #ff4444, #ff8800) !important;
}



/* Story Upload */
.story-upload-content {
    background: #000;
    border: none;
}

.story-upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--neon-primary);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.story-upload-header h3 {
    color: #fff;
    margin: 0;
}

.story-upload-body {
    padding-top: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    flex: 1;
    overflow-y: auto;
}

.story-media-item {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.story-media-item img, .story-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-media-item.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--neon-primary);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.story-preview-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.story-preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.story-preview-container img, .story-preview-container video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
}

.story-preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 2rem;
}

/* Story Viewer */
.story-viewer {
    background: #000;
    border: none;
}

.story-viewer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.story-viewer-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.viewer-info {
    flex: 1;
}

.viewer-info h4 {
    color: #fff;
    margin: 0;
    font-size: 0.9rem;
}

.viewer-info span {
    color: #aaa;
    font-size: 0.7rem;
}

.story-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-content img, .story-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.story-viewer-actions {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.story-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Referral Section */
.referral-content {
    text-align: center;
}

.referral-code-section {
    margin-bottom: 2rem;
}

.referral-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-primary);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border: 2px solid var(--neon-primary);
    text-shadow: 0 0 10px var(--neon-primary);
}

.referral-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1rem 0;
}

.referral-benefits ul {
    text-align: left;
    color: #fff;
    list-style: none;
    padding: 0;
}

.referral-benefits li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-benefits li:before {
    content: "✓";
    color: var(--neon-success);
    margin-right: 10px;
}

/* Group Avatar Section */
.group-avatar-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 222, 0.3);
}

.group-avatar-options {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.group-avatar-option {
    flex: 1;
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.group-avatar-option.active {
    background: rgba(255, 0, 222, 0.2);
    border-color: var(--neon-primary);
}

.group-avatar-option i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--neon-primary);
}

.group-avatar-option span {
    font-size: 0.8rem;
    color: #fff;
}

.group-avatar-preview {
    text-align: center;
    margin: 1rem 0;
}

.group-avatar-preview img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-primary);
}

#group-default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--neon-primary);
    margin: 0 auto;
}

#group-default-avatar i {
    font-size: 2rem;
    color: var(--neon-primary);
}

/* Message Edit Mode */
.message-input.edit-mode {
    border-color: var(--neon-secondary);
    box-shadow: 0 0 10px var(--neon-secondary);
}

.edit-mode-indicator {
    color: var(--neon-secondary);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.cancel-edit-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Premium Badge */
.premium-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--neon-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Payment Success Styles */
.payment-success-content {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--neon-success);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--neon-success);
}

.neon-lights-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, var(--neon-success) 150%);
    animation: successPulse 2s ease-in-out;
    z-index: -1;
}

@keyframes successPulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Payment Failed Styles */
.payment-failed-content {
    text-align: center;
    padding: 2rem;
}

.failed-icon {
    font-size: 4rem;
    color: #ff4444;
    margin-bottom: 1rem;
}

/* User Profile Modal */
.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
    justify-content: center;
}

/* Group Info Modal */
.group-info-view {
    text-align: center;
}

.group-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid var(--neon-primary);
}

.group-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-members-section {
    margin-top: 1.5rem;
}

.group-members-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

/* New Enhanced Profile Stats */
.enhanced-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 1.5rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-primary);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 0, 222, 0.1);
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--neon-primary);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-primary);
    text-shadow: 0 0 10px var(--neon-primary);
    display: block;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #aaa;
}

/* Purchase History Section */
.purchase-history {
    margin-top: 2rem;
}

.purchase-history h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.purchase-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 222, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-item:hover {
    background: rgba(255, 0, 222, 0.1);
}

.purchase-info h5 {
    color: #fff;
    margin-bottom: 5px;
}

.purchase-info p {
    color: #aaa;
    font-size: 0.8rem;
}

.purchase-amount {
    color: var(--neon-success);
    font-weight: bold;
}

/* Chat Themes */
.chat-themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 1rem;
}

.chat-theme-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-theme-item:hover {
    border-color: var(--neon-primary);
    background: rgba(255, 0, 222, 0.1);
    transform: translateY(-2px);
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid var(--neon-primary);
}

.default-theme {
    background: var(--bg-primary);
}

.neon-grid-theme {
    background: linear-gradient(45deg, #0a0a16, #1a1a2e);
    position: relative;
    overflow: hidden;
}

.neon-grid-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 49%, var(--neon-primary) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, var(--neon-primary) 50%, transparent 51%);
    background-size: 20px 20px;
    opacity: 0.3;
}

.cyber-circuit-theme {
    background: #0a0a16;
    position: relative;
    overflow: hidden;
}

.cyber-circuit-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, var(--neon-primary) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, var(--neon-secondary) 0%, transparent 50%);
    opacity: 0.2;
}

.matrix-theme {
    background: #000;
    position: relative;
    overflow: hidden;
}

.matrix-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 49%, var(--neon-success) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, var(--neon-success) 50%, transparent 51%);
    background-size: 10px 10px;
    opacity: 0.3;
}

.galaxy-theme {
    background: linear-gradient(45deg, #000428, #004e92);
    position: relative;
    overflow: hidden;
}

.galaxy-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, #fff 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, #fff 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, #fff 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.5;
}

.custom-theme {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-primary);
}

.custom-theme-upload {
    margin-top: 1rem;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .neon-text {
        font-size: 2rem;
    }
    
    .neon-circle-center {
        width: 250px;
        height: 250px;
        padding: 2rem;
    }
    
    .app-header {
        padding: 0.5rem;
    }
    
    .profile-icon span {
        display: none;
    }
    
    .nav-item span {
        font-size: 0.6rem;
    }
    
    .message {
        max-width: 85%;
    }
    
    .avatars-grid, .stickers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .settings-tabs {
        flex-direction: column;
    }
    
    .settings-tab {
        flex: none;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .chat-header {
        padding: 0.5rem;
    }
    
    .message-input-container {
        padding: 0.5rem;
    }
    
    .tab-header {
        padding: 0.8rem;
    }
    
    .sticker-store-item {
        padding: 10px;
    }
    
    .sticker-circle {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .stickers-grid {
        gap: 10px;
        padding: 0.8rem;
    }
    
    .theme-colors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-media-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .enhanced-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-themes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .neon-text {
        font-size: 1.5rem;
    }
    
    .neon-circle-center {
        width: 200px;
        height: 200px;
        padding: 1.5rem;
    }
    
    .auth-container {
        padding: 0.5rem;
    }
    
    .neon-border {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .stickers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0.8rem;
    }
    
    .avatars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sticker-categories-nav {
        padding: 0.8rem;
    }
    
    .sticker-category-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .app-nav {
        height: 45px;
    }
    
    .nav-item i {
        font-size: 1rem;
    }
    
    .nav-item span {
        font-size: 0.6rem;
    }
    
    .chat-item, .contact-item, .group-item {
        padding: 10px;
    }
    
    .chat-item img, .contact-item img, .group-item img {
        width: 40px;
        height: 40px;
    }
    
    .profile-pic-fullscreen {
        width: 250px;
        height: 250px;
    }
    
    .theme-colors-grid {
        grid-template-columns: 1fr;
    }
    
    .story-media-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) and (orientation: portrait) {
    .app-main {
        height: calc(100vh - 110px);
    }
    
    .chat-window {
        height: 100vh;
    }
    
    .messages-container {
        padding: 0.8rem;
    }
    
    .message {
        max-width: 90%;
    }
}

/* Prevent zoom on input focus for iOS */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* Scrollbar Styling */
.scrollable::-webkit-scrollbar {
    width: 6px;
}

.scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb {
    background: var(--neon-primary);
    border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--neon-secondary);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Safe area insets for notch devices */
@supports(padding: max(0px)) {
    .app-header, .app-nav, .tab-header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .app-header {
        padding-top: max(0.8rem, env(safe-area-inset-top));
    }
    
    .message-input-container {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Animation for new features */
@keyframes featurePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.new-feature {
    animation: featurePulse 2s ease-in-out;
}

/* Update existing styles for new features */
.message {
    position: relative;
}

.message:hover .message-actions-btn {
    opacity: 1;
}

.message-actions-btn {
    opacity: 0;
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.6rem;
    transition: opacity 0.3s ease;
}

/* Enhanced profile section */
.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 222, 0.3);
}

.stat {
    text-align: center;
}

.stat span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-primary);
}

.stat small {
    color: #aaa;
    font-size: 0.7rem;
}

/* 3D Avatar Styles */
.avatar-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.avatar-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.avatar-3d img {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(255, 0, 222, 0.3);
}

/* Premium Theme Colors */
.premium-theme-item {
    position: relative;
    overflow: hidden;
}

.premium-theme-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 10px;
}

/* Sticker Animation */
.sticker-animated {
    animation: bounceSticker 2s infinite;
}

@keyframes bounceSticker {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Purchase Tracking Styles */
.purchase-tracker {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--neon-success);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
}

.purchase-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.status-approved {
    color: var(--neon-success);
}

.status-pending {
    color: var(--neon-warning);
}

.status-failed {
    color: #ff4444;
}

/* Razorpay Payment Button */
.razorpay-btn {
    background: linear-gradient(45deg, #528FF0, #00B9F1);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.razorpay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 143, 240, 0.4);
}

.razorpay-btn i {
    font-size: 1.2rem;
}

/* Enhanced My Stickers Section */
.my-stickers-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1rem;
    margin: 1rem 0;
}

.sticker-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sticker-collection-stats {
    display: flex;
    gap: 15px;
}

.sticker-stat {
    background: rgba(255, 0, 222, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--neon-primary);
    font-size: 0.8rem;
}

/* Theme Store Section */
.theme-store-section {
    margin: 2rem 0;
}

.theme-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.theme-category-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 20px;
    color: #aaa;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.theme-category-btn.active {
    background: rgba(255, 0, 222, 0.2);
    color: var(--neon-primary);
    border-color: var(--neon-primary);
}

/* Avatar Store Enhancements */
.avatar-store-header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar-price-tiers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.price-tier {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-primary);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-width: 120px;
}

.price-tier .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-primary);
    margin: 10px 0;
}

.price-tier .description {
    font-size: 0.8rem;
    color: #aaa;
}

/* Real-time Purchase Tracking */
.purchase-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 255, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Profile Data Display */
.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 1.5rem 0;
}

.data-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 222, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.data-card .data-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-primary);
    display: block;
}

.data-card .data-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
}

/* Locked Content Styles */
.locked-content {
    position: relative;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: white;
}

.locked-overlay i {
    font-size: 2rem;
    color: var(--neon-primary);
    margin-bottom: 10px;
}

.locked-overlay p {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
}

/* Payment Verification Styles */
.payment-verification {
    text-align: center;
    padding: 2rem;
}

.verification-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.verification-step {
    text-align: center;
    flex: 1;
    max-width: 100px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--neon-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
}

.step-label {
    font-size: 0.8rem;
    color: #aaa;
}
/* Clean & Professional Delete Button */
.delete-chat-btn {
    background: transparent;
    border: none;
    color: #d32f2f; /* professional red */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.delete-chat-btn i {
    font-size: 16px;
}

/* Hover effect – subtle, not glowing */
.delete-chat-btn:hover {
    background: rgba(211, 47, 47, 0.15);
    color: #b71c1c;
    transform: scale(1.1);
}

/* Active click effect */
.delete-chat-btn:active {
    transform: scale(0.95);
    background: rgba(211, 47, 47, 0.25);
}


/* Hindi Sticker Styles */
.sticker-store-item.hindi {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.sticker-store-item.hindi .sticker-circle {
    border-color: #ffaa00;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.5);
}

.sticker-store-item.hindi:hover .sticker-circle {
    box-shadow: 0 0 30px #ffaa00;
    transform: scale(1.15);
}

/* Premium Sticker Badge */
.sticker-price.premium {
    background: linear-gradient(45deg, #ffaa00, #ff5500);
    color: #000;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
}

/* Enhanced Chat Item Delete Animation */
.chat-item {
    transition: all 0.3s ease;
    position: relative;
}

.chat-item.deleting {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Razorpay Payment Integration */
.razorpay-payment-btn {
    background: linear-gradient(45deg, #528FF0, #00B9F1);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px auto;
    box-shadow: 0 4px 15px rgba(82, 143, 240, 0.3);
}

.razorpay-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 143, 240, 0.4);
}

.razorpay-payment-btn i {
    font-size: 1.2rem;
}

/* Sticker Lock Overlay */
.sticker-locked {
    position: relative;
}

.sticker-locked::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 2;
}
/* Add this CSS to fix scrolling issues */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 200px);
    scroll-behavior: smooth;
}

.chats-list, .groups-list, .contacts-list {
    max-height: 70vh;
    overflow-y: auto;
}

/* Ensure proper scrolling on mobile */
.scrollable {
    -webkit-overflow-scrolling: touch;
}

