@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&family=Audiowide&display=swap');

:root {
    /* Основная палитра */
    --primary: #612df5;
    --primary-light: #8257fe;
    --primary-dark: #4111c0;
    
    /* Акцентные цвета */
    --accent: #ff3264;
    --accent2: #10ddc2;
    
    /* Фоновые цвета */
    --background: #10101e;
    --background-light: #181830;
    --background-lighter: #222242;
    
    /* Текстовые цвета */
    --text-light: #f0f0f8;
    --text-dark: #181818;
    
    /* Градиенты */
    --gradient-1: linear-gradient(135deg, #612df5, #4919b3);
    --gradient-2: linear-gradient(135deg, #ff3264, #ff5e47);
    --gradient-3: linear-gradient(135deg, #612df5, #3d19a0);
    --gradient-vibrant: linear-gradient(to right, #ff3264, #612df5);
    
    /* Тени и эффекты */
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    --glow-shadow: 0 0 20px rgba(97, 45, 245, 0.4);
    --neon-glow: 0 0 15px rgba(255, 50, 100, 0.6);
    
    /* Неоморфические тени */
    --neo-shadow-light: 3px 3px 6px rgba(0, 0, 0, 0.5), -3px -3px 6px rgba(80, 80, 160, 0.05);
    --neo-shadow-pressed: inset 2px 2px 5px rgba(0, 0, 0, 0.7), inset -2px -2px 5px rgba(80, 80, 160, 0.05);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    padding: 1rem;
    background-image: linear-gradient(to bottom, rgba(7, 7, 15, 0.9), rgba(7, 7, 15, 0.9)), url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    width: 100%;
    background-color: var(--background-light);
    border-radius: 16px;
    box-shadow: var(--neo-shadow-light);
    overflow: hidden;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    animation: fadeIn 1s ease-out;
    border: 1px solid rgba(97, 45, 245, 0.1);
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-vibrant);
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(97, 45, 245, 0.2);
    position: relative;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: var(--gradient-vibrant);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Audiowide', cursive;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    text-shadow: 0 0 15px rgba(97, 45, 245, 0.6), 0 0 30px rgba(97, 45, 245, 0.3);
    letter-spacing: 3px;
    position: relative;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1::before, h1::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--accent);
    top: 50%;
    opacity: 0.7;
}

h1::before {
    left: -60px;
    transform: translateX(-100%);
}

h1::after {
    right: -60px;
    transform: translateX(100%);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.9;
}

.quiz-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.quiz-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.7s ease-out;
}

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

#intro {
    text-align: center;
    padding: 2rem 0;
}

#intro h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(130, 87, 254, 0.3);
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#intro p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(240, 240, 248, 0.9);
}

.band-members-preview {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.member-preview {
    text-align: center;
    transition: transform 0.3s ease;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-fill-mode: both;
}

.member-preview:nth-child(1) { animation-delay: 0.1s; }
.member-preview:nth-child(2) { animation-delay: 0.2s; }
.member-preview:nth-child(3) { animation-delay: 0.3s; }
.member-preview:nth-child(4) { animation-delay: 0.4s; }

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.member-preview:hover {
    transform: translateY(-8px);
}

.member-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
    box-shadow: var(--neo-shadow-light);
    border: 3px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.member-preview:hover .member-avatar {
    transform: scale(1.05);
    box-shadow: var(--neon-glow);
    border-color: var(--accent);
}

.member-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(97, 45, 245, 0.3), transparent);
    z-index: 1;
}

.member-preview p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(130, 87, 254, 0.3);
}

.btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    display: block;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pulse 2s infinite;
    box-shadow: var(--neo-shadow-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(97, 45, 245, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(97, 45, 245, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(97, 45, 245, 0);
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(97, 45, 245, 0.5);
    animation: none;
    background: var(--gradient-vibrant);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-2px);
    box-shadow: var(--neo-shadow-pressed);
}

.btn:disabled {
    background: #333344;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
}

.btn:disabled::before {
    display: none;
}

#progress-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--neo-shadow-pressed);
}

#progress {
    height: 100%;
    background: var(--gradient-vibrant);
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

#progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3));
}

#question-number {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-block {
    background-color: var(--background-lighter);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border-left: 5px solid var(--primary);
    box-shadow: var(--neo-shadow-light);
    animation: fadeInLeft 0.5s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#question-text {
    font-size: 1.7rem;
    text-align: left;
    margin-bottom: 2.2rem;
    color: var(--text-light);
    line-height: 1.5;
    font-weight: 600;
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.option {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(97, 45, 245, 0.1);
    padding: 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--neo-shadow-light);
}

