:root {
    --bg-black: #050505;
    --card-bg: rgba(15, 15, 15, 0.6);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --text: #ffffff;
    --text-dim: #9ca3af;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-black);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === BACKGROUND BLOBS === */
.bg-blobs { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15; }
.blob-1 { width: 50vw; height: 50vw; background: var(--accent); top: -20vh; left: -10vw; animation: moveBlob 20s infinite alternate ease-in-out; }
.blob-2 { width: 40vw; height: 40vw; background: #6366f1; bottom: -10vh; right: -10vw; animation: moveBlob 25s infinite alternate-reverse ease-in-out; }

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 15vh) scale(1.1); }
}

/* === PARTICLES === */
.particles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.particle { position: absolute; width: 3px; height: 3px; background-color: var(--text); border-radius: 50%; opacity: 0.2; animation: floatParticle linear infinite; }
@keyframes floatParticle {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* === ИДЕАЛЬНАЯ ПЛАВАЮЩАЯ ШАПКА === */
.header.floating-header {
    position: fixed !important; /* Жестко фиксируем относительно экрана */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 64px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 9999 !important; /* Гарантированно поверх всего сайта */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Плавная анимация */
}

/* Состояние при скролле вниз */
.header.floating-header.scrolled {
    top: 15px;
    background: rgba(5, 5, 5, 0.95);
    border-color: rgba(139, 92, 246, 0.5); /* Фиолетовый акцент */
    box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(139, 92, 246, 0.15);
    width: 80%; /* Плавно сжимается */
    padding: 0 20px;
}

.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-minimal { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.logo-container h1 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.5px; }

.status-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* === MAIN CONTENT === */
main { flex: 1; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; font-weight: 700; letter-spacing: -1px; }

/* === HERO === */
.hero { padding: 200px 20px 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h2 { font-size: 4.5rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -2px; line-height: 1.1; }
.highlight { color: var(--text); }
.hero p { color: var(--text-dim); font-size: 1.2rem; max-width: 500px; margin: 0 auto 50px; line-height: 1.6; }

/* === INLINE SCRIPT BOX (ELYSIUM STYLE) === */
.inline-copy-container {
    width: 100%;
    max-width: 750px !important;
    margin: 0 auto;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.script-header { margin-bottom: 15px; }
.script-label { font-size: 0.9rem; font-weight: 600; color: var(--text-dim); }
.inline-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.inline-box code { color: #e5e7eb; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; word-break: break-all; flex: 1; }
.btn-copy-inline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.btn-copy-inline:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.2); }

/* === BENTO CARDS === */
.features-section, .about-us-section { padding: 60px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 1000px; margin: 0 auto; }
.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.bento-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px; padding: 2px;
    background: linear-gradient(45deg, transparent, var(--accent), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.bento-card:hover::before { opacity: 1; } /* Border Glow */

.feature-icon { font-size: 2rem; color: var(--text); margin-bottom: 25px; opacity: 0.9; }
.bento-card h4 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 600; }
.bento-card p { color: var(--text-dim); line-height: 1.6; font-size: 1rem; }

/* === 3D SHOWCASE (ECLIPSEHUB STYLE) === */
.showcase-section { 
    padding: 80px 20px; 
}
.showcase-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}
.showcase-text {
    flex: 1;
    text-align: left;
}
.showcase-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}
/* === ВЫДЕЛЕНИЕ МАРКЕРОМ (СЛОВО VALUE) === */
.showcase-text .highlight {
    background-color: var(--accent); /* Фиолетовый цвет из твоих переменных */
    color: #ffffff; /* Белый текст */
    padding: 0px 12px 6px 12px; /* Отступы: верх, право, низ, лево */
    border-radius: 4px; /* Легкое закругление краев, как на картинке */
    display: inline-block;
    line-height: 1; /* Чтобы рамка была ровной */
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); /* Легкое свечение */
}
.showcase-text p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 1.1rem;
}
.showcase-container { 
    flex: 1;
    perspective: 1200px; 
}
.showcase-image { 
    width: 100%; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.05); 
    /* Эффект сложенной картинки (повернута левой стороной от зрителя) */
    transform: rotateY(-25deg) rotateX(5deg) scale(0.9); 
    transform-origin: right center;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.6); 
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s; 
    cursor: zoom-in; 
}
/* Анимация разворота при наведении на весь блок */
.showcase-layout:hover .showcase-image { 
    transform: rotateY(0deg) rotateX(0deg) scale(1); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px var(--accent-glow); 
}

