/* ===== PREMIUM VARIABLES ===== */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --darker: #020617;
    --dark-alpha: rgba(2, 6, 23, 0.8);
    --light: #f8fafc;
    --light-alpha: rgba(248, 250, 252, 0.9);
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --bg: rgba(15, 23, 42, 0.92);
    --bg-light: rgba(255, 255, 255, 0.03);
    --bg-gradient: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 50%;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Telegram Colors */
    --telegram: #0088cc;
    --telegram-light: #00aced;
    --telegram-dark: #006699;
    --telegram-bg: rgba(0, 136, 204, 0.1);
    --telegram-border: rgba(0, 136, 204, 0.2);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark);
    color: var(--light);
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ENHANCED FULLSCREEN BACKGROUND ===== */
.public-profile-container {
    min-height: 100vh;
    position: relative;
    background: var(--dark);
}

.profile-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

/* Базовый градиентный фон */
.profile-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Градиентное затемнение для читаемости контента */
.profile-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(2, 6, 23, 0.9) 0%,
        rgba(2, 6, 23, 0.7) 20%,
        rgba(2, 6, 23, 0.5) 40%,
        rgba(2, 6, 23, 0.4) 60%,
        rgba(2, 6, 23, 0.6) 80%,
        rgba(2, 6, 23, 0.95) 100%
    );
    z-index: 2;
}

/* Background Variants */
.background-gradient-1::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
}

.background-gradient-2::before {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
}

.background-gradient-3::before {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important;
}

.background-solid-dark::before {
    background: #1e293b !important;
}

.background-solid-light::before {
    background: #e2e8f0 !important;
}

/* Кастомные фоны с изображениями */
.background-custom::before {
    background: var(--custom-background) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.background-custom::after {
    background: linear-gradient(
        to bottom,
        rgba(2, 6, 23, 0.95) 0%,
        rgba(2, 6, 23, 0.8) 25%,
        rgba(2, 6, 23, 0.6) 50%,
        rgba(2, 6, 23, 0.7) 75%,
        rgba(2, 6, 23, 0.95) 100%
    ) !important;
}

/* ===== PREMIUM GLASS MORPHISM CONTAINER ===== */
.profile-content {
    position: relative;
    z-index: 10;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

/* ===== PREMIUM PROFILE HEADER ===== */
.profile-header {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin: 0 auto 2rem;
    width: 100%;
    max-width: 100%;
    box-shadow:
        var(--shadow-xl),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all var(--transition-normal);
    text-align: center;
}

/* Анимированный контур */
.profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    padding: 2px;
    background: linear-gradient(135deg,
        var(--primary) 0%,
        var(--secondary) 50%,
        var(--accent) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 3s linear infinite;
    opacity: 0.8;
}

/* ===== PREMIUM AVATAR DESIGN ===== */
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid transparent;
    position: relative;
    box-shadow:
        var(--shadow-lg),
        0 0 20px rgba(139, 92, 246, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    z-index: 2;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow:
        var(--shadow-xl),
        0 0 30px rgba(139, 92, 246, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.15);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    position: relative;
    z-index: 1;
}

/* ===== PREMIUM TYPOGRAPHY ===== */
.profile-info {
    flex: 1;
    position: relative;
    z-index: 2;
    width: 100%;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg,
        var(--light) 0%,
        var(--primary-light) 25%,
        var(--secondary) 50%,
        var(--light) 75%,
        var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 4s ease-in-out infinite;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 15px rgba(139, 92, 246, 0.3);
    word-break: break-word;
    hyphens: auto;
}

.profile-bio {
    font-size: 1rem;
    color: var(--gray-light);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    opacity: 0.9;
    font-weight: var(--font-weight-medium);
    position: relative;
    padding: 0 0.5rem;
    word-break: break-word;
}

/* ===== PREMIUM CONTACT STYLES ===== */
.profile-contact {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Стили для Telegram контактов */
.contact-telegram {
    color: var(--telegram);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: var(--telegram-bg);
    border: 1px solid var(--telegram-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    max-width: 100%;
    word-break: break-all;
    text-align: center;
    justify-content: center;
}

.contact-telegram i {
    color: var(--telegram);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.contact-telegram span {
    font-weight: var(--font-weight-medium);
}

.contact-telegram::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent);
    transition: left 0.6s ease;
}

.contact-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 136, 204, 0.25),
        0 0 0 1px rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.4);
    color: var(--telegram-light);
    text-decoration: none;
}

