/* Фон для body и site-header */
	body {
		background-color: var(--card-background);
	}

	.site-header {
		background-color: var(--card-background);
	}
	/* Цвет для ссылки с классом logo */
.logo {
    color: var(--profile-header-h1-color);
}
hr {
    margin: 20px 45px 20px 45px;
    padding: 0;
    height: 0;
    border: none;
    border-top: 3px solid var(--profile-header-h1-color);
}
/* Цвет при наведении (опционально, для улучшения UX) */
.logo:hover {
    color: var(--primary-color); /* Акцентный цвет из темы для наведения */
    text-decoration: none; /* Убираем подчеркивание при наведении */
}
/* По умолчанию скрываем promo-block */
.promo-block {
    display: none; /* Скрыт изначально */
    background-color: var(--card-background);
    color: var(--color-promo);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin: 20px auto;
    max-width: var(--profile-card-max-width);
}

/* Показываем блок, когда добавлен класс visible */
.promo-block.visible {
    display: block;
}
/* Стили для promo-block */
.promo-block {
    background-color: var(--card-background); /* Фон как у .profile-card */
    color: var(--color-promo); /* Цвет текста из темы */
    padding: 15px; /* Внутренние отступы */
    border-radius: var(--border-radius); /* Радиус углов из темы */
    box-shadow: var(--shadow); /* Тень из темы */
    text-align: center; /* Центрирование текста */
    margin: 20px auto; /* Отступы для центрирования */
    max-width: var(--profile-card-max-width); /* Максимальная ширина как у .profile-card */
}

/* Стили для текста внутри promo-block */
.promo-block p {
    margin: 0; /* Убираем отступы у параграфа */
    font-size: var(--bio-section-font-size); /* Размер шрифта как в .bio-section */
}

/* Стили для ссылки в promo-block */
.promo-block a {
    color: var(--profile-header-h1-color); /* Цвет как у .profile-title */
    text-decoration: none; /* Убираем подчеркивание по умолчанию */
}

