:root {
    --bg: #0b0b0e;
    --card-bg: #16161a;
    --accent: #5d5fef;
    --accent-hover: #4a4ce0;
    --text: #ffffff;
    --text-dim: #a1a1aa;
    --border: #27272a;
    --success: #10b981;
    --danger: #ef4444;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    background-image: 
        linear-gradient(rgba(93, 95, 239, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 95, 239, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before, body::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 10s infinite alternate;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: rgba(11, 11, 14, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { 
    font-size: 24px; 
    font-weight: 800; 
    text-decoration: none;
    color: var(--text);
    z-index: 1001;
}

.logo span { color: var(--accent); }

.links {
    display: flex;
    align-items: center;
}

.links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.links a:hover { color: var(--text); }

.btn-nav {
    background: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text);
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 5% 0 5%;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0b0b0e 100%);
}

.hero h1 { 
    font-size: clamp(48px, 10vw, 80px); 
    font-weight: 800; 
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p { 
    color: var(--text-dim); 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.status-container {
    display: flex;
    justify-content: center;
    margin-top: -60px;
    padding-bottom: 60px;
}

.status-badge {
    background: rgba(16, 185, 129, 0.1); 
    color: var(--success); 
    padding: 10px 20px; 
    border-radius: 30px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover { color: var(--text); }

@media (max-width: 768px) {
    .navbar { padding: 15px 5%; }
    .menu-toggle { display: flex; }
    
    .links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
    }

    .links.active { right: 0; }
    .links a { margin: 15px 0; font-size: 1.5rem; }
    
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; }
    .btn-primary { width: 100%; }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.container {
    padding: 120px 10% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--text);
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.price-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card.featured {
    border: 2px solid var(--accent);
    position: relative;
    transform: scale(1.05);
}

.price-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text);
}

.btn-buy {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background: var(--accent-hover);
}

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    margin-bottom: 25px;
    text-align: center;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: #0b0b0e;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.input-field:focus {
    border-color: var(--accent);
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-align: center;
    display: none;
}

.messenger-container {
    display: flex;
    height: 600px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.users-list {
    width: 250px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
}

.user-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.user-item:hover, .user-item.active {
    background: rgba(93, 95, 239, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    border: 2px solid var(--card-bg);
}

.status-dot.online {
    background: var(--success);
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    background: var(--border);
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 80%;
    width: fit-content;
}

.message.own {
    align-self: flex-end;
    background: var(--accent);
}

.message-info {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.profile-info-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.profile-info h2 { margin: 0; }
.profile-info p { color: var(--text-dim); }