/* Адаптив под телефоны */
@media (max-width: 900px) {
    .showcase-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .showcase-text { text-align: center; }
    .showcase-image { transform: rotateY(0) scale(1); } /* На мобилках лучше без 3D */
}

/* === GALLERY SCREENSHOTS === */
.screenshots-section { padding: 40px 20px 80px; }
.screenshots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.screenshot-item { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); transition: 0.3s; cursor: zoom-in; opacity: 0.7; filter: grayscale(20%); }
.screenshot-item:hover { opacity: 1; filter: grayscale(0); border-color: rgba(255,255,255,0.2); transform: scale(1.02); }
@media (max-width: 900px) { .screenshots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .screenshots-grid { grid-template-columns: 1fr; } }

/* === ABOUT TEAM === */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 800px; margin: 0 auto; }
.about-card { text-align: center; }
.about-avatar { width: 110px; height: 110px; border-radius: 50%; border: 1px solid var(--border); margin-bottom: 20px; object-fit: cover; }
.about-socials { margin-top: 20px; }
.about-socials a { color: var(--text-dim); font-size: 1.5rem; margin: 0 10px; transition: 0.2s; }
.about-socials a:hover { color: var(--text); }

/* === FOOTER === */
.footer { padding: 40px 20px; text-align: center; border-top: 1px solid var(--border); background: rgba(5,5,5,0.8); }
.social-icons { margin-bottom: 15px; }
.social-icons a { color: var(--text-dim); font-size: 1.6rem; margin: 0 12px; transition: 0.2s; }
.social-icons a:hover { color: var(--text); }
.copyright { font-size: 0.85rem; color: #666; }

/* === ПРЕМИУМ ПРОСМОТР ФОТО (LIGHTBOX) === */
.img-modal { 
    display: none; 
    position: fixed; 
    z-index: 10000; /* Выше шапки */
    left: 0; top: 0; 
    width: 100vw; height: 100vh; 
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(15px); /* Сильное размытие сайта на фоне */
    -webkit-backdrop-filter: blur(15px);
    justify-content: center; 
    align-items: center; 
    opacity: 0; /* Невидимо по умолчанию для плавной анимации */
    transition: opacity 0.3s ease;
}

/* Класс для плавного проявления */
.img-modal.show {
    opacity: 1;
}

.img-modal-content { 
    max-width: 85vw; 
    max-height: 85vh; 
    border-radius: 12px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинистый эффект */
}

/* Анимация увеличения при открытии */
.img-modal.show .img-modal-content {
    transform: scale(1);
}

/* Красивая кнопка закрытия */
.img-close { 
    position: absolute; 
    top: 25px; 
    right: 35px; 
    color: rgba(255,255,255,0.7); 
    font-size: 28px; 
    cursor: pointer; 
    transition: all 0.2s; 
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1); /* Полупрозрачный кружок */
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
}
.img-close:hover { 
    color: #fff; 
    background: rgba(255,255,255,0.2);
    transform: scale(1.1); /* Легкое увеличение при наведении */
}
/* === PAGE TRANSITIONS === */
.page-fade-in {
    animation: pageFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.page-fade-out {
    animation: pageFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: none; } /* <-- Заменили translateY(0) на none */
}
@keyframes pageFadeOut {
    0% { opacity: 1; transform: none; } /* <-- Заменили translateY(0) на none */
    100% { opacity: 0; transform: translateY(-10px); }
}

