/* Базовые настройки */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }
            
.changewallpaper {
    position: fixed;
    top: 20px;
    right: -30px;

    width: 30%;
    max-width: 70px;
    padding: 6px;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.82);

    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(255, 255, 255, 0.08);

    cursor: pointer;
    overflow: hidden;

    transition:
        right 0.4s cubic-bezier(0.33, 1, 0.68, 1),
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    font-size: 28px;
}

.changewallpaper:hover {
    right: 15px;

    background: rgba(255, 255, 255, 0.12);

    transform: translateY(-2px);

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 12px rgba(255, 255, 255, 0.28),
        0 0 30px rgba(255, 255, 255, 0.12);
}

.changewallpaper:active {
    transform: scale(0.97);
}

.changewallpaper::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(
        circle,
        rgba(120, 220, 255, 0.28),
        rgba(170, 120, 255, 0.12) 35%,
        transparent 65%
    );
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.changewallpaper:hover::after {
    opacity: 1;
    transform: scale(1);
}
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    
    background-color: #121212; 
}

.bg, .bg-next {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-next {
    clip-path: circle(0% at 50% 50%);
    -webkit-clip-path: circle(0% at 50% 50%);
}

        /* Главная стеклянная панель */
.main-panel {
    background: rgba(30, 30, 30, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 750px;
    margin: 0 auto; /* <-- ДОБАВЬТЕ ЭТУ СТРОКУ */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(255, 255, 255, 0.15);
}

        /* Шапка профиля */
        .profile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .profile-info {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.15),
            0 0 10px rgba(255, 255, 255, 0.2),
            0 0 25px rgba(255, 255, 255, 0.08);
            /* Временный фон для аватара */
            background: linear-gradient(45deg, #a18cd1, #fbc2eb); 
        }

        .user-details h1 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .user-details span {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.7);
            
        }

        /* Кнопки соцсетей в шапке */
        .social-buttons {
            display: flex;
            gap: 10px;
        }

        .social-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            text-decoration: none;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.15),
                0 0 10px rgba(255, 255, 255, 0.2),
                0 0 25px rgba(255, 255, 255, 0.08);
            transition: all 0.2s ease;
            
        }

        .social-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Сетка карточек (2x2 как на скриншоте) */
        .grid-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        /* Внутренние стеклянные карточки */
        .inner-card {
            background: rgba(40, 40, 40, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.15),
                0 0 10px rgba(255, 255, 255, 0.2),
                0 0 25px rgba(255, 255, 255, 0.08);   /* 4. Еле заметный дальний шлейф */
            border-radius: 16px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 16px;
            min-height: 120px; /* Чтобы пустые карточки держали форму */
        }

        /* Рамочка для заголовка внутри карточки */
        .card-title {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 8px;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.2),
             0 0 15px rgba(255, 255, 255, 0.08);
        }

        /* Текст внутри карточек */
        .card-content {
            font-size: 13px;
            text-align: center;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 0 6px rgba(255, 255, 255, 0.2),
             0 0 15px rgba(255, 255, 255, 0.08);
            line-height: 1.6;
        }

        .card-content p {
            margin-bottom: 8px;
        }

        .card-content a {
            text-decoration: none;
        }

        .card-content a:hover {
            text-decoration: underline;
        }

        .about-section {
    text-align: left;
}

.about-desc {
    margin-top: 20px;
    margin-left: 0;
}

#copyToast {
    /* --- ПОЗИЦИОНИРОВАНИЕ И ФИКС БЛЮРА --- */
    position: absolute; /* Отсчитывает от нового контейнера .profile-wrapper */
    z-index: -1; /* Ставим -1, чтобы при выезде плашка красиво выплывала ИЗ-ПОД основной карточки */
    left: 50%;
    /* translateZ(0) заставляет браузер включить блюр даже рядом с другими блюрами */
    transform: translateX(-50%) translateZ(0); 
    
    /* --- СКРЫТОЕ СОСТОЯНИЕ --- */
    bottom: 20px; /* Спрятано выше нижнего края карточки */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    
    /* --- ВНУТРЕННЕЕ ВЫРАВНИВАНИЕ --- */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    padding: 10px 18px;
    
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(255, 255, 255, 0.08);
        transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0.4s;
}

#copyToast.show {
    visibility: visible;
    opacity: 1;
    bottom: -70px; 
    transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0s;
}

@media (max-width: 500px) {
        body {
        padding: 10px; /* вместо margin на main-panel */
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 0 10px; /* ← добавь это */
    }
    .profile-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .main-panel {
        padding: 15px;
        margin: 10px auto
    }
    #copyToast {
        z-index: 999;
        bottom: 580px;
        
        opacity: 0;
        visibility: hidden;
        
        transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0.4s;
    }

    #copyToast.show {
        z-index: 999;
        bottom: 630px;
        
        opacity: 1;
        visibility: visible;
        
        transition: opacity 0.4s ease, bottom 0.4s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s linear 0s;
    }
}
        @media (max-width: 650px) {
    .profile-header {
        flex-direction: column;
        gap: 16px;
        align-items: center; 
        text-align: center;
    }
    
    .about-section {
        text-align: center;
        width: 100%;
        margin-bottom: 6px; 
    }
    .about-desc {
        margin-left: auto;
        margin-right: auto; 
    }

    .changewallpaper {
        position: fixed;
        top: auto;
        bottom: 30px;
        right: 20px;
        
        width: 52px;
        height: 52px;
        max-width: none;
        
        border-radius: 50%;
        padding: 0;
        
        display: flex;
        justify-content: center;
        align-items: center;
        
        z-index: 9999;
        
        /* Убираем стандартный квадратный блик при тапе на Android/iOS */
        -webkit-tap-highlight-color: transparent; 
    }

    /* Сбрасываем "залипающий" hover до базовых значений, чтобы кнопка не светилась после тапа */
    .changewallpaper:hover {
        right: 10px;
        transform: none;
        background: rgba(255, 255, 255, 0.08); /* Возвращаем стандартный фон */
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.15),
            0 0 10px rgba(255, 255, 255, 0.2),
            0 0 25px rgba(255, 255, 255, 0.08); /* Возвращаем стандартную тень */
    }

    /* Оставляем только анимацию вдавливания в момент самого касания */
    .changewallpaper:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.12); /* Чуть подсвечиваем только пока палец на экране */
    }
}