.avatar,
.post-avatar,
.comment-avatar,
.like-avatar {
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
}

.post-avatar {
    width: 36px;
    height: 36px;
    font-size: 1em;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.share-box button,
.btn {
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.share-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.95em;
}

.share-box button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
}

.share-box.share-disabled {
    opacity: 0.75;
}

.share-box.share-disabled textarea,
.share-box.share-disabled button {
    cursor: not-allowed;
    opacity: 0.6;
}

.share-disabled-note {
    margin-top: 12px;
    font-size: 0.85em;
    color: #999;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
}

.btn-secondary {
    padding: 12px 24px;
    background: #222;
    color: #fff;
    border: 1px solid #333;
}

.btn.danger,
.btn-secondary.danger {
    background: #2a1a1a;
    border-color: #441a1a;
    color: #ff7b7b;
}

.btn.danger:hover,
.btn-secondary.danger:hover {
    transform: translateY(-2px);
    background: #3a1f1f;
}

.notif-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1b1b1b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.2em;
}

.notif-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notif-modal-content {
    max-width: 640px;
    width: 92%;
    padding: 0;
    overflow: hidden;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #1f2937;
    
}

.notif-header h3 {
    margin: 0 0 4px;
    font-size: 1.1em;
    color: #f8fafc;
}

.notif-subtitle {
    margin: 0;
    font-size: 0.85em;
    color: #94a3b8;
}

.notif-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-actions .btn {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85em;
}

.notif-list {
    margin: 10px 0px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #334155;
    border: 1px solid #1f2633;
    transition: border-color 0.2s ease, background 0.2s ease;
}


.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 0.95em;
    color: #e5e7eb;
    line-height: 1.5;
}

.notif-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.notif-type {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.notif-type-comment {
    background: rgba(20, 184, 166, 0.18);
    color: #5eead4;
    border-color: rgba(20, 184, 166, 0.35);
}

.notif-type-follow {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

.notif-type-like {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
}

.notif-time {
    font-size: 0.8em;
    color: #94a3b8;
}

.notif-delete {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.notif-delete:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 13px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.toast {
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    animation: fadeIn 0.4s ease;
}

.toast.success {
    background: #1f8b4c;
}

.toast.error {
    background: #b83229;
}

.auth-modal-content {
    max-width: 440px;
    width: 92%;
    padding: 24px;
    overflow: visible;
    max-height: none;
    background: #0b0d12;
    border: 1px solid #1f2430;
}

#authModal .modal-header {
    margin-bottom: 16px;
}

#authForms {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-panel {
    border-radius: 16px;
    padding: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #f8fafc;
}

.auth-subtitle {
    color: #9aa4b2;
    font-size: 0.9em;
}

.auth-note {
    margin: 0;
    font-size: 0.85em;
    color: #cbd5f5;
    background: #0b0d12;
    border: 1px dashed #2a2f3b;
    padding: 10px 12px;
    border-radius: 10px;
}

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-submit {
    width: 100%;
    border-radius: 12px;
    padding: 12px 18px;
}

.auth-switch {
    text-align: center;
    margin-top: 4px;
    color: #9aa4b2;
    font-size: 0.9em;
}

.auth-switch button {
    background: none;
    border: none;
    color: #7aa2ff;
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
}

.auth-link {
    background: none;
    border: none;
    padding: 0;
    margin-top: -4px;
    color: #93c5fd;
    cursor: pointer;
    font-size: 0.85em;
    text-align: left;
}

.auth-link:hover {
    text-decoration: underline;
}

.reset-panel {
    max-width: 420px;
    margin: 80px auto;
}

.reset-panel .auth-switch a {
    color: #7aa2ff;
    text-decoration: none;
}

.reset-panel .auth-switch a:hover {
    text-decoration: underline;
}

.likes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.like-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #0f1117;
    border: 1px solid #1f2430;
    transition: transform 0.2s, border-color 0.2s;
}

.like-item:hover {
    transform: translateY(-1px);
    border-color: #2b3342;
}

.like-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(92, 141, 255, 0.3), rgba(57, 208, 180, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-size: 1.25em;
    flex-shrink: 0;
}

.like-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.like-name {
    font-weight: 600;
    color: #f8fafc;
}

.like-username {
    font-size: 0.85em;
    color: #94a3b8;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 5px 0px;
}

.form-group label {
    font-size: 0.9em;
    color: #999;
}

.form-input,
.form-textarea {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.95em;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #667eea;
}

.post-actions-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-preview {
    background: #0b0b0b;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 16px;
}

.post-preview-user {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.post-preview-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    font-size: 1.4em;
    overflow: hidden;
}

.post-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-preview-name {
    font-weight: bold;
}

.post-preview-time {
    font-size: 0.85em;
    color: #777;
}

.post-preview-text {
    font-size: 0.95em;
    color: #ddd;
    line-height: 1.6;
    white-space: pre-wrap;
}

.post-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