/* === HEADER NAV BUTTON === */
.header-nav {
    display: flex;
    justify-content: center;
    flex: 1;
}
.nav-btn {
    color: var(--text);
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* === FUNCTIONS PAGE LAYOUT === */
.functions-main {
    padding-top: 150px;
    padding-bottom: 80px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* === SLIDER (IOS 26 STYLE) === */
.slider-wrapper {
    position: relative;
    padding: 0; /* Убираем стандартный паддинг bento-card */
    aspect-ratio: 16/9;
    display: flex;
    align-items: flex-end;
}
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    z-index: 2;
}
.slide-info h4 { font-size: 1.8rem; margin-bottom: 8px; font-weight: 700; }
.slide-info p { color: var(--text-dim); font-size: 1rem; max-width: 80%; }

/* Кнопки iOS 26 (Glassmorphism Blur) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* === FAQ GRID === */
.faq-section { margin-top: 60px; padding: 0 20px; }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}
.faq-item h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.faq-item i { color: var(--accent); }

@media (max-width: 768px) {
    .header-nav { display: none; /* Или можно перенести в бургер меню, если нужно */ }
    .faq-grid { grid-template-columns: 1fr; }
    .slide-info p { max-width: 100%; }
}

/* === STATS SHOWCASE BLOCK === */
.stats-showcase-container {
    display: flex; gap: 40px; margin: 25px auto 0 !important; width: 100%; max-width: 750px !important;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 20px; padding: 30px 40px; backdrop-filter: blur(10px);
    align-items: center; justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.stats-text-area { display: flex; flex-direction: column; gap: 5px; flex: 1; }

/* Тот самый "высокий узкий" премиум шрифт. Используем font-stretch, если поддерживается, или просто сжимаем letter-spacing */
.premium-tall-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 2.2rem;
    letter-spacing: -1.5px; text-transform: uppercase; margin: 0; line-height: 1.1;
    transform: scaleY(1.1); /* Легкий хак для вытягивания текста вверх */
    transform-origin: bottom left;
}
.custom-square-highlight {
    background: var(--accent); color: #050505; padding: 2px 10px;
    border-radius: 4px; display: inline-block; font-weight: 800;
}
.launch-count { font-family: 'JetBrains Mono', monospace; font-size: 3rem; font-weight: 700; color: #fff; margin-top: 10px; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.stats-subtext { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

.stats-chart-area { flex: 1.5; min-width: 300px; position: relative; }
.chart-canvas-wrapper { width: 100%; height: 150px; position: relative; }
.chart-tabs { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 15px; }
.chart-tab {
    background: transparent; border: 1px solid var(--border); color: var(--text-dim);
    padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; 
    cursor: pointer; transition: 0.2s; font-family: 'JetBrains Mono', monospace;
}
.chart-tab.active, .chart-tab:hover { background: rgba(139, 92, 246, 0.15); color: #fff; border-color: var(--accent); }

@media (max-width: 768px) {
    .stats-showcase-container { flex-direction: column; text-align: center; }
    .premium-tall-text { transform-origin: bottom center; }
    .chart-tabs { justify-content: center; }
}

/* === PREMIUM STATS PANEL === */
.stats-showcase-container {
    display: flex; gap: 40px; margin: 40px auto 0; width: 100%; max-width: 700px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 20px; padding: 30px 35px; backdrop-filter: blur(10px);
    align-items: center; justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.stats-text-area { display: flex; flex-direction: column; text-align: left; flex: 1; }

/* Высокий узкий премиум текст */
.premium-tall-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900; font-size: 1.6rem;
    letter-spacing: -0.5px; text-transform: uppercase; margin: 0; line-height: 1;
    transform: scaleY(1.35) scaleX(0.9); /* Вытягиваем по вертикали, сужаем по горизонтали */
    transform-origin: left center;
}

/* Квадратное выделение кастомного фиолетового цвета */
.custom-square-highlight {
    background: var(--accent); color: #050505; padding: 2px 8px;
    border-radius: 4px; display: inline-block; font-weight: 900;
}

.launch-count { 
    font-family: 'JetBrains Mono', monospace; font-size: 2.8rem; font-weight: 700; 
    color: #fff; margin: 15px 0 5px 0; text-shadow: 0 0 20px rgba(255,255,255,0.15); 
}

.stats-subtext { color: var(--text-dim); font-size: 0.85rem; margin: 0; }

/* Зона графика */
.stats-chart-area { flex: 1.3; min-width: 280px; display: flex; flex-direction: column; gap: 10px; }
.chart-canvas-wrapper { width: 100%; height: 130px; position: relative; }
.chart-tabs { display: flex; justify-content: flex-end; gap: 6px; }

.chart-tab {
    background: transparent; border: 1px solid var(--border); color: var(--text-dim);
    padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; 
    cursor: pointer; transition: 0.2s; font-family: 'JetBrains Mono', monospace;
}
.chart-tab.active, .chart-tab:hover { 
    background: rgba(139, 92, 246, 0.15); color: #fff; border-color: var(--accent); 
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .stats-showcase-container { flex-direction: column; gap: 30px; padding: 25px; }
    .stats-text-area { text-align: center; align-items: center; }
    .premium-tall-text { transform-origin: center; }
    .chart-tabs { justify-content: center; }
}

/* === DISCORD MINI PROFILE HOVER === */
.profile-hover-trigger {
    position: relative;
}

.ds-mini-profile {
    position: absolute;
    top: -50px;
    left: 105%; /* Появляется справа от карточки */
    width: 330px;
    background: #111214;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-15px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    text-align: left;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.profile-hover-trigger:hover .ds-mini-profile {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* Структура Discord Профиля */
.ds-banner {
    height: 100px;
    background: linear-gradient(135deg, #1e1e24, #2a1b38); /* Заглушка, можно заменить на url(картинки) */
}
.ds-header {
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    position: relative;
}
.ds-avatar-wrapper {
    position: absolute;
    top: -40px;
    left: 16px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #111214;
    padding: 6px;
}
.ds-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.ds-status-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #111214;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0b232; /* Цвет луны */
    font-size: 12px;
}
.ds-badges {
    margin-left: auto;
    margin-top: 12px;
}
.ds-badges .badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}
.ds-body {
    padding: 40px 16px 16px;
}
.ds-display-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2px;
    color: #f2f3f5;
}
.ds-username {
    font-size: 0.9rem;
    color: #b5bac1;
}
.ds-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 12px 0;
}
.ds-about-me {
    font-size: 0.85rem;
    color: #dbdee1;
    line-height: 1.4;
    margin-bottom: 12px;
}
.ds-about-me a {
    color: #00a8fc;
    text-decoration: none;
}
.ds-spotify {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}
.sp-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #b5bac1;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.sp-content {
    display: flex;
    gap: 12px;
}
.sp-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-image: url('https://i.scdn.co/image/ab67616d0000b27393f1dc421376e4629f480f29'); 
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Легкая тень для объема */
}
.sp-info { flex: 1; }
.sp-title { font-size: 0.9rem; font-weight: 600; color: #f2f3f5; }
.sp-artist { font-size: 0.85rem; color: #b5bac1; margin-bottom: 6px; }
.sp-progress-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #b5bac1;
}
.sp-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}
.sp-fill {
    width: 30%; /* Длина прогресса */
    height: 100%;
    background: #f2f3f5;
    border-radius: 2px;
}
.ds-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ds-role {
    background: rgba(255,255,255,0.08);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.05);
}
.role-dot { width: 10px; height: 10px; border-radius: 50%; }
.role-dot.developer { background: #ed4245; }
.role-dot.support { background: #5865f2; }

/* Адаптация под мобильные устройства (чтобы профиль не уезжал за экран) */
@media (max-width: 900px) {
    .ds-mini-profile {
        left: 50%;
        top: 100%;
        transform: translate(-50%, -10px) scale(0.95);
        z-index: 2000;
    }
    .profile-hover-trigger:hover .ds-mini-profile {
        transform: translate(-50%, 10px) scale(1);
    }
}

/* === ИСПРАВЛЕНИЕ ОТОБРАЖЕНИЯ МИНИ-ПРОФИЛЯ === */

/* Убираем обрезку элементов у карточки, когда в ней есть профиль */
.bento-card.profile-hover-trigger {
    overflow: visible !important; 
}

/* Поднимаем карточку выше остальных при наведении, 
   чтобы профиль не уходил "под" соседнюю карточку */
.profile-hover-trigger:hover {
    z-index: 50; 
}