.contact-telegram:hover i {
    transform: scale(1.1);
    color: var(--telegram-light);
}

.contact-telegram:hover::before {
    left: 100%;
}

/* Стили для email */
.contact-email {
    color: var(--primary-light);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    max-width: 100%;
    word-break: break-all;
    text-align: center;
    justify-content: center;
}

.contact-email i {
    color: #ec4899;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    color: var(--primary);
    text-decoration: none;
}

.contact-email:hover i {
    transform: scale(1.1);
}

/* Стили для обычного текста контактов */
.contact-text {
    color: var(--gray-light);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: default;
    max-width: 100%;
    word-break: break-all;
    text-align: center;
    justify-content: center;
}

.contact-text i {
    color: var(--gray);
    font-size: 1.1rem;
}

/* ===== PREMIUM LINKS SECTION ===== */
.profile-links-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2rem;
    animation: slideInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.links-title {
    text-align: center;
    color: var(--light);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    flex-wrap: wrap;
    padding: 0 0.5rem;
}

.links-title::before,
.links-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary) 20%,
        var(--secondary) 50%,
        var(--primary) 80%,
        transparent);
    border-radius: var(--radius-full);
    min-width: 20px;
}

.links-title i {
    color: var(--primary);
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 3s ease infinite;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.25rem;
}

/* ===== PREMIUM LINK ITEMS ===== */
.profile-link-item {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

/* Анимированная верхняя полоса */
.profile-link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--primary) 0%,
        var(--secondary) 50%,
        var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.profile-link-item:hover {
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-md),
        0 0 0 1px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.profile-link-item:hover::before {
    transform: scaleX(1);
}

/* ===== PREMIUM LINK ICON ===== */
.link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.profile-link-item:hover .link-icon {
    transform: scale(1.08);
    box-shadow:
        0 6px 15px rgba(139, 92, 246, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.2);
}

/* ===== PREMIUM LINK CONTENT ===== */
.link-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.link-title {
    font-weight: var(--font-weight-bold);
    color: var(--light);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    word-break: break-word;
    hyphens: auto;
}

.link-url {
    color: var(--primary-light);
    font-size: 0.85rem;
    word-break: break-all;
    font-weight: var(--font-weight-medium);
    opacity: 0.9;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    background: rgba(139, 92, 246, 0.05);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ===== LOADING STATES ===== */
.loading-links {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray);
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    backdrop-filter: blur(10px);
}

.loading-links i {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

.loading-links p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--gray-light);
}

/* ===== PREMIUM MODAL STYLES ===== */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.premium-modal {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    max-width: 95%;
    width: 100%;
    text-align: center;
    box-shadow:
        var(--shadow-2xl),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Анимированный контур модального окна */
.premium-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg,
        var(--primary) 0%,
        var(--secondary) 50%,
        var(--accent) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderFlow 3s linear infinite;
    opacity: 0.6;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    box-shadow:
        0 8px 20px rgba(139, 92, 246, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.2);
}

/* Специальный стиль для модального окна Telegram */
.modal-icon.telegram {
    background: linear-gradient(135deg, var(--telegram), var(--telegram-light)) !important;
    box-shadow:
        0 8px 20px rgba(0, 136, 204, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.2);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Специальная кнопка для Telegram */
.modal-icon.telegram ~ .modal-buttons .modal-btn-primary {
    background: linear-gradient(135deg, var(--telegram), var(--telegram-light));
}

.modal-icon.telegram ~ .modal-buttons .modal-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray-light);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    width: 100%;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--light);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 1.25rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--light);
}

