/* new-index.css — В КАЧАЛКЕ главная v3.0 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --acc:   #8B5CF6;
    --acc2:  #3B82F6;
    --bg:    #080D16;
    --bg2:   #100720;
    --text:  #F6F3FF;
    --muted: #666;
    --glow:  rgba(139, 92, 246,0.35);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    background: var(--bg);
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
}

/* ===== ФОН ===== */
.index-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 24px;
}

/* Шумовая текстура */
.index-page::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none; z-index: 0; opacity: .4;
}

/* Фоновые глоу-пятна */
.bg-glow {
    position: fixed; border-radius: 50%;
    filter: blur(120px); pointer-events: none; z-index: 0;
}
.bg-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246,0.12) 0%, transparent 70%);
    top: -200px; left: 50%; transform: translateX(-50%);
    animation: pulse1 6s ease-in-out infinite;
}
.bg-glow-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246,0.06) 0%, transparent 70%);
    bottom: -100px; right: -100px;
    animation: pulse2 8s ease-in-out infinite;
}
@keyframes pulse1 { 0%,100%{opacity:.7;transform:translateX(-50%) scale(1)} 50%{opacity:1;transform:translateX(-50%) scale(1.1)} }
@keyframes pulse2 { 0%,100%{opacity:.5} 50%{opacity:.9} }

/* Сетка */
.bg-grid {
    display: none;
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
}

.deco-lines, .idx-header { display: none; }

/* ===== КОНТЕНТ ===== */
.idx-main {
    position: relative; z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%; max-width: 420px;
}

/* ===== ЛОГОТИП ===== */
.main-logo-wrap {
    margin-bottom: 48px;
    animation: logoIn 0.8s cubic-bezier(.34,1.4,.64,1) both;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-logo {
    width: 150px; height: 150px;
    filter: drop-shadow(0 0 32px rgba(139, 92, 246,0.5))
            drop-shadow(0 8px 24px rgba(0,0,0,0.6));
    display: block;
}
.main-logo-title {
    display: none;
}
@keyframes logoIn {
    from { opacity:0; transform:scale(.7) translateY(-20px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}

/* ===== КАРТОЧКА ПРОФИЛЯ ===== */
.profile-card {
    width: 100%;
    background: linear-gradient(135deg, rgba(28,28,34,0.9), rgba(20,20,24,0.95));
    border: 1px solid rgba(139, 92, 246,0.15);
    border-radius: 28px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 24px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.06);
    animation: cardIn 0.7s cubic-bezier(.34,1.2,.64,1) .15s both;
    position: relative;
    overflow: hidden;
}
.profile-card::before {
    content: '';
    position: absolute; top:0; left:0; right:0; height:1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246,0.4), transparent);
}
@keyframes cardIn {
    from { opacity:0; transform:translateY(30px) scale(.96); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

/* Аватар */
.profile-avatar-wrap { position: relative; }
.avatar-ring {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: conic-gradient(var(--acc), var(--acc2), var(--acc));
    padding: 2.5px;
    box-shadow: 0 0 24px var(--glow);
    animation: spinRing 8s linear infinite;
}
@keyframes spinRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.avatar-circle {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--bg2);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    overflow: hidden;
}
.avatar-status {
    position: absolute; bottom:4px; right:4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #30d158;
    border: 2.5px solid var(--bg);
    box-shadow: 0 0 8px rgba(48,209,88,0.6);
}

/* Инфо */
.profile-info { text-align: center; }
.user-name-large {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px; letter-spacing: 2px;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}
.user-login {
    font-size: 12px; color: var(--muted); font-weight: 600;
    letter-spacing: 1px;
}
.user-id {
    display: inline-block;
    font-size: 11px; font-weight: 800;
    color: var(--acc); opacity: 0.7;
    background: rgba(139, 92, 246,0.08);
    border: 1px solid rgba(139, 92, 246,0.15);
    border-radius: 50px; padding: 2px 10px;
    margin-top: 6px; letter-spacing: 0.5px;
}

/* Разделитель */
.profile-divider {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    margin: 4px 0;
}

/* ===== CTA КНОПКА ===== */
.idx-cta {
    width: 100%;
    margin-top: 16px;
    animation: cardIn 0.7s cubic-bezier(.34,1.2,.64,1) .3s both;
}
.cta-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--acc) 0%, var(--acc2) 100%);
    border: none; border-radius: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: all .25s cubic-bezier(.34,1.2,.64,1);
    box-shadow:
        0 4px 24px var(--glow),
        0 1px 0 rgba(255,255,255,0.2) inset;
    position: relative; overflow: hidden;
}
.cta-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0; transition: opacity .25s;
}
.cta-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 36px var(--glow), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.cta-btn:hover::before { opacity: 1; }
.cta-btn:active { transform: scale(.97); }

.cta-btn-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px; letter-spacing: 3px;
    color: var(--bg, #080D16);
}
.cta-btn-arrow {
    font-size: 22px; color: var(--bg, #080D16);
    font-weight: 900;
    transition: transform .25s;
}
.cta-btn:hover .cta-btn-arrow { transform: translateX(4px); }

/* ===== ФУТЕР ===== */
.idx-footer {
    position: relative; z-index: 1;
    margin-top: 28px;
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    animation: cardIn 0.7s ease .45s both;
}
.logout-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px; padding: 8px 20px;
    color: var(--muted); font-size: 12px; font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer; transition: all .2s;
    letter-spacing: 0.3px;
}
.logout-btn:hover { color: #ef5350; border-color: rgba(239,83,80,0.3); }

.idx-footer-copy {
    font-size: 11px; color: rgba(255,255,255,0.18);
    letter-spacing: 1px; font-weight: 600;
}

/* ===== МОБИЛЬ ===== */
@media (max-width: 480px) {
    .index-page { padding: 24px 16px; }
    .main-logo { width: 120px; height: 120px; }
    .main-logo-wrap { margin-bottom: 32px; }
    .profile-card { padding: 24px 20px; border-radius: 22px; }
    .user-name-large { font-size: 26px; }
    .cta-btn { padding: 16px 20px; border-radius: 18px; }
    .cta-btn-text { font-size: 20px; }
}