/* Стили при наведении на ссылку */
.promo-block a:hover {
    color: var(--primary-color); /* Акцентный цвет при наведении */
    text-decoration: underline; /* Подчеркивание при наведении */
}
		/* Цвет ссылок в main-nav */
	.main-nav a {
		color: var(--profile-header-h1-color);
	}

	/* Цвет ссылок при наведении (опционально, для улучшения UX) */
	.main-nav a:hover {
		color: var(--primary-color); /* Акцентный цвет из темы для наведения */
		text-decoration: underline;
	}
    /* Стили для .profile-card */
    .profile-card {
        width: var(--profile-card-width);
        max-width: var(--profile-card-max-width);
        margin: var(--profile-card-margin);
        padding: var(--profile-card-padding);
        border: var(--profile-card-border);
        border-radius: var(--profile-card-border-radius);
        box-shadow: var(--profile-card-box-shadow);
        overflow: var(--profile-card-overflow);
        color: var(--profile-card-color);
    }

    /* Стили для .profile-header */
    .profile-header {
        text-align: var(--profile-header-text-align);
        margin-bottom: var(--profile-header-margin-bottom);
        padding-bottom: var(--profile-header-padding-bottom);
        background-color: var(--profile-header-background-color);
        border-bottom: var(--profile-header-border-bottom);
        border-radius: var(--profile-header-border-radius);
    }

    /* Стили для .profile-header h1 */
    .profile-header h1 {
        font-size: var(--profile-header-h1-font-size);
        padding: var(--profile-header-h1-padding);
        color: var(--profile-header-h1-color);
    }

    /* Стили для .profile-share */
    .profile-share {
        display: var(--profile-share-display);
        justify-content: var(--profile-share-justify-content);
        align-items: var(--profile-share-align-items);
        gap: var(--profile-share-gap);
        margin: var(--profile-share-margin);
        flex-wrap: var(--profile-share-flex-wrap);
        max-width: var(--profile-share-max-width);
    }

    /* Стили для .profile-link, .qr-button, .download-qr */
    .profile-link, .qr-button, .download-qr {
        display: var(--profile-link-display);
        align-items: var(--profile-link-align-items);
        justify-content: var(--profile-link-justify-content);
        gap: var(--profile-link-gap);
        padding: var(--profile-link-padding);
        background-color: var(--profile-link-background-color);
        color: var(--profile-link-color);
        font-weight: var(--profile-link-font-weight);
        font-size: var(--profile-link-font-size);
        border-radius: var(--profile-link-border-radius);
        cursor: var(--profile-link-cursor);
        transition: var(--profile-link-transition);
        width: var(--profile-link-width);
        text-align: var(--profile-link-text-align);
        box-sizing: var(--profile-link-box-sizing);
    }

    /* Стили для .profile-link:hover, .qr-button:hover, .download-qr:hover */
    .profile-link:hover, .qr-button:hover, .download-qr:hover {
        background-color: var(--profile-link-hover-background-color);
        transform: var(--profile-link-hover-transform);
    }

    /* Стили для .profile-link:active, .qr-button:active, .download-qr:active */
    .profile-link:active, .qr-button:active, .download-qr:active {
        transform: var(--profile-link-active-transform);
    }

    /* Стили для .profile-link.copied i */
    .profile-link.copied i {
        color: var(--profile-link-copied-i-color);
    }

    /* Стили для .profile-link i, .qr-button i, .download-qr i */
    .profile-link i, .qr-button i, .download-qr i {
        color: var(--profile-link-i-color);
        transition: var(--profile-link-i-transition);
    }

    /* Стили для .bio-section */
    .bio-section {
        margin-bottom: var(--bio-section-margin-bottom);
        padding: var(--bio-section-padding);
        background-color: var(--bio-section-background-color);
        border-radius: var(--bio-section-border-radius);
        box-shadow: var(--bio-section-box-shadow);
        font-size: var(--bio-section-font-size);
        color: var(--bio-section-color);
        line-height: var(--bio-section-line-height);
    }

    /* Стили для .bio-section p */
    .bio-section p {
        margin: var(--bio-section-p-margin);
    }

    /* Стили для .profile-section */
    .profile-section {
        margin-bottom: var(--profile-section-margin-bottom);
    }

    /* Стили для .profile-section h2 */
    .profile-section h2 {
        color: var(--profile-section-h2-color);
        margin-bottom: var(--profile-section-h2-margin-bottom);
        font-size: var(--profile-section-h2-font-size);
        padding-bottom: var(--profile-section-h2-padding-bottom);
        border-bottom: var(--profile-section-h2-border-bottom);
    }

    /* Стили для .links-list, .text-data-list */
    .links-list,
    .text-data-list {
        list-style: var(--links-list-list-style);
        padding: var(--links-list-padding);
    }

    /* Стили для .links-list li, .text-data-list li */
    .links-list li,
    .text-data-list li {
        display: var(--links-list-li-display);
        flex-wrap: var(--links-list-li-flex-wrap);
        align-items: var(--links-list-li-align-items);
        justify-content: var(--links-list-li-justify-content);
        padding: var(--links-list-li-padding);
        margin-bottom: var(--links-list-li-margin-bottom);
        background-color: var(--links-list-li-background-color);
        border-radius: var(--links-list-li-border-radius);
        box-shadow: var(--links-list-li-box-shadow);
        transition: var(--links-list-li-transition);
    }

    /* Стили для .links-list li:hover */
    .links-list li:hover {
        background-color: var(--links-list-li-hover-background-color);
        transform: var(--links-list-li-hover-transform);
    }

    /* Стили для .links-list a */
    .links-list a {
        display: var(--links-list-a-display);
        align-items: var(--links-list-a-align-items);
        text-decoration: var(--links-list-a-text-decoration);
        color: var(--links-list-a-color);
        flex: var(--links-list-a-flex);
        min-width: var(--links-list-a-min-width);
    }

    /* Стили для .link-icon, .text-icon */
    .link-icon,
    .text-icon {
        margin-right: var(--link-icon-margin-right);
        font-size: var(--link-icon-font-size);
    }

    /* Стили для .text-data-info */
    .text-data-info {
        display: var(--text-data-info-display);
        align-items: var(--text-data-info-align-items);
        flex: var(--text-data-info-flex);
        min-width: var(--text-data-info-min-width);
    }

    /* Стили для .text-data-key */
    .text-data-key {
        font-weight: var(--text-data-key-font-weight);
        color: var(--text-data-key-color);
        min-width: var(--text-data-key-min-width);
    }

    /* Стили для .text-data-value */
    .text-data-value {
        color: var(--text-data-value-color);
        flex: var(--text-data-value-flex);
        word-break: var(--text-data-value-word-break);
    }

    /* Стили для strong.text-data-key */
    strong.text-data-key {
        display: var(--text-data-key-display);
    }
