.profile-main {
    min-height: calc(100vh - 80px);
}

.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-sidebar {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    height: fit-content;
}

.profile-avatar-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-avatar:hover img {
    transform: scale(1.05);
}

.avatar-upload-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.avatar-upload-text {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
}

.profile-uid {
    text-align: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.uid-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.uid-value {
    color: #9929ea;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: monospace;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.user-email {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.user-bio {
    color: var(--text-secondary);
}

.profile-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.profile-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.settings-form {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.settings-form h3 {
    margin-bottom: 1.5rem;
    color: #00d4ff;
}

.settings-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.settings-form .input-group input,
.settings-form .input-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.settings-form .input-group input:focus,
.settings-form .input-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}

.subscription-section {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.subscription-section h3 {
    margin-bottom: 1.5rem;
    color: #00d4ff;
}

.current-subscription {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.plan-card.popular {
    border-color: #00d4ff;
}

.plan-card.premium {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 212, 255, 0.1));
}

.popular-badge, .premium-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #00d4ff;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.plan-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.plan-duration {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.plan-card button {
    width: 100%;
}


/* Красивая секция активации ключа */
.key-activation-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 153, 255, 0.05));
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.key-activation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.key-activation-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.key-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.key-activation-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.key-activation-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.key-activation-form {
    position: relative;
    z-index: 1;
}

.key-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.key-input {
    width: 100%;
    padding: 20px 25px;
    background: rgba(10, 14, 39, 0.8);
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.key-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    background: rgba(10, 14, 39, 1);
}

.key-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.key-input-decoration {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 3px;
}

.key-input:focus + .key-input-decoration {
    width: 100%;
}

.btn-activate {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-activate::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;
}

.btn-activate:hover::before {
    width: 300px;
    height: 300px;
}

.btn-activate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.btn-activate:active {
    transform: translateY(-1px);
}

.btn-activate .btn-icon {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.key-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.key-divider::before,
.key-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
}

.key-divider::before {
    left: 0;
}

.key-divider::after {
    right: 0;
}

.key-divider span {
    background: var(--card-bg);
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-buy-subscription {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-buy-subscription:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-buy-subscription .btn-icon {
    font-size: 1.3rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .key-activation-section {
        padding: 25px;
    }

    .key-icon {
        font-size: 2.5rem;
    }

    .key-activation-header h3 {
        font-size: 1.5rem;
    }

    .key-input {
        font-size: 1.1rem;
        padding: 15px 20px;
        letter-spacing: 2px;
    }

    .btn-activate,
    .btn-buy-subscription {
        font-size: 1rem;
        padding: 15px;
    }
}


/* Стили для кнопок в формах настроек */
.settings-form button[type="submit"],
.settings-form .btn-primary,
.settings-form .btn-secondary {
    margin-top: 30px;
    padding: 15px 30px;
    min-width: 200px;
}

.settings-form .input-group:last-of-type {
    margin-bottom: 30px;
}

/* Центрирование кнопок */
.settings-form button {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Если несколько кнопок в ряд */
.settings-form .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.settings-form .button-group button {
    margin: 0;
}


/* Стили для постов в профиле */
.posts-grid {
    display: grid;
    gap: 20px;
}

.post-card {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    position: relative;
}

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.post-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.post-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.post-delete {
    margin-left: auto;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.post-delete:hover {
    background: #ff4444;
    color: white;
    transform: scale(1.1);
}

.post-content {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.post-image,
.post-video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.post-file-link {
    display: inline-block;
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.post-file-link:hover {
    background: var(--primary-color);
    color: white;
}

.post-actions {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-action {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.post-action:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-color);
    border-radius: 15px;
    border: 2px dashed rgba(0, 212, 255, 0.3);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .post-card {
        padding: 15px;
    }

    .post-avatar {
        width: 40px;
        height: 40px;
    }

    .post-actions {
        flex-wrap: wrap;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-icon {
        font-size: 3rem;
    }
}


/* Стили для вкладки админ панели */
.admin-tab {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 111, 0.2)) !important;
    border: 2px solid rgba(255, 107, 107, 0.5) !important;
    color: #ff6b6b !important;
}

.admin-tab.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f) !important;
    color: white !important;
}

.admin-quick-panel {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.admin-quick-panel h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-action-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(238, 90, 111, 0.1));
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-action-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b6b;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(238, 90, 111, 0.2));
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.admin-action-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.admin-action-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-full-panel {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 107, 107, 0.2);
}

.btn-admin-full {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-admin-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

.btn-admin-full span {
    font-size: 1.3rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-quick-panel {
        padding: 25px;
    }

    .admin-actions-grid {
        grid-template-columns: 1fr;
    }

    .admin-quick-panel h2 {
        font-size: 1.5rem;
    }
}