.option:hover {
    background-color: rgba(97, 45, 245, 0.05);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(97, 45, 245, 0.2);
}

.option.selected {
    background-color: rgba(97, 45, 245, 0.15);
    border-color: var(--primary);
    transform: translateX(12px);
    box-shadow: var(--glow-shadow);
}

.option.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--accent);
}

#results {
    text-align: center;
}

#results h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(130, 87, 254, 0.3);
    position: relative;
    display: inline-block;
    animation: fadeInDown 0.8s ease-out;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#results h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

#result-message {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--accent);
    text-shadow: var(--neon-glow);
    animation: glowText 2s ease-in-out infinite alternate, fadeIn 1s ease-out;
    padding: 1.5rem;
    border-radius: 50px;
    background: linear-gradient(to right, rgba(255, 50, 100, 0.05), transparent, rgba(255, 50, 100, 0.05));
}

@keyframes glowText {
    from {
        text-shadow: 0 0 5px rgba(255, 50, 100, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 50, 100, 0.6);
    }
}

.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    padding: 3rem;
    background-color: var(--background-lighter);
    border-radius: 20px;
    box-shadow: var(--neo-shadow-light);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(97, 45, 245, 0.1);
    animation: slideUp 0.8s ease-out;
}

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

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(97, 45, 245, 0.08), transparent);
    z-index: 0;
}

.profile-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-vibrant);
}

#profile-image {
    width: 220px;
    height: 220px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--neo-shadow-light), 0 0 25px rgba(97, 45, 245, 0.4);
    border: 4px solid var(--primary);
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite, rotateIn 1.2s ease-out;
    position: relative;
    margin-bottom: 0.5rem;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-30deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: var(--neo-shadow-light), 0 0 25px rgba(97, 45, 245, 0.4);
    }
    50% {
        box-shadow: var(--neo-shadow-light), 0 0 40px rgba(97, 45, 245, 0.6);
    }
}

#profile-description {
    text-align: left;
    line-height: 1.8;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    border-left: 4px solid var(--primary);
    max-width: 700px;
    box-shadow: var(--neo-shadow-light);
    animation: fadeIn 1s ease-out 0.3s both;
}

.dashboard-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0.7rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out 0.6s both;
    box-shadow: var(--neo-shadow-light);
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background-color: rgba(97, 45, 245, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--gradient-3);
    color: white;
    box-shadow: var(--neo-shadow-light);
}

.dashboard-container {
    margin-bottom: 2.5rem;
    position: relative;
    min-height: 400px;
}

.dashboard-panel {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.dashboard-panel.active {
    display: block;
}

.charts-row {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.chart-wrapper {
    background-color: var(--background-lighter);
    border-radius: 16px;
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    box-shadow: var(--neo-shadow-light);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(97, 45, 245, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInStaggered 0.8s ease-out both;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.charts-row:nth-child(1) .chart-wrapper:nth-child(1) { animation-delay: 0.2s; }
.charts-row:nth-child(1) .chart-wrapper:nth-child(2) { animation-delay: 0.4s; }
.charts-row:nth-child(2) .chart-wrapper:nth-child(1) { animation-delay: 0.6s; }
.charts-row:nth-child(2) .chart-wrapper:nth-child(2) { animation-delay: 0.8s; }

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

.chart-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-vibrant);
    opacity: 0.7;
    z-index: 1;
}

.chart-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(97, 45, 245, 0.2);
}

.chart-wrapper.large {
    flex: 100%;
    min-height: 380px;
}

.chart-wrapper h3 {
    color: var(--primary-light);
    font-size: 1.3rem;
    margin-bottom: 1.4rem;
    text-align: left;
    border-bottom: 1px solid rgba(130, 87, 254, 0.1);
    padding-bottom: 1rem;
    position: relative;
}

.chart-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.chart-container {
    flex: 1;
    min-height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Стили для информационных меток на радарной диаграмме */
.chart-labels {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    padding: 10px;
}

.chart-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chart-label-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
}

.share-container {
    margin: 2.5rem 0;
    text-align: center;
    background-color: var(--background-lighter);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--neo-shadow-light);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(97, 45, 245, 0.1);
    animation: fadeIn 1s ease-out 1s both;
}

.share-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-2);
}