/* Модальное окно (фон) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Контент модального окна */
.modal-content {
    background-color: var(--card-background);
    color: var(--card-text-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 400px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* Кнопка закрытия */
.close {
    color: var(--card-text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* QR-код */
#qrCode {
    margin: 20px auto;
}
		a.link_setting {
			margin-top: 10px;
		}
		
.section-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 10px 20px;
    background-color: var(--links-background);
    color: var(--card-text-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--profile-link-transition);
    font-weight: var(--profile-link-font-weight);
    font-size: var(--profile-link-font-size);
    min-width: 100px;
    text-align: center;
}

.tab-button:hover {
    background-color: var(--links-hover-background);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--border-radius) + 4px);
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Стили для модального окна QR-кода (#qrModal) */
#qrModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#qrModal .modal-content {
    background-color: var(--card-background);
    color: var(--card-text-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 400px;
    box-shadow: var(--shadow);
    text-align: center;
}

#qrModal .close {
    color: var(--card-text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#qrModal .close:hover,
#qrModal .close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

#qrCode {
    margin: 20px auto;
}

/* Стили для модального окна изображений (#imageModal) */
#imageModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

#imageModal .modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background: none;
    border: none;
    padding: 0;
}

#imageModal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
}

#imageModal .modal-close:hover,
#imageModal .modal-close:focus {
    color: var(--primary-color);
}
/* Стили для .profile-card */
.profile-card {
    width: var(--profile-card-width);
    max-width: var(--profile-card-max-width);
    margin: var(--profile-card-margin);
    padding: var(--profile-card-padding);
    border: var(--profile-card-border);
    border-radius: var(--profile-card-border-radius);
    box-shadow: var(--profile-card-box-shadow);
    overflow: visible; /* Аватарка может выходить за пределы */
    color: var(--profile-card-color);
    position: relative;
    margin-top: 80px; /* Добавляем отступ сверху, чтобы карточка сдвинулась вниз */
}

/* Стили для .profile-header */
.profile-header {
    text-align: var(--profile-header-text-align);
    margin-bottom: var(--profile-header-margin-bottom);
    padding-bottom: var(--profile-header-padding-bottom);
    background-color: var(--profile-header-background-color);
    border-bottom: var(--profile-header-border-bottom);
    border-radius: var(--profile-header-border-radius);
    padding-top: 60px; /* Компенсируем высоту аватарки, которая выходит наверх */
    position: relative;
}

/* Стили для аватарки */
.profile-avatar {
    display: block;
    width: 150px; /* Размер аватарки */
    height: 150px;
    border-radius: 50%; /* Круглая форма */
    object-fit: cover; /* Обрезаем изображение для заполнения */
    margin: -80px auto 0px auto; /* Сдвиг вверх на 80px */
    border: 5px solid var(--card-background); /* Граница в цвет карточки */
    box-shadow: var(--shadow); /* Тень из темы */
    position: absolute; /* Позиционируем относительно .profile-card */
    top: 0; /* Привязываем к верхнему краю .profile-card */
    left: 50%; /* Центрируем по горизонтали */
    transform: translateX(-50%); /* Смещаем влево на половину ширины */
    z-index: 2; /* Выше содержимого карточки */
}
/* Стили для блока социальных ссылок */
.social-links-section {
    margin-bottom: var(--profile-section-margin-bottom);
}

.social-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px;
}

.social-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--border-radius) + 4px);
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--links-background);
    text-decoration: none;
}

.social-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--links-hover-background);
}

.social-gallery-image {
    width: 60%;
    height: 60%;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 10px;
}

.social-gallery-info {
    text-align: center;
    padding: 8px;
    color: var(--card-text-color);
    width: 100%;
}

