/* ═══════════════════════════════════════════════
   FEMBOY SMP — MAIN STYLESHEET
   Palette: #d47fff (lavender) + #55ffff (cyan) + dark
   ═══════════════════════════════════════════════ */

:root {
    --lavender: #d47fff;
    --cyan: #55ffff;
    --lavender-dim: rgba(212, 127, 255, 0.15);
    --cyan-dim: rgba(85, 255, 255, 0.15);
    --lavender-glow: rgba(212, 127, 255, 0.4);
    --cyan-glow: rgba(85, 255, 255, 0.4);
    --bg: #070710;
    --bg2: #0d0d1f;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #e8e8f5;
    --text-dim: rgba(232, 232, 245, 0.55);
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: 'Orbitron', monospace;
    --font-body: 'Nunito', sans-serif;
}

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



body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* ─── BACKGROUND ─────────────────────────────── */
.bg-overlay {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212,127,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(85,255,255,0.06) 0%, transparent 60%),
        linear-gradient(160deg, #070710 0%, #0d0814 40%, #070d17 100%);
    pointer-events: none;
}

.stars {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px; height: 2px;
    border-radius: 50%;
    background: #fff;
    animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: var(--max-op, 0.6); transform: scale(1.5); }
}

/* ─── NAVBAR ──────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 2rem;
    background: rgba(7, 7, 16, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: box-shadow .3s;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 2rem;
    height: 64px;
}

.nav-logo {
    display: flex; align-items: center; gap: .6rem;
    text-decoration: none; flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.1rem;
    color: var(--text);
    transition: opacity .2s;
}
.nav-logo:hover { opacity: 0.85; }

.logo-icon { font-size: 1.3rem; }
.logo-accent { color: var(--lavender); }

.nav-links {
    display: flex; align-items: center; gap: .25rem;
    flex: 1;
}

.nav-link {
    padding: .45rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600; font-size: .92rem;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--glass); }
.nav-link.active { color: var(--lavender); background: var(--lavender-dim); }

.nav-right { margin-left: auto; flex-shrink: 0; }

.btn-login {
    display: inline-block;
    padding: .5rem 1.3rem;
    border-radius: var(--radius-sm);
    background: var(--lavender-dim);
    border: 1px solid rgba(212,127,255,0.3);
    color: var(--lavender);
    text-decoration: none;
    font-weight: 700; font-size: .9rem;
    transition: background .2s, box-shadow .2s, border-color .2s;
}
.btn-login:hover {
    background: rgba(212,127,255,0.25);
    border-color: var(--lavender);
    box-shadow: 0 0 20px var(--lavender-glow);
}

.avatar-link {
    display: block; position: relative;
    text-decoration: none;
}
.user-avatar-navbar {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    object-fit: cover;
    display: block;
    transition: transform .2s, box-shadow .2s;
    image-rendering: pixelated;
}
.avatar-link:hover .user-avatar-navbar {
    transform: scale(1.1);
    box-shadow: 0 0 16px var(--lavender-glow);
}
.avatar-link::after {
    content: attr(data-tooltip);
    position: absolute; bottom: calc(100% + 8px); right: 0;
    background: rgba(13,13,31,0.95);
    border: 1px solid var(--glass-border);
    color: var(--lavender);
    padding: .3rem .7rem;
    border-radius: var(--radius-sm);
    font-size: .8rem; font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0; transform: translateY(4px);
    transition: opacity .2s, transform .2s;
}
.avatar-link:hover::after { opacity: 1; transform: translateY(0); }

.nav-burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: .5rem; margin-left: auto;
}
.nav-burger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: .3s;
}

/* ─── FLASH MESSAGES ────────────────────────── */
.flash-container {
    position: fixed; top: 74px; right: 1.5rem; z-index: 200;
    display: flex; flex-direction: column; gap: .5rem;
    max-width: 360px;
}
.flash {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    backdrop-filter: blur(12px);
    animation: slideIn .3s ease;
    font-size: .9rem; font-weight: 600;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.flash-success { background: rgba(85,255,170,0.1); border-color: rgba(85,255,170,0.4); color: #55ffaa; }
.flash-error   { background: rgba(255,100,100,0.1); border-color: rgba(255,100,100,0.4); color: #ff9090; }
.flash-info    { background: rgba(85,255,255,0.1);  border-color: rgba(85,255,255,0.4);  color: var(--cyan); }
.flash-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; opacity: .7; }
.flash-close:hover { opacity: 1; }

/* ─── MAIN CONTENT ──────────────────────────── */
.main-content { position: relative; z-index: 1; padding-top: 64px; }

/* ─── GLASS CARD ────────────────────────────── */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
}

/* ─── BUTTONS ───────────────────────────────── */
.btn-primary {
    display: inline-block;
    padding: .7rem 1.8rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--lavender), #a855f7);
    color: #fff;
    font-family: var(--font-body); font-weight: 700; font-size: .95rem;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
    box-shadow: 0 4px 20px var(--lavender-glow);
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0; transition: opacity .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--lavender-glow); filter: brightness(1.1); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-full { width: 100%; text-align: center; }
.btn-primary.btn-large { padding: .9rem 2.5rem; font-size: 1.05rem; }
.btn-primary.btn-sm { padding: .5rem 1.2rem; font-size: .88rem; }