.share-container p {
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
    color: var(--accent2);
    font-weight: 600;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-btn {
    padding: 1rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--neo-shadow-light);
    letter-spacing: 1px;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-btn:hover::before {
    left: 100%;
}

.vk {
    background: linear-gradient(to right, #4175a7, #345f8a);
}

.tg {
    background: linear-gradient(to right, #0088cc, #0065aa);
}

#restart-btn {
    animation: pulse 2s infinite, fadeIn 1s ease-out 1.2s both;
}

footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(97, 45, 245, 0.1);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--primary-light);
    text-shadow: 0 0 5px rgba(97, 45, 245, 0.3);
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

footer::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--gradient-vibrant);
}

footer p {
    position: relative;
    display: inline-block;
}

footer p::before, footer p::after {
    content: "🎸";
    margin: 0 10px;
    opacity: 0.8;
}

/* Медиа-запросы для адаптивности */
@media (min-width: 768px) {
    .profile-hero {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    #profile-image {
        margin-bottom: 0;
    }
    
    .chart-wrapper.large {
        min-height: 450px;
    }
    
    .charts-row {
        min-height: 350px;
    }
}

/* Адаптивность для средних экранов */
@media (max-width: 800px) {
    .container {
        padding: 1.8rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    #intro h2 {
        font-size: 2rem;
    }
    
    .dashboard-tabs {
        overflow-x: auto;
        padding: 0.5rem;
        justify-content: flex-start;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        flex: 0 0 auto;
    }
    
    .chart-wrapper {
        min-height: 300px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    #intro h2 {
        font-size: 1.6rem;
    }
    
    #intro p {
        font-size: 1rem;
    }
    
    .member-avatar {
        width: 90px;
        height: 90px;
    }
    
    .band-members-preview {
        gap: 1rem;
    }
    
    .member-preview p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .question-block {
        padding: 1.5rem;
    }
    
    #question-text {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .option {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .option:hover {
        transform: translateX(5px);
    }
    
    .option.selected {
        transform: translateX(8px);
    }
    
    #result-message {
        font-size: 1.4rem;
        padding: 1rem;
    }
    
    #results h2 {
        font-size: 1.8rem;
    }
    
    .profile-hero {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    #profile-image {
        width: 150px;
        height: 150px;
    }
    
    #profile-description {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .dashboard-tabs {
        border-radius: 30px;
        margin-bottom: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .chart-wrapper {
        padding: 1.2rem;
        min-height: 250px;
    }
    
    .chart-wrapper h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .chart-container {
        min-height: 200px;
    }
    
    .share-container {
        padding: 1.5rem;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-btn {
        width: 100%;
    }
    
    footer p::before, footer p::after {
        display: none;
    }
    
    .dashboard-tabs::after {
        content: "";
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(97, 45, 245, 0.2);
        border-radius: 2px;
    }
    
    html, body {
        overscroll-behavior: none;
    }
    
    .option, .btn, .social-btn, .tab-btn {
        min-height: 44px;
    }
    
    .option, .btn, .tab-btn, .social-btn {
        position: relative;
        z-index: 2;
    }
    
    .option:hover, .chart-wrapper:hover {
        transform: none;
    }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 375px) {
    .container {
        padding: 1.2rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .member-avatar {
        width: 70px;
        height: 70px;
    }
    
    #profile-image {
        width: 120px;
        height: 120px;
    }
    
    .question-block {
        padding: 1.2rem;
    }
    
    #question-text {
        font-size: 1.2rem;
    }
    
    .option {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .dashboard-tabs {
        padding: 0.3rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .chart-wrapper {
        padding: 1rem;
        min-height: 200px;
    }
    
    .chart-wrapper h3 {
        font-size: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .chart-container {
        min-height: 180px;
    }
}

/* Стили для касания на мобильных устройствах */
.touch-active {
    background-color: rgba(97, 45, 245, 0.15) !important;
    transform: scale(0.98) !important;
    transition: all 0.1s ease-out !important;
}

.option:active {
    background-color: rgba(97, 45, 245, 0.15);
    transform: scale(0.98);
    transition: all 0.1s ease-out;
}

/* Скрываем полосы прокрутки на мобильных устройствах */
.dashboard-tabs {
    -ms-overflow-style: none;  /* IE и Edge */
    scrollbar-width: none;  /* Firefox */
}

.dashboard-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari и Opera */
}

/* Улучшение активного состояния кнопок на мобильных */
.btn:active, .social-btn:active, .tab-btn:active {
    transform: scale(0.95);
    transition: all 0.1s ease-out;
} 