.social-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.social-title {
    display: block;
    font-size: 0.9rem;
    font-weight: var(--profile-link-font-weight);
    margin-bottom: 4px;
}

.social-profile-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-data-value-color);
    opacity: 0.8;
}
/* Стили для модального окна фона */
#backgroundModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

#backgroundModal .modal-content {
    background: var(--card-background);
    color: var(--card-text-color);
    margin: 5% auto;
    padding: 24px;
    border: 1px solid var(--card-border-color);
    border-radius: calc(var(--border-radius) + 8px);
    width: 90%;
    max-width: 700px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.2);
}

#backgroundModal .modal-content::-webkit-scrollbar {
    width: 8px;
}

#backgroundModal .modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

#backgroundModal .modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

#backgroundModal .close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    font-weight: bold;
    color: var(--card-text-color);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

#backgroundModal .close:hover,
#backgroundModal .close:focus {
    color: var(--primary-color);
    transform: scale(1.1);
}

#backgroundModal h2 {
    margin: 0 0 16px;
    font-size: 1.6rem;
    color: var(--profile-header-h1-color);
    font-weight: 600;
}

#backgroundModal .tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#backgroundModal .tab-button {
    padding: 12px 24px;
    background: linear-gradient(145deg, var(--links-background), rgba(255, 255, 255, 0.1));
    color: var(--card-text-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: var(--profile-link-font-weight);
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

#backgroundModal .tab-button:hover {
    background: var(--links-hover-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#backgroundModal .tab-button.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#folderList {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.folder-btn {
    padding: 12px 20px;
    background: linear-gradient(145deg, var(--links-background), rgba(255, 255, 255, 0.1));
    color: var(--card-text-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: var(--profile-link-font-weight);
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.folder-btn:hover {
    background: var(--links-hover-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.folder-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#backgroundGallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.bg-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: calc(var(--border-radius) + 4px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-thumbnail:hover {
    opacity: 0.85;
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

#applyBackgroundBtn, #resetBgBtn {
    margin: 16px 8px 0;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
}

#applyBackgroundBtn {
    background: linear-gradient(145deg, #28a745, #218838);
    color: white;
}

#applyBackgroundBtn:hover {
    background: linear-gradient(145deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#resetBgBtn {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    color: white;
}

#resetBgBtn:hover {
    background: linear-gradient(145deg, #5a6268, #545b62);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Твиты */
/* Стили для секции твитов */
.tweets-section {
    margin-bottom: var(--profile-section-margin-bottom);
    padding: 15px;
    background: linear-gradient(145deg, var(--card-background), rgba(255, 255, 255, 0.1));
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.loading-spinner {
    border: 4px solid var(--card-background);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Стили для каждого твита */
.tweet-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--links-background);
    border-radius: calc(var(--border-radius) + 4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border-color);
}
/* Опциональный спиннер (добавьте, если хотите крутилку вместо текста) */
.loading-spinner {
    border: 4px solid var(--card-background);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.links-list-li.loading {
    text-align: center;
    padding: 20px;
}
.tweet-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: var(--links-hover-background);
}
/* Стили для аватарки твита */
.tweet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: border-color 0.3s ease;
}

.tweet-item:hover .tweet-avatar {
    border-color: var(--links-hover-background);
}

/* Стили для контента твита */
.tweet-content {
    flex: 1;
    color: var(--card-text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Стили для метаданных твита */
.tweet-meta {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tweet-meta strong {
    color: var(--profile-header-h1-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.tweet-meta strong:hover {
    color: var(--primary-color);
}

.tweet-meta small {
    color: var(--text-data-value-color);
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Стили для текста твита */
.tweet-content p {
    margin: 0;
    word-break: break-word;
    color: var(--card-text-color);
}

/* Стили для ссылок в твите */
.tweet-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tweet-content a:hover {
    color: var(--links-hover-background);
    text-decoration: underline;
}

/* Анимация появления твитов */
.tweet-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

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

/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a {
    padding: 10px 16px;
    background: linear-gradient(145deg, var(--links-background), rgba(255, 255, 255, 0.1));
    color: var(--card-text-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--links-hover-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination a.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(0);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .tweet-item {
        padding: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tweet-avatar {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .tweet-content {
        font-size: 0.9rem;
    }

    .tweet-meta {
        flex-direction: column;
        gap: 4px;
    }

    .pagination a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tweet-item {
        padding: 10px;
    }

    .tweet-avatar {
        width: 36px;
        height: 36px;
    }

    .tweet-content {
        font-size: 0.85rem;
    }

    .tweet-meta strong {
        font-size: 0.9rem;
    }

    .tweet-meta small {
        font-size: 0.8rem;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    #backgroundModal .modal-content {
        width: 95%;
        max-width: 500px;
        padding: 16px;
        max-height: 85vh;
    }

    #backgroundModal h2 {
        font-size: 1.4rem;
    }

    #backgroundModal .tab-button {
        padding: 10px 18px;
        min-width: 100px;
        font-size: 0.85rem;
    }

    .folder-btn {
        padding: 10px 16px;
        min-width: 80px;
        font-size: 0.85rem;
    }

    #backgroundGallery {
        gap: 10px;
    }

    .bg-thumbnail {
        width: 80px;
        height: 80px;
    }

    #applyBackgroundBtn, #resetBgBtn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }
			a.link_setting {
			margin-top: 0px;
		}
}

@media (max-width: 480px) {
    #backgroundModal .modal-content {
        width: 98%;
        padding: 12px;
        max-height: 80vh;
    }

    #backgroundModal h2 {
        font-size: 1.2rem;
    }

    #backgroundModal .tabs {
        gap: 8px;
    }

    #backgroundModal .tab-button {
        padding: 8px 14px;
        min-width: 80px;
        font-size: 0.8rem;
    }

    .folder-btn {
        padding: 8px 12px;
        min-width: 70px;
        font-size: 0.8rem;
    }

    #backgroundGallery {
        gap: 8px;
    }

    .bg-thumbnail {
        width: 70px;
        height: 70px;
    }

    #applyBackgroundBtn, #resetBgBtn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 90px;
    }
}
/* Адаптивность */
@media (max-width: 480px) {
    .social-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
		gap: 5px;
        padding: 1px;
    }

    .social-gallery-image {
        width: 50%;
        height: 50%;
    }

    .social-title {
        font-size: 0.8rem;
    }

    .social-profile-title {
        font-size: 0.7rem;
    }
}
/* Адаптивность для экранов до 525px */
@media (max-width: 525px) {
    .profile-avatar {
        width: 100px !important;
        height: 100px !important;
        margin: -40px auto 15px auto; /* Меньший сдвиг вверх */
    }
    .profile-header {
        padding-top: 50px !important; /* Меньший отступ для компенсации */
    }
	.pro-icon {
    font-size: 15px;
    width: 7%;
}
    .profile-card {
        margin-top: 30px !important; /* Меньший отступ сверху карточки */
    }
	.tab-button {
    padding: 10px 8px 10px 8px;
	min-width: 0px;
}
}
@media (max-width: 850px) {
    .profile-card {
        max-width: 100%;
        margin: 20px 0px;
        padding: 20px;
    }
    .profile-avatar {
        width: 150px;
        height: 150px;
        margin: -40px auto 15px auto;
    }
	.profile-card {
    margin-top: 30px !important;
}
	a.link_setting {
			margin-top: 0px;
		}
	.profile-header {
    padding-top: 100px;
}
	.pro-icon {
    font-size: 15px;
    width: 7%;
}
    .profile-share {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-link, .qr-button, .download-qr {
        width: 45%;
        max-width: 300px;
        margin: 0 auto;
        padding: 5px 0px;
    }

    .links-list li,
    .text-data-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .link-info,
    .text-data-info {
        width: 100%;
        padding: 5px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 1.3rem;
    }

    .profile-section h2 {
        font-size: 1.1rem;
    }

    .links-list li,
    .text-data-list li {
        padding: var(--links-list-li-padding);
    }

    .link-icon,
    .text-icon {
        font-size: 1rem;
        margin-right: 6px;
    }

    .text-data-key,
    .text-data-value {
        font-size: 0.8rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        width: 98%;
    }
}
@media (max-width: 790px) {
	    .social-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
.social-gallery-image {
    width: 40%;
    height: 40%;
}
}