.btn-secondary {
    display: inline-block;
    padding: .7rem 1.8rem;
    border-radius: var(--radius-sm);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-weight: 700; font-size: .95rem;
    text-decoration: none; cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.btn-secondary:hover {
    border-color: rgba(85,255,255,0.5);
    box-shadow: 0 0 20px var(--cyan-glow);
    background: rgba(85,255,255,0.06);
    color: var(--cyan);
}

.btn-logout {
    display: block; width: 100%;
    padding: .6rem;
    text-align: center;
    border-radius: var(--radius-sm);
    background: rgba(255,100,100,0.1);
    border: 1px solid rgba(255,100,100,0.3);
    color: #ff9090;
    text-decoration: none; font-weight: 700;
    transition: background .2s, border-color .2s;
    margin-top: 1rem;
}
.btn-logout:hover { background: rgba(255,100,100,0.2); border-color: rgba(255,100,100,0.6); }

/* ─── HERO ──────────────────────────────────── */
.hero {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center; justify-content: space-between;
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 1100px; margin: 0 auto;
}
.hero-content { flex: 1; animation: fadeUp .8s ease both; }
.hero-visual { flex-shrink: 0; animation: fadeUp .8s .2s ease both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    padding: .35rem 1rem;
    border-radius: 100px;
    background: var(--lavender-dim);
    border: 1px solid rgba(212,127,255,0.3);
    color: var(--lavender);
    font-size: .8rem; font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}
.title-line { display: block; }
.title-accent {
    background: linear-gradient(90deg, var(--lavender), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-ip-block {
    margin-bottom: 1.5rem;
}
.ip-label {
    display: block; font-size: .8rem;
    color: var(--text-dim); font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    margin-bottom: .4rem;
}
.ip-big-btn {
    display: flex; flex-direction: column; align-items: flex-start;
    background: var(--glass);
    border: 1px solid rgba(85,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: .8rem 1.2rem;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    text-align: left;
}
.ip-big-btn:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}
.ip-big-text {
    font-family: var(--font-display);
    font-size: 1.1rem; color: var(--cyan); font-weight: 700;
}
.copy-hint { font-size: .75rem; color: var(--text-dim); margin-top: .2rem; }

.hero-online {
    display: flex; align-items: center; gap: .6rem;
    margin-bottom: 2rem;
    font-size: .95rem; font-weight: 600;
}
.online-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #aaa;
}
.online-dot.pulse {
    background: #55ff88;
    box-shadow: 0 0 8px #55ff88;
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 4px #55ff88; }
    50% { box-shadow: 0 0 14px #55ff88; }
}
.online-label { color: var(--text-dim); }
.online-num { color: var(--cyan); font-family: var(--font-display); font-size: 1.1rem; }
.online-num.updated { animation: numPop .5s ease; }
@keyframes numPop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }

.refresh-btn {
    background: none; border: none; color: var(--text-dim);
    cursor: pointer; font-size: 1.1rem;
    transition: transform .3s, color .2s;
}
.refresh-btn:hover { color: var(--cyan); }
.refresh-btn.spinning { animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── 3D CUBE ───────────────────────────────── */
.cube-container {
    width: 160px; height: 160px;
    perspective: 500px;
}
.cube {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s linear infinite;
}
@keyframes rotateCube {
    from { transform: rotateX(20deg) rotateY(0); }
    to   { transform: rotateX(20deg) rotateY(360deg); }
}
.cube-face {
    position: absolute; width: 160px; height: 160px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212,127,255,0.06);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(212,127,255,0.2);
    image-rendering: pixelated;
}
.cube-face.front  { transform: translateZ(80px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(80px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(80px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(80px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(80px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(80px); }

/* ─── FEATURES ──────────────────────────────── */
.features {
    padding: 5rem 2rem;
    max-width: 1100px; margin: 0 auto;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--lavender), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    animation: fadeUp .7s ease both;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,127,255,0.4);
    box-shadow: 0 12px 40px rgba(212,127,255,0.1);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: .7rem; color: var(--lavender); }
.feature-card p { color: var(--text-dim); font-size: .9rem; }

/* ─── CTA ───────────────────────────────────── */
.cta-section {
    padding: 4rem 2rem;
}
.cta-inner {
    max-width: 600px; margin: 0 auto;
    text-align: center;
    background: var(--glass);
    border: 1px solid rgba(212,127,255,0.2);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: 0 0 60px rgba(212,127,255,0.08);
}
.cta-inner h2 {
    font-family: var(--font-display);
    font-size: 1.8rem; margin-bottom: 1rem;
    color: var(--lavender);
}
.cta-inner p { color: var(--text-dim); margin-bottom: 2rem; }

/* ─── PAGE HERO ─────────────────────────────── */
.page-hero {
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 900;
    background: linear-gradient(90deg, var(--lavender), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .8rem;
    animation: fadeUp .6s ease both;
}
.page-subtitle {
    color: var(--text-dim); font-size: 1.1rem;
    animation: fadeUp .6s .1s ease both;
}

/* ─── ABOUT ─────────────────────────────────── */
.about-section { padding: 2rem 2rem 5rem; }
.about-container {
    max-width: 800px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.about-block {
    padding: 2rem;
    animation: fadeUp .6s ease both;
}
.about-icon { font-size: 2rem; margin-bottom: 1rem; }
.about-block h2 {
    font-family: var(--font-display);
    color: var(--lavender); font-size: 1.2rem; margin-bottom: 1rem;
}
.about-block p { color: var(--text-dim); margin-bottom: .8rem; line-height: 1.7; }

.plugins-list { display: flex; flex-direction: column; gap: .8rem; }
.plugin-item {
    display: flex; align-items: center; gap: 1rem;
    padding: .8rem; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
}
.plugin-icon { font-size: 1.5rem; }
.plugin-item strong { display: block; color: var(--text); font-weight: 700; }
.plugin-item span { font-size: .85rem; color: var(--text-dim); }

.mechanics-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem; margin-top: .5rem;
}
.mechanic {
    text-align: center; padding: 1rem .5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: .85rem; color: var(--text-dim);
}
.mechanic span { display: block; font-size: 1.8rem; margin-bottom: .4rem; }

/* ─── SHOP ──────────────────────────────────── */
.shop-section { padding: 2rem 2rem 5rem; }
.shop-container {
    max-width: 1000px; margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    max-width: 800px;
    gap: 1.5rem;
    align-items: stretch;
}
.shop-card {
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform .3s, box-shadow .3s;
    animation: fadeUp .6s ease both;
}
.shop-card:hover { transform: translateY(-4px); }
.shop-card.featured {
    border-color: rgba(212,127,255,0.4);
    box-shadow: 0 0 40px rgba(212,127,255,0.12);
    min-height: 100%;
}
.shop-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--lavender), #a855f7);
    color: #fff; font-size: .75rem; font-weight: 700;
    padding: .3rem .9rem; border-radius: 100px;
    white-space: nowrap;
}
.shop-icon { font-size: 3rem; margin: .5rem 0 1rem; }
.shop-item-title {
    font-family: var(--font-display);
    font-size: 1.1rem; color: var(--text); margin-bottom: .8rem;
}
.shop-item-desc { color: var(--text-dim); font-size: .9rem; margin-bottom: 1.2rem; }
.shop-features {
    list-style: none; text-align: left;
    margin-bottom: 1.5rem;
}
.shop-features li {
    color: var(--text-dim); font-size: .88rem;
    padding: .3rem 0;
    border-bottom: 1px solid var(--glass-border);
}
.shop-price {
    display: flex; align-items: center; justify-content: center; gap: .8rem;
    margin-bottom: 1.5rem;
}
.price-old { color: var(--text-dim); font-size: .9rem; text-decoration: line-through; }
.price-free {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 900;
    background: linear-gradient(90deg, var(--lavender), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.btn-shop { width: 100%; }
.coming-soon { opacity: .7; }
.soon-label {
    display: inline-block; margin-top: 1rem;
    padding: .4rem 1rem; border-radius: 100px;
    background: var(--cyan-dim);
    border: 1px solid rgba(85,255,255,0.3);
    color: var(--cyan); font-size: .8rem; font-weight: 700;
}

/* ─── AUTH ──────────────────────────────────── */
.auth-section {
    min-height: calc(100vh - 64px);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1.5rem;
}
.auth-card {
    width: 100%; max-width: 480px;
    padding: 2.5rem;
    animation: fadeUp .6s ease both;
}
.auth-logo { text-align: center; font-size: 2.5rem; margin-bottom: 1rem; }
.auth-title {
    text-align: center;
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
    color: var(--lavender); margin-bottom: .4rem;
}
.auth-sub { text-align: center; color: var(--text-dim); font-size: .9rem; margin-bottom: 2rem; }
.auth-switch { text-align: center; color: var(--text-dim); font-size: .9rem; margin-top: 1.2rem; }
.auth-switch a { color: var(--lavender); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label {
    font-size: .85rem; font-weight: 700;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em;
}
.form-group small { font-size: .78rem; color: rgba(232,232,245,0.4); }
.form-input {
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    color: var(--text);
    font-family: var(--font-body); font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-input::placeholder { color: rgba(232,232,245,0.3); }
.form-input:focus {
    border-color: rgba(212,127,255,0.6);
    box-shadow: 0 0 0 3px rgba(212,127,255,0.1);
}

.checkbox-group { flex-direction: row; align-items: flex-start; }
.checkbox-label {
    display: flex; align-items: flex-start; gap: .8rem;
    cursor: pointer; font-size: .88rem; color: var(--text-dim); font-weight: 400;
    text-transform: none; letter-spacing: normal;
}
.checkbox-input { display: none; }
.checkbox-custom {
    width: 20px; height: 20px; flex-shrink: 0;
    border-radius: 6px; border: 2px solid rgba(212,127,255,0.4);
    background: rgba(212,127,255,0.05);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, background .2s;
    margin-top: 1px;
}
.checkbox-input:checked + .checkbox-custom {
    background: var(--lavender);
    border-color: var(--lavender);
}
.checkbox-input:checked + .checkbox-custom::after {
    content: '✓'; color: #fff; font-size: .8rem; font-weight: 700;
}

/* ─── AVATAR GRID ───────────────────────────── */
.avatar-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: .6rem;
}
.avatar-option { position: relative; cursor: pointer; }
.avatar-option input { display: none; }
.avatar-preview {
    width: 100%; aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    object-fit: cover;
    image-rendering: pixelated;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    display: block;
}
.avatar-check {
    position: absolute; inset: 0;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: rgba(212,127,255,0.5);
    color: #fff; font-size: 1.2rem; font-weight: 700;
    opacity: 0; transition: opacity .2s;
    pointer-events: none;
}
.avatar-option input:checked ~ .avatar-preview {
    border-color: var(--lavender);
    box-shadow: 0 0 12px var(--lavender-glow);
    transform: scale(1.05);
}
.avatar-option input:checked ~ .avatar-check { opacity: 1; }
.avatar-preview:hover { transform: scale(1.08); border-color: rgba(212,127,255,0.5); }
.avatar-preview.current {
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
}

/* ─── PROFILE ───────────────────────────────── */
.profile-section { padding: 3rem 2rem 5rem; }
.profile-container {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: 260px 1fr;
    gap: 2rem; align-items: stretch;
}

.profile-sidebar {
    padding: 2rem;
    text-align: center;
    position: sticky; top: 80px;
    animation: fadeUp .5s ease both;
}
.profile-avatar-wrap {
    position: relative; display: inline-block;
    margin-bottom: 1rem;
}
.profile-avatar {
    width: 128px; height: 128px;
    border-radius: var(--radius);
    border: 3px solid var(--lavender);
    object-fit: cover; display: block;
    image-rendering: pixelated;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 0 30px var(--lavender-glow);
}
.avatar-ring {
    position: absolute; inset: -8px;
    border-radius: 24px;
    border: 2px solid rgba(212,127,255,0.2);
    animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
    0%,100% { opacity: .4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}
.profile-name {
    font-family: var(--font-display); font-size: 1.2rem;
    color: var(--text); margin-bottom: .3rem;
}
.profile-date { font-size: .82rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.profile-stats {
    display: flex; flex-direction: column; gap: .5rem;
    margin-bottom: 1rem;
}
.stat-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: .5rem .8rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}
.stat-label { font-size: .82rem; color: var(--text-dim); }
.stat-value { font-weight: 700; font-size: .9rem; color: var(--lavender); font-family: var(--font-display); }

.profile-main {
    display: flex; flex-direction: column; gap: 1.5rem;
    animation: fadeUp .5s .1s ease both;
}
.profile-block { padding: 1.8rem; }
.block-title {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    color: var(--lavender); margin-bottom: 1.2rem;
}
.avatar-grid-profile { grid-template-columns: repeat(5, 1fr); margin-bottom: 1rem; }

.stub-text { color: var(--text-dim); font-size: .92rem; }
.stub-text small { color: rgba(232,232,245,0.35); }

.purchases-list { display: flex; flex-direction: column; gap: .6rem; }
.purchase-item {
    display: flex; align-items: center; gap: 1rem;
    padding: .7rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}
.purchase-name { flex: 1; font-size: .9rem; }
.purchase-status {
    font-size: .78rem; font-weight: 700; padding: .2rem .6rem;
    border-radius: 100px;
}
.status-completed { background: rgba(85,255,170,0.15); color: #55ffaa; }
.status-pending   { background: rgba(255,200,85,0.15);  color: #ffc855; }
.status-queued    { background: rgba(85,170,255,0.15);  color: #55aaff; }
.purchase-date { font-size: .8rem; color: var(--text-dim); }

/* ─── BUY ───────────────────────────────────── */
.buy-card { max-width: 520px; }
.buy-info {
    display: flex; flex-direction: column; gap: .4rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(85,255,255,0.05);
    border: 1px solid rgba(85,255,255,0.15);
    border-radius: var(--radius-sm);
}
.buy-info-item { color: #55ffaa; font-size: .88rem; font-weight: 600; }

/* ─── IP COPY ───────────────────────────────── */
.ip-copy-btn {
    display: flex; align-items: center; gap: .6rem;
    background: var(--glass);
    border: 1px solid rgba(85,255,255,0.2);
    border-radius: var(--radius-sm);
    color: var(--cyan); cursor: pointer;
    padding: .5rem .9rem;
    font-family: var(--font-display); font-size: .85rem;
    transition: border-color .2s, box-shadow .2s;
}
.ip-copy-btn:hover { border-color: var(--cyan); box-shadow: 0 0 16px var(--cyan-glow); }

/* ─── FOOTER ────────────────────────────────── */
.footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--glass-border);
    background: rgba(7,7,16,0.6);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem 1.5rem;
}
.footer-container {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem; margin-bottom: 2rem;
}
.footer-logo {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
    display: block; margin-bottom: .5rem;
}
.footer-desc { color: var(--text-dim); font-size: .85rem; }
.footer-label {
    display: block; font-size: .75rem; font-weight: 700;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: .6rem;
}
.footer-link {
    color: var(--cyan); text-decoration: none; font-weight: 600;
    display: flex; align-items: center; gap: .4rem;
    transition: opacity .2s;
}
.footer-link:hover { opacity: .75; }
.tg-icon { font-size: 1.1rem; }
.footer-bottom {
    text-align: center; color: rgba(232,232,245,0.25);
    font-size: .8rem; padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    max-width: 1100px; margin: 0 auto;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
    .hero { flex-direction: column; padding: 3rem 1.5rem; text-align: center; }
    .hero-visual { display: none; }
    .hero-btns { justify-content: center; }
    .hero-online { justify-content: center; }
    .ip-big-btn { margin: 0 auto; }

    .nav-links { display: none; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(7,7,16,0.97); border-bottom: 1px solid var(--glass-border);
        padding: 1rem;
    }
    .nav-links.open { display: flex; }
    .nav-container { flex-wrap: wrap; }
    .nav-burger { display: flex; }
    .nav-right { order: 3; }

    .shop-container { grid-template-columns: 1fr; max-width: 500px; }
    .profile-container { grid-template-columns: 1fr; max-width: 500px; }
    .profile-sidebar { position: static; }
    .footer-container { grid-template-columns: 1fr; max-width: 500px; }
    .avatar-grid { grid-template-columns: repeat(5, 1fr); }
}

.hidden { display: none !important; }

/* ─── AVATAR UPLOAD ──────────────────────────── */
.avatar-upload-area {
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
}
.avatar-upload-preview {
    width: 100%; aspect-ratio: 1;
    max-width: 180px;
    border-radius: var(--radius);
    border: 2px dashed rgba(212,127,255,0.35);
    background: rgba(212,127,255,0.04);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, background .2s;
    overflow: hidden; position: relative;
}
.avatar-upload-area:hover .avatar-upload-preview {
    border-color: var(--lavender);
    background: rgba(212,127,255,0.08);
}
.avatar-upload-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    color: var(--text-dim); text-align: center; padding: 1rem;
    font-size: .85rem; pointer-events: none;
}
.upload-icon {
    font-size: 2rem; color: var(--lavender); line-height: 1;
}
.avatar-upload-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    image-rendering: auto;
}
.avatar-remove-btn {
    position: absolute; top: 6px; right: 6px;
    background: rgba(0,0,0,0.6); border: none;
    color: #fff; border-radius: 50%;
    width: 24px; height: 24px; cursor: pointer;
    font-size: .8rem; display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.avatar-remove-btn:hover { background: rgba(255,80,80,0.8); }
.avatar-file-input { display: none; }

/* Label opt */
.label-opt { color: rgba(232,232,245,0.35); font-weight: 400; font-size: .8rem; }

/* ─── SPAM NOTICE ─────────────────────────────── */
.spam-notice {
    background: rgba(255,200,85,0.08);
    border: 1px solid rgba(255,200,85,0.25);
    border-radius: var(--radius-sm);
    padding: .8rem 1rem;
    font-size: .85rem;
    color: rgba(255,200,85,0.9);
    margin-bottom: 1.5rem;
}

/* ─── CODE INPUT ──────────────────────────────── */
.code-input {
    font-family: var(--font-display) !important;
    font-size: 2rem !important;
    letter-spacing: .4em;
    text-align: center;
}

/* ─── PROFILE AVATAR DEFAULT (буква) ─────────── */
.profile-avatar-default {
    width: 128px; height: 128px;
    border-radius: var(--radius);
    border: 3px solid var(--lavender);
    box-shadow: 0 0 30px var(--lavender-glow);
    background: linear-gradient(135deg, var(--lavender), #a855f7);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem; font-weight: 900; color: #fff;
}

/* ─── AVATAR CHANGE FORM ─────────────────────── */
.avatar-change-form { display: flex; flex-direction: column; gap: .5rem; }

/* ─── LETTER AVATAR ──────────────────────────── */
.user-avatar-letter {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    user-select: none;
}


html { scroll-behavior: smooth; }