.profile-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-header {
    margin-bottom: 30px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.profile-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.profile-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-label {
    color: #888;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #e74c3c;
    color: #fff;
}

.btn-secondary {
    background: #eee;
    color: #333;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.subscription-list,
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-list li,
.post-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subscription-list a,
.post-list a {
    text-decoration: none;
    color: #2c3e50;
}

.subscription-list a:hover,
.post-list a:hover {
    color: #e74c3c;
}

.btn-unsubscribe {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #e74c3c;
}

.empty-message {
    color: #999;
    font-size: 0.95rem;
}

.post-meta {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}

.profile-mascot {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    font-size: 1.1rem;
    color: #666;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

/* Тёмная тема */
body.dark-theme .profile-card {
    background: #16213e;
}

body.dark-theme .profile-info .info-row {
    border-bottom-color: #2c3e50;
}

body.dark-theme .info-label {
    color: #888;
}

body.dark-theme .profile-card h3 {
    border-bottom-color: #2c3e50;
}

body.dark-theme .subscription-list li,
body.dark-theme .post-list li {
    border-bottom-color: #2c3e50;
}

body.dark-theme .subscription-list a,
body.dark-theme .post-list a {
    color: #ddd;
}

body.dark-theme .profile-mascot {
    background: #1a1a2e;
    color: #aaa;
}

body.dark-theme .btn-secondary {
    background: #2c3e50;
    color: #fff;
}

/* ===== ФОРМА СМЕНЫ ПАРOЛЯ ===== */
.password-form .form-group {
    margin-bottom: 18px;
}

.password-form label {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.password-form input {
    width: 90%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
}

.password-form input:focus {
    outline: none;
    border-color: #e74c3c;
}

.password-form small {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

/* Тёмная тема */
body.dark-theme .password-form input {
    background: #1a1a2e;
    border-color: #2c3e50;
    color: #fff;
}

body.dark-theme .password-form input:focus {
    border-color: #e74c3c;
}

body.dark-theme .alert-success {
    background: #1a3a1a;
    color: #90ee90;
    border-color: #2e7d32;
}

body.dark-theme .alert-error {
    background: #3a1a1a;
    color: #ff9999;
    border-color: #c62828;
}