/* ===== PREMIUM ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Анимация градиента контура */
@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes textShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-3px) scale(1.03);
    }
    60% {
        transform: translateY(-2px) scale(1.01);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* ===== MOBILE-FIRST RESPONSIVE DESIGN ===== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .profile-content {
        padding: 1.5rem;
    }

    .profile-header {
        padding: 2rem;
        gap: 2rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-bio {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* Контакты на мобильных */
    .contact-telegram,
    .contact-email,
    .contact-text {
        font-size: 1rem;
        padding: 0.8rem 1.3rem;
    }
    
    .contact-telegram i,
    .contact-email i,
    .contact-text i {
        font-size: 1.2rem;
    }

    .links-title {
        font-size: 1.75rem;
        gap: 1rem;
    }

    .links-title::before,
    .links-title::after {
        min-width: 40px;
        height: 1.5px;
    }

    .links-container {
        gap: 1rem;
    }

    .profile-link-item {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .link-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .link-title {
        font-size: 1.15rem;
    }

    .link-url {
        font-size: 0.9rem;
    }

    .premium-modal {
        padding: 2rem;
        max-width: 400px;
    }

    .modal-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .modal-btn-primary,
    .modal-btn-secondary {
        width: auto;
        flex: 1;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .profile-content {
        padding: 2rem;
        max-width: 1200px;
    }

    .profile-header {
        flex-direction: row;
        text-align: left;
        padding: 2.5rem;
        gap: 2.5rem;
        max-width: 800px;
        margin: 0 auto 3rem;
    }

    .profile-avatar {
        width: 140px;
        height: 140px;
        font-size: 3rem;
    }

    .profile-name {
        font-size: 2.25rem;
    }

    .profile-bio {
        padding-left: 1.5rem;
        padding-right: 0;
        text-align: left;
        font-size: 1.15rem;
    }

    /* Контакты на планшетах */
    .profile-contact {
        justify-content: flex-start;
    }
    
    .contact-telegram,
    .contact-email,
    .contact-text {
        margin: 0;
    }

    .profile-links-section {
        max-width: 800px;
        margin-bottom: 3rem;
    }

    .links-container {
        gap: 1.25rem;
    }

    .profile-link-item {
        flex-direction: row;
        text-align: left;
        padding: 1.75rem 2rem;
        gap: 1.5rem;
    }

    .profile-link-item::before {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 4px;
        height: 100%;
        transform: scaleY(0);
        transform-origin: top;
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    }

    .link-content {
        text-align: left;
    }

    .links-title::before,
    .links-title::after {
        min-width: 60px;
    }

    .premium-modal {
        max-width: 450px;
        padding: 2.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .profile-content {
        padding: 3rem 2rem;
    }

    .profile-header {
        padding: 3rem;
        max-width: 900px;
    }

    .profile-avatar {
        width: 160px;
        height: 160px;
    }

    .profile-name {
        font-size: 2.5rem;
    }

    .profile-bio {
        font-size: 1.2rem;
    }

    /* Контакты на десктопе */
    .contact-telegram,
    .contact-email,
    .contact-text {
        font-size: 1.05rem;
        padding: 0.9rem 1.5rem;
    }

    .profile-links-section {
        max-width: 900px;
    }

    .links-title {
        font-size: 2rem;
    }

    .premium-modal {
        max-width: 500px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .profile-content {
        padding: 4rem 2rem;
    }

    .profile-header {
        max-width: 1000px;
    }

    .profile-links-section {
        max-width: 1000px;
    }
}

/* ===== PREMIUM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    border: 1px solid var(--darker);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--secondary-dark));
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS INDICATORS ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.profile-link-item:focus-visible,
.contact-telegram:focus-visible,
.contact-email:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

.contact-telegram:focus-visible {
    outline-color: var(--telegram);
}

/* ===== SELECTION STYLES ===== */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--light);
    text-shadow: none;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--light);
    text-shadow: none;
}

/* Очень маленькие экраны (менее 360px) */
@media (max-width: 359px) {
    .profile-content {
        padding: 0.5rem;
    }

    .profile-header {
        padding: 1rem;
        gap: 1rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-bio {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }

    /* Контакты на очень маленьких экранах */
    .contact-telegram,
    .contact-email,
    .contact-text {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        gap: 0.4rem;
    }
    
    .contact-telegram i,
    .contact-email i,
    .contact-text i {
        font-size: 0.9rem;
    }

    .links-title {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .links-title::before,
    .links-title::after {
        min-width: 15px;
    }

    .profile-link-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-url {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .premium-modal {
        padding: 1rem;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .modal-btn-primary,
    .modal-btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Портретная ориентация */
@media (max-height: 600px) and (orientation: portrait) {
    .profile-content {
        padding: 1rem 0.5rem;
        justify-content: flex-start;
    }

    .profile-header {
        margin: 1rem auto;
    }

    .profile-links-section {
        margin: 1rem auto 2rem;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .profile-content {
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .profile-header {
        padding: 1rem;
        margin: 0.5rem auto;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }

    .profile-name {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .profile-bio {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* Контакты в ландшафтной ориентации */
    .contact-telegram,
    .contact-email,
    .contact-text {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .premium-modal-overlay {
        padding: 0.5rem;
    }

    .premium-modal {
        padding: 1rem;
    }
}
