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

:root {
    --tg-theme-bg-color: var(--tg-theme-bg-color, #ffffff);
    --tg-theme-text-color: var(--tg-theme-text-color, #000000);
    --tg-theme-button-color: var(--tg-theme-button-color, #3390ec);
    --tg-theme-button-text-color: var(--tg-theme-button-text-color, #ffffff);
    --tg-theme-hint-color: var(--tg-theme-hint-color, #999999);
    --tg-theme-link-color: var(--tg-theme-link-color, #3390ec);
    --tg-theme-secondary-bg-color: var(--tg-theme-secondary-bg-color, #f1f1f1);
}

html, body {
    min-height: var(--app-height, 100vh);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: var(--app-height, 100vh);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.avatar {
    margin-bottom: 15px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-size: 48px;
    color: white;
    transition: transform 0.3s ease;
    overflow: visible;
    position: relative;
}

.avatar-circle:hover {
    transform: scale(1.05);
}

.vip-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    z-index: 10;
    animation: vipPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes vipPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--tg-theme-text-color);
}

.phone {
    font-size: 16px;
    color: var(--tg-theme-hint-color);
    font-weight: 400;
}

.profile-section {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.profile-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--tg-theme-text-color);
}

.section-content {
    font-size: 16px;
    color: var(--tg-theme-text-color);
    line-height: 1.6;
    word-wrap: break-word;
}

.lunda-link {
    color: var(--tg-theme-link-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(51, 144, 236, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lunda-link:hover {
    background: rgba(51, 144, 236, 0.2);
    transform: translateX(3px);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.action-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:active::before {
    width: 300px;
    height: 300px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    border: 2px solid var(--tg-theme-hint-color);
}

.action-btn.secondary:hover {
    background: var(--tg-theme-hint-color);
    color: white;
    transform: translateY(-2px);
}

.action-btn.manager {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    margin-top: 10px;
}

.action-btn.manager:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 20px;
}

/* Анимация загрузки */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Раскрывающаяся секция */
.collapsible-header {
    user-select: none;
}

.collapse-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.about-me-item {
    font-size: 15px;
    line-height: 1.6;
    color: var(--tg-theme-text-color);
}

.about-me-item strong {
    color: var(--tg-theme-text-color);
    font-weight: 600;
}

.about-section-row {
    margin-bottom: 12px;
}

.about-section-row:last-child {
    margin-bottom: 0;
}

.about-section-row strong {
    display: block;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin-bottom: 4px;
}

.about-section-row div {
    color: var(--tg-theme-text-color);
    white-space: pre-line;
}

.multiline-text {
    white-space: pre-line;
}

/* Адаптивность */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .name {
        font-size: 22px;
    }
    
    .profile-section {
        padding: 16px;
    }
}

