/* Profile page - extracted from profile.php (variables :root stay inline) */
/* Toast Notification System */
    .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        gap: 10px;
        pointer-events: none;
    }
    
    .toast {
        background: #1e293b;
        color: white;
        padding: 16px 24px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 300px;
        max-width: 400px;
        transform: translateX(120%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        pointer-events: auto;
        border-left: 4px solid #06b6d4;
    }
    
    .toast.show {
        transform: translateX(0);
        opacity: 1;
    }
    
    .toast.hiding {
        transform: translateX(120%);
        opacity: 0;
    }
    
    .toast.success {
        border-left-color: #10b981;
    }
    
    .toast.success .toast-icon {
        background: #10b981;
    }
    
    .toast.error {
        border-left-color: #ef4444;
    }
    
    .toast.error .toast-icon {
        background: #ef4444;
    }
    
    .toast.info {
        border-left-color: #06b6d4;
    }
    
    .toast.info .toast-icon {
        background: #06b6d4;
    }
    
    .toast.warning {
        border-left-color: #f59e0b;
    }
    
    .toast.warning .toast-icon {
        background: #f59e0b;
    }
    
    .toast-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .toast-content {
        flex: 1;
    }
    
    .toast-title {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .toast-message {
        font-size: 13px;
        opacity: 0.85;
    }
    
    .toast-close {
        background: none;
        border: none;
        color: white;
        opacity: 0.5;
        cursor: pointer;
        font-size: 18px;
        padding: 4px;
        transition: opacity 0.2s;
    }
    
    .toast-close:hover {
        opacity: 1;
    }
    
    .toast-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        background: rgba(255,255,255,0.3);
        border-radius: 0 0 0 12px;
        animation: toastProgress 3s linear forwards;
    }
    
    @keyframes toastProgress {
        from { width: 100%; }
        to { width: 0%; }
    }
    
    /* Avatar upload loading state */
    .avatar-uploading {
        position: relative;
    }
    
    .avatar-uploading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .avatar-uploading::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 30px;
        margin: -15px 0 0 -15px;
        border: 3px solid rgba(255,255,255,0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        z-index: 1;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    @media (max-width: 480px) {
        .toast-container {
            top: 10px;
            right: 10px;
            left: 10px;
        }
        
        .toast {
            min-width: auto;
            max-width: none;
        }
    }
    
    /* Profile page background with dynamic color overlay */
    body {
        background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-light) 100%);
        <?php if (!empty($user['profile_background'])): ?>
        background-image: var(--custom-background);
        <?php else: ?>
        background-image: url('/assets/images/mountain-background.jpg');
        <?php endif; ?>
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        position: relative;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        <?php if (!empty($user['profile_background'])): ?>
        background-image: var(--custom-background);
        <?php else: ?>
        background-image: url('/assets/images/mountain-background.jpg');
        <?php endif; ?>
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        <?php if (!empty($user['profile_background'])): ?>
        filter: blur(3px);
        -webkit-filter: blur(3px);
        <?php else: ?>
        filter: blur(10px);
        -webkit-filter: blur(10px);
        <?php endif; ?>
        z-index: -2;
        opacity: 0.9;
    }
    
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        <?php if (!empty($user['profile_background'])): ?>
        background: rgba(0, 0, 0, 0.3);
        <?php else: ?>
        background: <?php echo $colors['primary']; ?>66;
        <?php endif; ?>
        z-index: -1;
    }
    
    .container {
        position: relative;
        z-index: 1;
        overflow: visible;
    }
    
    .profile-header {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 16px 20px 16px 22px;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(229, 231, 235, 0.5);
        overflow: visible;
        position: relative;
        z-index: 100;
        box-sizing: border-box;
    }
    
    .profile-top {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 14px;
        overflow: visible;
        flex-wrap: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    .profile-left {
        display: flex;
        align-items: center;
        gap: 20px;
        flex: 0 0 auto;
    }
    
    .profile-avatar-wrapper {
        position: relative;
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: linear-gradient(135deg, #64748b, #475569);
        position: relative;
        overflow: hidden;
        border: 2px solid #e5e7eb;
        cursor: pointer;
    }
    
    .profile-avatar.editable:hover {
        opacity: 0.9;
    }
    
    .profile-avatar img,
    .profile-avatar #avatarImage {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .profile-avatar-initial {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 42px;
        font-weight: 700;
        color: white;
        text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        background: linear-gradient(135deg, var(--profile-primary), var(--profile-light));
        border-radius: 50%;
        text-transform: uppercase;
    }
    
    .profile-avatar-wrapper input[type="file"],
    .profile-avatar input[type="file"] {
        display: none !important;
    }
    
    .profile-avatar-upload-icon {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 28px;
        height: 28px;
        background: var(--profile-light);
        border: 3px solid white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: white;
        font-size: 15px;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        padding: 0;
        z-index: 30;
        transition: background 0.2s, box-shadow 0.2s;
        pointer-events: auto;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .profile-avatar-upload-icon:hover {
        background: var(--profile-primary);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }
    
    .profile-avatar-upload-icon:active {
        transform: scale(0.95);
        background: var(--profile-primary);
    }
    
    .profile-avatar.editable .profile-avatar-upload-icon {
        display: flex;
    }
    
    .profile-plus-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 8px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        padding: 6px 0;
        min-width: 180px;
        z-index: 10002;
        display: none;
        border: 1px solid #e5e7eb;
    }
    .profile-plus-menu.open {
        display: block;
    }
    .profile-plus-menu-item {
        display: block;
        width: 100%;
        padding: 10px 16px;
        border: none;
        background: none;
        text-align: left;
        font-size: 14px;
        color: #1e293b;
        cursor: pointer;
        transition: background 0.15s;
    }
    .profile-plus-menu-item:hover {
        background: #f1f5f9;
    }
    .profile-plus-menu-item:first-child {
        border-radius: 12px 12px 0 0;
    }
    .profile-plus-menu-item:last-child {
        border-radius: 0 0 12px 12px;
    }
    
    .profile-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1;
        min-width: 0;
        max-width: 280px;
    }
    
    .profile-name {
        font-size: 18px;
        font-weight: 700;
        margin: 0;
        color: #1e293b;
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        min-width: 0;
        word-break: break-word;
    }
    
    .verified-badge {
        width: 20px;
        height: 20px;
        object-fit: contain;
        flex-shrink: 0;
        vertical-align: middle;
        margin-left: 4px;
    }
    
    .profile-avatar-wrapper { position: relative; }
    
    .avatar-level-badge {
        position: absolute;
        top: -5px;
        left: -5px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4), 0 0 12px rgba(102, 126, 234, 0.2);
        z-index: 10;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        border: 1.5px solid rgba(255, 255, 255, 0.3);
    }
    .avatar-level-badge:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5), 0 0 16px rgba(102, 126, 234, 0.3);
    }
    .avatar-level-badge.no-click {
        cursor: default;
    }
    .avatar-level-badge.no-click:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4), 0 0 12px rgba(102, 126, 234, 0.2);
    }
    .avatar-level-badge .level-diamond {
        font-size: 14px;
        line-height: 1;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
    }
    .avatar-level-badge .level-diamond img {
        width: 12px;
        height: 12px;
        display: block;
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
    }
    .avatar-level-num {
        color: #fff;
        font-weight: 700;
        font-size: 14px;
        line-height: 1;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }
    
    @media (max-width: 768px) {
        .avatar-level-badge {
            padding: 3px 6px;
            gap: 3px;
        }
        .avatar-level-badge .level-diamond {
            font-size: 12px;
        }
        .avatar-level-num {
            font-size: 12px;
        }
    }
    /* Desktop: iconița level prea mare pe web – redimensionată ca pe telefon */
    @media (min-width: 769px) {
        .avatar-level-badge {
            padding: 3px 6px;
            gap: 3px;
        }
        .avatar-level-badge .level-diamond,
        .avatar-level-badge .level-diamond img {
            width: 10px;
            height: 10px;
            font-size: 10px;
        }
        .avatar-level-num {
            font-size: 11px;
        }
    }
    
    .level-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 10000;
        align-items: center;
        justify-content: center;
    }
    .level-modal.active { display: flex; }
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 10000;
        align-items: center;
        justify-content: center;
    }
    .level-modal.active { display: flex; }
    .level-modal-content {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 16px;
        padding: 24px;
        max-width: 400px;
        width: 90%;
        position: relative;
        color: #fff;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    .level-modal-close {
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: #fff;
        font-size: 24px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        line-height: 1;
        transition: background 0.2s;
    }
    .level-modal-close:hover { background: rgba(255, 255, 255, 0.3); }
    .level-modal-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 20px;
    }
    .level-modal-badge {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.15);
    }
    .level-modal-num { color: #fff; font-weight: 700; font-size: 22px; }
    .level-modal-title-wrap { flex: 1; }
    .level-modal-title { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
    .level-modal-subtitle { font-size: 13px; opacity: 0.8; }
    .level-modal-xp { margin-bottom: 16px; }
    .level-modal-xp-numbers {
        display: flex;
        align-items: baseline;
        gap: 6px;
        margin-bottom: 10px;
    }
    .level-modal-xp-current { font-size: 28px; font-weight: 700; }
    .level-modal-xp-separator { font-size: 20px; opacity: 0.6; }
    .level-modal-xp-total { font-size: 20px; font-weight: 600; opacity: 0.8; }
    .level-modal-xp-label { font-size: 14px; opacity: 0.7; margin-left: 4px; }
    .level-modal-progress-wrap {
        height: 8px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        overflow: hidden;
        position: relative;
    }
    .level-modal-progress-fill {
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 4px;
        transition: width 0.4s ease;
    }
    .level-modal-remaining {
        font-size: 14px;
        opacity: 0.9;
        margin-bottom: 12px;
    }
    .level-modal-sources {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 13px;
        opacity: 0.9;
    }
    .level-modal-source-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }
    .level-modal-source-row:last-child { margin-bottom: 0; }
    .level-modal-source-icon { font-size: 16px; }
    .level-modal-source-text { flex: 1; }
    .level-modal-source-xp {
        font-weight: 600;
        color: var(--profile-primary, #0891b2);
        font-size: 12px;
    }
    
    .feed-level-badge {
        color: #64748b;
        font-size: 14px;
        font-weight: 400;
    }
    
    .profile-add-story-btn {
        margin-top: 6px;
        padding: 5px 12px;
        background: transparent;
        color: var(--profile-primary, #0891b2);
        border: 1px solid var(--profile-primary, #0891b2);
        border-radius: 14px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        align-self: flex-start;
    }
    .profile-add-story-btn:hover {
        background: rgba(8, 145, 178, 0.08);
        color: var(--profile-primary, #0891b2);
    }
    
    .profile-bio {
        color: #64748b;
        font-size: 13px;
        margin-top: 5px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
        line-height: 1.35;
    }

    .profile-bio {
        overflow: hidden;
        min-width: 0;
    }
    .profile-bio #bioText {
        display: inline;
        max-width: 100%;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .profile-bio a.mention {
        color: var(--profile-primary);
        text-decoration: none;
        font-weight: 700;
    }

    .profile-bio a.mention:hover {
        text-decoration: underline;
    }

    /* Card editare profil – design unitar pentru bio și display name */
    .profile-edit-card {
        position: relative;
        width: 100%;
        max-width: 440px;
        background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
        border: 1px solid rgba(148, 163, 184, 0.35);
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
        overflow: visible;
        margin-top: 8px;
    }

    .profile-edit-card-body {
        padding: 14px 16px;
    }

    .profile-edit-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px 14px;
        background: rgba(255, 255, 255, 0.6);
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 0 0 14px 14px;
    }

    .profile-edit-card-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .profile-edit-btn {
        padding: 8px 16px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.2s;
        border: none;
    }

    .profile-edit-btn-save {
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
        color: white;
        box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
    }

    .profile-edit-btn-save:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
    }

    .profile-edit-btn-save:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .profile-edit-btn-cancel {
        background: transparent;
        color: #64748b;
        border: 1px solid #e2e8f0;
    }

    .profile-edit-btn-cancel:hover {
        background: #f1f5f9;
        color: #475569;
        border-color: #cbd5e1;
    }

    .bio-editor-wrap {
        position: relative;
        width: 100%;
        max-width: 440px;
    }

    .bio-editor-wrap .profile-edit-card-body {
        padding-bottom: 4px;
    }

    .bio-word-counter {
        font-size: 12px;
        color: #64748b;
        font-weight: 500;
    }

    .bio-word-counter.over {
        color: #ef4444;
        font-weight: 700;
    }

    .mention-suggest-box {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 6px);
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(2,6,23,0.10);
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 100001;
        display: none;
        max-height: 280px;
    }

    .mention-suggest-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        cursor: pointer;
        border-bottom: 1px solid #f1f5f9;
        min-width: 0;
        overflow: hidden;
    }

    .mention-suggest-item:last-child {
        border-bottom: 0;
    }

    .mention-suggest-item:hover {
        background: #f8fafc;
    }

    .mention-suggest-avatar {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        overflow: hidden;
        background: #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-weight: 800;
        color: #0f172a;
        font-size: 12px;
    }

    .mention-suggest-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mention-suggest-info {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .mention-suggest-name {
        font-weight: 800;
        color: #0f172a;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mention-suggest-username {
        color: #64748b;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .edit-btn {
        background: none;
        border: none;
        color: #3b82f6;
        cursor: pointer;
        font-size: 12px;
        padding: 2px 6px;
        opacity: 0.7;
        transition: opacity 0.2s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .edit-btn:hover {
        opacity: 1;
    }
    
    .edit-btn-icon {
        width: 14px;
        height: 14px;
        object-fit: contain;
        display: block;
    }
    
    .profile-bio-add {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: none;
        border: 1px dashed rgba(100, 116, 139, 0.5);
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 12px;
        color: #64748b;
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
    }
    
    .profile-bio-add:hover {
        color: #475569;
        border-color: #94a3b8;
        background: rgba(241, 245, 249, 0.8);
    }
    
    .profile-bio.has-bio .profile-bio-add {
        display: none;
    }
    
    .profile-bio:not(.has-bio) .edit-btn-bio {
        display: none;
    }
    
    .profile-bio .edit-btn-bio {
        flex-shrink: 0;
        margin-left: 4px;
    }
    
    /* Profile Details - Zodiac, Age, Location (pe o singură linie pe desktop) */
    .profile-details {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        flex-shrink: 0;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .profile-detail-item {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: var(--profile-primary);
        background: var(--profile-bg);
        padding: 5px 10px;
        border-radius: 16px;
        border: 1px solid <?php echo $colors['primary']; ?>33;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    .profile-detail-item:hover {
        background: <?php echo $colors['primary']; ?>22;
        border-color: <?php echo $colors['primary']; ?>66;
    }
    .profile-location-item {
        max-width: none;
        white-space: normal;
        word-break: break-word;
    }
    .profile-location-item .location-flag {
        width: 18px;
        height: 14px;
        object-fit: contain;
        flex-shrink: 0;
        order: -1;
        margin-right: 4px;
    }
    
    .profile-gender-item {
        padding: 5px 8px;
    }
    
    .gender-icon {
        width: 16px;
        height: 16px;
        object-fit: contain;
        display: block;
    }
    
    @media (max-width: 600px) {
        .profile-details {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: flex-start;
            align-items: center;
            gap: 6px;
        }
        
        .profile-detail-item {
            font-size: 11px;
            padding: 5px 10px;
            white-space: nowrap;
        }
        
        .profile-gender-item {
            padding: 5px 8px;
        }
        
        .gender-icon {
            width: 16px;
            height: 16px;
        }
    }
    
    .profile-edit-input {
        padding: 10px 14px;
        border: 1px solid rgba(148, 163, 184, 0.5);
        border-radius: 10px;
        font-size: 15px;
        font-family: inherit;
        width: 100%;
        max-width: 100%;
        background: #fff;
        color: #0f172a;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .profile-edit-input:focus {
        outline: none;
        border-color: var(--profile-primary, #3b82f6);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    .profile-edit-textarea {
        padding: 12px 14px;
        border: 1px solid rgba(148, 163, 184, 0.5);
        border-radius: 10px;
        font-size: 14px;
        line-height: 1.5;
        font-family: inherit;
        width: 100%;
        max-width: 100%;
        min-height: 88px;
        max-height: 220px;
        resize: vertical;
        overflow-y: auto;
        background: #fff;
        color: #0f172a;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .profile-edit-textarea:focus {
        outline: none;
        border-color: var(--profile-primary, #3b82f6);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    }

    .profile-display-name-edit-wrap .profile-edit-card-body {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .profile-display-name-edit-wrap .profile-edit-input {
        flex: 1;
        min-width: 120px;
    }

    .profile-edit-field-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 14px;
        font-weight: 700;
    }

    .profile-edit-field-icon.valid {
        color: #16a34a;
        background: rgba(22, 163, 74, 0.12);
    }

    .profile-edit-field-icon.invalid {
        color: #dc2626;
        background: rgba(220, 38, 38, 0.1);
    }

    .profile-display-name-cooldown {
        width: 100%;
        margin: 4px 0 0 0;
        font-size: 12px;
        color: #dc2626;
        line-height: 1.35;
        opacity: 0.95;
    }
    
    .profile-right-section {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        overflow: visible;
        flex: 0 0 auto;
        min-width: 180px;
        max-width: 100%;
        padding-right: 4px;
        box-sizing: border-box;
        margin-left: auto;
    }
    
    .profile-followers-line {
        text-align: right;
        padding: 8px 0 8px 16px;
        color: #64748b;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .profile-followers-line strong {
        color: var(--profile-primary);
        font-weight: 600;
    }
    
    .profile-followers-line .profile-followers-sep {
        margin: 0 8px;
        opacity: 0.6;
    }
    
    .profile-stats {
        display: flex;
        gap: 0;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        flex-wrap: nowrap;
        max-width: 100%;
        min-width: 0;
    }
    
    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 0 12px;
        position: relative;
        flex-shrink: 0;
    }
    
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 30px;
        background: #e5e7eb;
    }
    
    .stat-number {
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        color: #1e293b;
    }
    
    .stat-label {
        font-size: 11px;
        color: #64748b;
        line-height: 1;
        text-transform: lowercase;
        white-space: nowrap;
    }
    
    /* Gift stats with subtle icons */
    .stat-gifts .stat-label::before,
    .stat-gifts-sent .stat-label::before {
        content: '';
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-right: 3px;
        vertical-align: middle;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.7;
    }
    
    .stat-gifts .stat-label::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M20 12v10H4V12'/%3E%3Cpath d='M2 7h20v5H2z'/%3E%3Cpath d='M12 22V7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E");
    }
    
    .stat-gifts-sent .stat-label::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2l-7 20-4-9-9-4 20-7z'/%3E%3C/svg%3E");
    }
    
    .profile-actions {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        width: auto;
        position: relative;
        z-index: 9999;
        margin-top: 0;
        overflow: visible;
        margin-left: 12px;
        flex-shrink: 0;
    }

    .btn {
        background: var(--profile-light);
        color: white;
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .btn:hover {
        background: var(--profile-primary);
    }
    
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    .btn-unfollow {
        background: #94a3b8;
    }
    
    .btn-unfollow:hover {
        background: #64748b;
    }
    
    .gift-link-always {
        color: #ef4444;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: color 0.2s;
    }
    
    .gift-link-always::before {
        content: '';
        display: inline-block;
        width: 14px;
        height: 14px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5'%3E%3Cpath d='M20 12v10H4V12'/%3E%3Cpath d='M2 7h20v5H2z'/%3E%3Cpath d='M12 22V7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .gift-link-always:hover {
        color: #dc2626;
    }
    
    .btn-send-gift {
        background: #ef4444;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    
    .btn-send-gift::before {
        content: '';
        display: inline-block;
        width: 14px;
        height: 14px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M20 12v10H4V12'/%3E%3Cpath d='M2 7h20v5H2z'/%3E%3Cpath d='M12 22V7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .btn-send-gift:hover {
        background: #dc2626;
    }
    
    /* Three-dots Profile Menu */
    
    .profile-more-btn {
        background: white;
        border: 1px solid #e2e8f0;
        color: #475569;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        padding: 0;
    }
    
    .profile-more-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        color: #1e293b;
    }
    
    .profile-more-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .profile-dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 6px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
        border: 1px solid #e2e8f0;
        min-width: 150px;
        padding: 6px 0;
        z-index: 999999;
    }
    
    .profile-dropdown-menu.show {
        display: block;
    }
    
    .profile-more-menu {
        position: relative;
        z-index: 999999 !important;
    }
    
    .profile-menu-item {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 10px 14px;
        background: none;
        border: none;
        color: #475569;
        font-size: 13px;
        cursor: pointer;
        transition: background 0.2s;
        text-align: left;
    }
    
    .profile-menu-item:hover {
        background: #f8fafc;
    }
    
    .profile-menu-item svg {
        flex-shrink: 0;
        width: 15px;
        height: 15px;
    }
    
    .profile-menu-block {
        color: #dc2626;
    }
    
    .profile-menu-block:hover {
        background: #fef2f2;
    }
    
    .profile-menu-block.blocked {
        color: #16a34a;
    }
    
    .profile-menu-block.blocked:hover {
        background: #f0fdf4;
    }
    
    /* Gift Modal Styles */
    .gift-modal {
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none !important;
        justify-content: center;
        align-items: flex-start;
        padding-top: 5%;
    }

    .gift-modal.active {
        display: flex !important;
    }

    .gift-modal .modal-content {
        background-color: #fff;
        margin: 0 auto;
        padding: 0;
        border-radius: 10px;
        width: 90%;
        max-width: 400px;
        position: relative;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .gift-modal .modal-header {
        padding: 20px;
        border-bottom: 1px solid #e2e8f0;
        position: relative;
        flex-shrink: 0;
    }
    
    .gift-modal .modal-body {
        padding: 20px;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }
    
    .gift-modal .modal-footer {
        padding: 20px;
        border-top: 1px solid #e2e8f0;
        flex-shrink: 0;
    }
    
    .gift-modal .modal-header h2 {
        margin: 0;
        font-size: 24px;
        color: #1e293b;
    }
    
    .gift-modal .close,
    .gifts-list-modal .close {
        color: #64748b;
        font-size: 18px;
        font-weight: 400;
        cursor: pointer;
        position: absolute;
        top: 18px;
        right: 18px;
        line-height: 1;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 50%;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        z-index: 10;
        margin: 0;
    }
    
    .gift-modal .close:hover,
    .gifts-list-modal .close:hover {
        color: #1e293b;
        background: #e2e8f0;
        border-color: #cbd5e1;
        transform: scale(1.05);
    }
    
    .gift-modal .close:active,
    .gifts-list-modal .close:active {
        transform: scale(0.95);
    }
    
    .gift-modal .coin-balance {
        margin: 15px 0 0 0;
        font-size: 16px;
        font-weight: bold;
        color: #1e293b;
    }
    
    .gifts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        margin: 20px 0 0 0;
    }
    
    .gift-item {
        border: 2px solid #ddd;
        border-radius: 10px;
        padding: 15px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        background: white;
    }
    
    .gift-item:hover {
        border-color: #ff6b6b;
        transform: scale(1.05);
    }
    
    .gift-item.selected {
        border-color: #ff6b6b;
        background-color: #ffe0e0;
    }
    
    .gift-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .gift-name {
        font-size: 14px;
        color: #1e293b;
        font-weight: 500;
        margin-bottom: 5px;
    }
    
    .gift-price {
        color: #ff6b6b;
        font-weight: bold;
        margin-top: 5px;
        font-size: 12px;
    }
    
    .btn-confirm {
        background: #ff6b6b;
        color: white;
        padding: 12px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        width: 100%;
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        transition: background 0.2s;
    }
    
    .btn-confirm:hover {
        background: #ff5252;
    }
    
    .btn-confirm:disabled {
        background: #ccc;
        cursor: not-allowed;
    }
    
    /* Profile Gifts Display (Badge Style) */
    .profile-gifts-sidebar {
        position: fixed;
        top: 100px;
        right: 20px;
        z-index: 100;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        cursor: move;
        user-select: none;
    }
    
    .profile-gifts-sidebar.left {
        right: auto;
        left: 20px;
    }
    
    .profile-gifts-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    
    .profile-gifts-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
    }
    
    @media (max-width: 900px) {
        .profile-gifts-sidebar {
            right: 10px;
            top: 80px;
            padding: 8px;
        }
        .profile-gifts-sidebar.left {
            left: 10px;
            right: auto;
        }
    }
    
    .profile-gift-badge {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        background: white;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        position: relative;
        flex-shrink: 0;
    }
    
    .profile-gift-badge:hover {
        transform: scale(1.15);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .profile-gift-badge .gift-tooltip {
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 12px;
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: white;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 13px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s, visibility 0.3s;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 1000;
        line-height: 1.5;
    }
    
    .profile-gift-badge .gift-tooltip strong {
        display: block;
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .profile-gift-badge .gift-tooltip .sender-name {
        color: var(--profile-light);
        font-weight: 500;
    }
    
    .profile-gifts-sidebar.left .profile-gift-badge .gift-tooltip {
        right: auto;
        left: 100%;
        margin-right: 0;
        margin-left: 12px;
    }
    
    .profile-gift-badge:hover .gift-tooltip {
        opacity: 1;
        visibility: visible;
    }
    
    .profile-gift-badge .gift-tooltip::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: -8px;
        border: 8px solid transparent;
        border-left-color: #1e293b;
    }
    
    .profile-gifts-sidebar.left .profile-gift-badge .gift-tooltip::after {
        right: auto;
        left: -8px;
        border-left-color: transparent;
        border-right-color: #1e293b;
    }
    
    /* Gifts List Modal – design fin, minimalist */
    .gifts-list-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 10001;
        padding: 24px;
        box-sizing: border-box;
    }
    
    .gifts-list-modal.show {
        display: flex;
    }
    
    .gifts-list-content {
        background: #fff;
        border-radius: 20px;
        width: 100%;
        max-width: 420px;
        max-height: 82vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
    }
    
    .gifts-list-header {
        padding: 22px 20px 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .gifts-list-header h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #1e293b;
        letter-spacing: -0.01em;
    }
    
    .gifts-list-close,
    .gifts-list-modal .close {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 50%;
        background: transparent;
        color: #94a3b8;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s, color 0.2s;
    }
    
    .gifts-list-close:hover,
    .gifts-list-modal .close:hover {
        background: #f1f5f9;
        color: #475569;
    }
    
    .gifts-list-body {
        padding: 16px 20px 24px;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }
    
    .gifts-list-body::-webkit-scrollbar {
        width: 5px;
    }
    
    .gifts-list-body::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .gifts-list-body::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 3px;
    }
    
    .gift-list-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        margin-bottom: 6px;
        border-radius: 14px;
        background: #fafafa;
        border: none;
        transition: background 0.2s ease;
    }
    
    .gift-list-item:hover {
        background: #f4f4f5;
    }
    
    .gift-list-item:last-child {
        margin-bottom: 0;
    }
    
    .gift-list-icon-wrap {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 12px;
        background: linear-gradient(145deg, #f5f3ff 0%, #fdf2f8 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gift-list-icon {
        font-size: 22px;
        line-height: 1;
    }
    
    .gift-list-info {
        flex: 1;
        min-width: 0;
    }
    
    .gift-list-name {
        font-weight: 600;
        font-size: 14px;
        color: #1e293b;
        margin-bottom: 3px;
    }
    
    .gift-list-sender {
        font-size: 13px;
        color: #64748b;
        line-height: 1.35;
    }
    
    .gift-list-sender-link {
        color: #0d9488;
        text-decoration: none;
        font-weight: 500;
    }
    
    .gift-list-sender-link:hover {
        text-decoration: underline;
    }
    
    .gift-list-sender-anon {
        color: #94a3b8;
        font-style: italic;
    }
    
    .gift-list-date {
        font-size: 11px;
        color: #94a3b8;
        margin-top: 1px;
    }
    
    @media (max-width: 768px) {
        .profile-gifts-sidebar {
            display: none;
        }
    }
    
    .ask-box {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 24px;
        margin-bottom: 0;
        border: 1px solid rgba(226, 232, 240, 0.8);
        position: relative;
        z-index: 1;
    }
    
    .ask-box h3 {
        margin-bottom: 16px;
        font-size: 18px;
        font-weight: 700;
        color: #1e293b;
    }
    
    .ask-form-wrapper {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
    }
    
    .ask-form-wrapper:focus-within {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .ask-form-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
        padding: 12px 18px;
        border-top: 1px solid #e2e8f0;
        gap: 12px;
    }
    
    .char-counter {
        color: #94a3b8;
        font-size: 13px;
        font-weight: 500;
        background: transparent;
        padding: 0;
        min-width: auto;
        text-align: left;
    }
    
    .checkbox-label {
        display: none;
    }
    
    .ask-form-actions {
        display: none;
    }
    
    .answer-likers-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
    }
    
    .answer-liker-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #e2e8f0;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        cursor: pointer;
        flex-shrink: 0;
        text-decoration: none;
        position: relative;
    }
    
    .answer-liker-avatar:hover {
        transform: scale(1.15);
        border-color: #3b82f6;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    
    .answer-liker-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .answer-liker-initial {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-light) 100%);
        color: white;
        font-weight: 600;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
    }
    
    .private-account-gate {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        padding: 48px 24px;
        text-align: center;
        margin-bottom: 16px;
    }
    .private-account-gate-title {
        margin: 0 0 12px;
        font-size: 22px;
        font-weight: 700;
        color: #111827;
        letter-spacing: -0.02em;
        line-height: 1.3;
    }
    .private-account-gate-subtitle {
        margin: 0;
        font-size: 15px;
        font-weight: 400;
        color: #6b7280;
        line-height: 1.5;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .answers-section {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0;
        box-shadow: none;
        padding: 25px 30px;
    }
    
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .section-header h3 {
        font-size: 16px;
        font-weight: 700;
        color: #1e293b;
    }
    
    .section-header-links {
        display: flex;
        gap: 15px;
        font-size: 11px;
    }
    
    .section-header-links a {
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.2s;
    }
    
    .section-header-links a:hover {
        color: #64748b;
    }
    
    .qa-item {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        padding: 20px 0;
        border-bottom: 1px solid rgba(241, 245, 249, 0.5);
        position: relative;
    }
    
    .qa-delete-btn, .qa-report-btn {
        position: absolute;
        top: 12px;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 18px;
        padding: 5px 10px;
        transition: opacity 0.2s, transform 0.2s;
        opacity: 0.6;
        z-index: 10;
    }
    
    .qa-delete-btn {
        right: 0;
        color: #ef4444;
    }
    
    .qa-report-btn {
        right: 12px;
        color: #94a3b8;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.2s, color 0.2s;
    }
    
    .qa-item:hover .qa-report-btn {
        opacity: 0.6;
    }
    
    .qa-report-btn:hover {
        opacity: 1 !important;
        color: #ef4444;
    }
    
    .qa-delete-btn:hover {
        opacity: 1;
        transform: scale(1.1);
    }
    
    .qa-item:last-child {
        border-bottom: none;
    }
    
    .question {
        font-weight: 700;
        font-size: 16px;
        margin-bottom: 12px;
        color: #1e293b;
        line-height: 1.45;
        display: inline;
    }
    
    .question-author {
        font-size: 14px;
        color: var(--profile-light);
        margin-left: 6px;
        font-weight: 400;
        display: inline;
    }
    
    .question-author a {
        color: var(--profile-light);
        text-decoration: none;
        font-weight: 400;
    }
    
    .question-author a:hover {
        text-decoration: underline;
    }
    
    .answer {
        color: #475569;
        margin-bottom: 10px;
        margin-top: 8px;
        line-height: 1.55;
        font-size: 15px;
    }
    
    .qa-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 11px;
        color: #94a3b8;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }
    
    .qa-meta-left {
        color: #94a3b8;
        font-size: 10px;
    }
    
    .qa-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .like-btn {
        background: none;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        font-size: 11px;
        transition: all 0.2s;
        padding: 3px 6px;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        margin: 0;
    }
    
    .like-btn:hover {
        background: rgba(239, 68, 68, 0.1);
    }
    
    .like-btn.liked {
        color: #ef4444;
    }
    
    .share-btn {
        background: none;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        font-size: 11px;
        transition: all 0.2s;
        padding: 3px 6px;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        gap: 0;
        margin: 0;
    }
    
    .share-btn:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }
    
    .view-likes-btn {
        background: none;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 4px;
        transition: all 0.2s;
        margin: 0;
        white-space: nowrap;
    }
    
    .view-likes-btn:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }
    
    .like-btn .heart-icon {
        display: inline-flex;
        align-items: center;
        transition: transform 0.2s;
    }
    
    .like-btn .heart-icon .heartlike-img {
        width: 14px;
        height: 14px;
        object-fit: contain;
        display: block;
    }
    
    .like-btn:hover .heart-icon {
        transform: scale(1.15);
    }
    
    .likes-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 10000;
    }
    
    .likes-modal.show {
        display: flex;
    }
    
    .likes-modal-content {
        background: white;
        border-radius: 12px;
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    .likes-modal-header {
        padding: 20px;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .likes-modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }
    
    .likes-modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #94a3b8;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s;
    }
    
    .likes-modal-close:hover {
        background: #f1f5f9;
        color: #475569;
    }
    
    .likes-modal-body {
        padding: 0;
        overflow-y: auto;
        flex: 1;
    }
    
    .liker-item {
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #f1f5f9;
        transition: background 0.2s;
    }
    
    .liker-item:hover {
        background: #f8fafc;
    }
    
    .liker-item:last-child {
        border-bottom: none;
    }
    
    .liker-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #64748b, #475569);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 16px;
        flex-shrink: 0;
        overflow: hidden;
    }
    
    .liker-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .liker-info {
        flex: 1;
        min-width: 0;
    }
    
    .liker-name {
        font-weight: 600;
        font-size: 14px;
        color: #1e293b;
        margin-bottom: 2px;
    }
    
    .liker-name a {
        color: #1e293b;
        text-decoration: none;
    }
    
    .liker-name a:hover {
        text-decoration: underline;
    }
    
    .liker-date {
        font-size: 12px;
        color: #94a3b8;
    }
    
    .likes-modal-empty {
        padding: 40px 20px;
        text-align: center;
        color: #94a3b8;
    }
    
    .btn {
        background: #84cc16;
        color: white;
        padding: 8px 16px;
        font-size: 13px;
        font-weight: 600;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        transition: all 0.2s;
        min-width: 100px;
    }
    
    .btn:hover {
        background: #65a30d;
    }
    
    .gift-link {
        color: #ef4444;
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 0.2s;
    }
    
    .gift-link:hover {
        color: #dc2626;
    }
    
    .ask-form-wrapper {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
    }
    
    .ask-form-wrapper:focus-within {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .ask-textarea {
        width: 100%;
        min-height: 120px;
        max-height: 200px;
        padding: 18px 20px;
        border: none;
        border-radius: 0;
        font-size: 15px;
        font-family: inherit;
        resize: none;
        transition: background 0.2s;
        background: white;
        color: #0f172a;
        margin: 0;
        line-height: 1.6;
        outline: none;
        box-sizing: border-box;
        overflow-y: auto;
    }
    
    .ask-textarea:focus {
        background: #fefefe;
    }
    
    .ask-textarea::placeholder {
        color: #94a3b8;
        font-style: italic;
    }
    
    .ask-form-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc;
        padding: 12px 18px;
        border-top: 1px solid #e2e8f0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
        gap: 12px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .ask-anonymous-label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        user-select: none;
        color: #64748b;
        font-size: 14px;
        font-weight: 500;
        padding: 0;
        transition: color 0.2s;
        background: transparent;
    }
    
    .ask-anonymous-label:hover {
        color: #475569;
    }
    
    .ask-anonymous-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #3b82f6;
        margin: 0;
        border-radius: 4px;
    }
    
    .ask-anonymous-label input[type="checkbox"]:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }
    
    .ask-submit-btn {
        background: #3b82f6;
        color: white;
        padding: 10px 24px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .ask-submit-btn:hover {
        background: #2563eb;
    }
    
    .ask-submit-btn:active {
        transform: scale(0.98);
    }
    
    .ask-submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    
    /* Avatar View Modal */
    .avatar-modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .avatar-modal-overlay.show {
        display: flex;
    }
    
    .avatar-modal {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        cursor: default;
        background: white;
        padding: 10px;
    }
    
    .avatar-modal img {
        max-width: 100%;
        max-height: 90vh;
        display: block;
        border-radius: 4px;
    }
    
    .avatar-modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        line-height: 1;
    }
    
    .avatar-modal-close:hover {
        background: rgba(0, 0, 0, 0.8);
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .profile-header {
            padding: 15px 20px;
        }
        
        .profile-top {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
            overflow: visible;
        }
        
        .profile-left {
            width: 100%;
        }
        
        .profile-right-section {
            width: 100%;
            flex: none;
            min-width: 0;
            max-width: none;
            overflow: visible;
        }
        
        .profile-stats {
            justify-content: flex-start;
            flex-wrap: nowrap;
            padding: 15px 0;
        }
        
        .stat-item {
            padding: 0 15px;
        }
        
        .profile-actions {
            flex-direction: row;
            justify-content: flex-end;
            width: 100%;
            margin-top: 10px;
            overflow: visible;
            position: relative;
            z-index: 9999;
        }
        
        .ask-box {
            padding: 20px 24px;
            border-radius: 12px;
            z-index: 1;
        }
        
        .ask-box h3 {
            font-size: 18px;
        }
        
        .ask-textarea {
            min-height: 100px;
            padding: 16px 18px;
            font-size: 14px;
        }
        
        .ask-form-footer {
            flex-wrap: wrap;
            gap: 10px;
            padding: 12px 16px;
        }
        
        .ask-submit-btn {
            padding: 10px 24px;
            font-size: 14px;
            width: 100%;
            margin-top: 8px;
        }
        
        .ask-form-wrapper {
            padding: 0;
        }
        
        .ask-form textarea {
            font-size: 15px;
        }
        
        .ask-form-footer {
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .ask-form-footer .btn-primary {
            width: 100%;
        }
        
        .qa-item {
            padding: 15px 20px;
        }
        
        .question {
            font-size: 16px;
        }
        
        .answer {
            font-size: 15px;
            margin-top: 8px;
        }
        
        .answer-media {
            max-width: 100%;
        }
        
        .answer-actions {
            gap: 15px;
        }
    }
    
    /* Mobile ASKfm Style - Clean and Professional */
    @media (max-width: 600px) {
        .container {
            margin: 0;
            padding: 0;
        }
        
        /* Hide body background on mobile, show colored header instead */
        body::before, body::after {
            display: none;
        }
        
        body {
            background: #f1f5f9;
        }
        
        /* Override universal container margin for profile page */
        .container {
            margin-top: -15px !important;
        }
        
        .profile-header {
            padding: 0;
            border-radius: 0;
            margin: 0 !important;
            margin-top: 0 !important;
            background: transparent;
            box-shadow: none;
            position: relative;
            z-index: 100;
            overflow: visible;
        }
        
        .profile-top {
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 0;
            gap: 0;
            background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-light) 100%);
            border-radius: 0;
            position: relative;
            overflow: visible;
        }
        
        .profile-top::after {
            display: none;
        }
        
        .profile-left {
            flex-direction: column;
            align-items: center;
            gap: 10px;
            width: 100%;
            background: transparent;
            padding: 30px 15px 10px;
        }
        
        /* Details styled as white section on mobile (ca în backup) */
        .profile-top .profile-details {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            background: white;
            width: calc(100% + 30px);
            margin: 20px -15px -20px -15px;
            padding: 12px 15px;
            border-top: none;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }
        
        .profile-top .profile-detail-item {
            background: var(--profile-bg);
            color: var(--profile-primary);
            border-color: var(--profile-primary);
            font-size: 12px;
            padding: 6px 12px;
            white-space: nowrap;
            flex-shrink: 0;
            border-radius: 20px;
        }
        
        .profile-right-section {
            background: white;
            width: 100%;
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            overflow: visible;
            position: relative;
            z-index: 50;
        }
        
        .profile-avatar-wrapper {
            width: 90px;
            height: 90px;
        }
        
        .profile-avatar {
            width: 90px;
            height: 90px;
            border: 4px solid white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        /* White text on colored background */
        .profile-top .profile-name {
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        .profile-top .profile-name .edit-btn {
            color: white;
            opacity: 0.8;
        }
        .profile-top .profile-name .edit-btn .edit-btn-icon {
            filter: brightness(0) invert(1);
        }
        
        .profile-top .profile-username {
            color: rgba(255,255,255,0.9);
        }
        
        .profile-top .profile-bio {
            background: rgba(255,255,255,0.2);
            color: white;
            backdrop-filter: blur(5px);
        }
        
        .profile-info {
            text-align: center;
            width: 100%;
            max-width: none;
            padding: 0 15px;
            box-sizing: border-box;
        }
        
        .profile-name {
            font-size: 20px;
            font-weight: 600;
            justify-content: center;
            text-align: center;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .profile-username {
            font-size: 14px;
            color: rgba(255,255,255,0.9);
            text-align: center;
            display: block;
            width: 100%;
        }
        
        .profile-bio {
            font-size: 13px;
            margin-top: 10px;
            color: white;
            text-align: center;
            background: rgba(255,255,255,0.2);
            padding: 10px 15px;
            border-radius: 8px;
            max-width: 280px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.4;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            overflow: hidden;
        }
        
        .profile-bio #bioText {
            white-space: pre-wrap;
            word-break: break-word;
        }
        
        .profile-bio:empty {
            display: none;
        }
        
        .profile-bio #bioText:empty {
            display: none;
        }
        
        .profile-right-section {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        /* Followers line */
        .profile-followers-line {
            text-align: center;
            padding: 10px 0;
            font-size: 14px;
            color: #64748b;
            width: 100%;
        }
        
        .profile-followers-line strong {
            color: var(--profile-primary);
        }
        
        .profile-followers-line .profile-followers-sep {
            margin: 0 6px;
            opacity: 0.6;
        }
        
        /* Stats centered (ca în backup) */
        .profile-stats {
            justify-content: center;
            gap: 0;
            flex-wrap: nowrap;
            padding: 15px;
            width: 100%;
            background: #f8fafc;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .stat-item {
            padding: 0 18px;
            text-align: center;
            border-right: 1px solid #e2e8f0;
        }
        
        .stat-item:last-child {
            border-right: none;
        }
        
        .stat-number {
            font-size: 22px;
            font-weight: 700;
            color: var(--profile-primary);
        }
        
        .stat-label {
            font-size: 11px;
            color: #64748b;
            text-transform: lowercase;
        }
        
        .profile-actions {
            flex-direction: row;
            justify-content: center;
            gap: 10px;
            padding: 0 10px;
            margin-top: 12px;
            width: 100%;
            overflow: visible;
            position: relative;
            z-index: 9999;
        }
        
        .profile-actions .btn {
            flex: 1;
            max-width: 160px;
            padding: 12px 15px;
            font-size: 14px;
            text-align: center;
            border-radius: 25px;
            font-weight: 600;
        }
        
        .profile-actions .btn-primary,
        .profile-actions .btn.primary {
            background: var(--profile-primary);
        }
        
        /* Ask Box Mobile */
        .ask-box {
            margin: 0 10px 10px 10px;
            z-index: 1;
            padding: 15px;
            border-radius: 10px;
        }
        
        .ask-box h3 {
            font-size: 15px;
            margin-bottom: 12px;
            text-align: center;
        }
        
        .ask-textarea {
            min-height: 80px;
            font-size: 14px;
            padding: 12px;
        }
        
        .ask-form-footer {
            padding: 10px 12px;
            flex-direction: column;
            gap: 10px;
            align-items: center;
        }
        
        .ask-submit-btn {
            width: 100%;
            padding: 12px;
            font-size: 14px;
        }
        
        /* Q&A Items Mobile */
        .qa-container {
            margin: 0;
            padding: 0 10px;
        }
        
        .qa-header {
            padding: 12px 15px;
            font-size: 14px;
        }
        
        .qa-item {
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 8px;
        }
        
        .question {
            font-size: 15px;
            line-height: 1.45;
        }
        
        .question-author {
            font-size: 12px;
            margin-top: 5px;
        }
        
        .answer {
            font-size: 14px;
            line-height: 1.5;
            margin-top: 10px;
            padding-top: 10px;
        }
        
        .answer-actions {
            margin-top: 10px;
            gap: 10px;
        }
        
        .qa-meta {
            margin-top: 6px;
            padding-top: 6px;
        }
        
        .qa-actions {
            gap: 3px;
        }
        
        .like-btn,
        .share-btn {
            font-size: 11px;
            padding: 3px 6px;
        }
        
        .view-likes-btn {
            font-size: 9px;
            padding: 3px 5px;
        }
        
        .answer-likers-row {
            gap: 4px;
        }
        
        .answer-liker-avatar {
            width: 24px;
            height: 24px;
        }
    }
    
    @media (max-width: 480px) {
        .profile-header {
            padding: 0;
        }
        
        .profile-avatar-wrapper {
            width: 60px;
            height: 60px;
        }
        
        .profile-avatar {
            width: 60px;
            height: 60px;
        }
        
        .profile-avatar-initial {
            font-size: 28px;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--profile-primary), var(--profile-light));
            border-radius: 50%;
        }
        
        .profile-avatar-upload-icon {
            width: 22px;
            height: 22px;
            font-size: 12px;
            border-width: 2px;
        }
        
        .profile-name {
            font-size: 16px;
        }
        
        .profile-username {
            font-size: 13px;
        }
        
        .profile-bio {
            font-size: 12px;
        }
        
        .stat-number {
            font-size: 16px;
        }
        
        .stat-label {
            font-size: 10px;
        }
        
        .stat-item {
            padding: 0 15px;
        }
        
        .profile-actions {
            flex-direction: row;
            overflow: visible;
            z-index: 9999;
        }
        
        .profile-actions .btn {
            padding: 8px 12px;
            font-size: 12px;
        }
        
        .ask-box {
            padding: 12px;
            margin: 0 8px 8px 8px;
            z-index: 1;
        }
        
        .ask-box h3 {
            font-size: 14px;
        }
        
        .ask-textarea {
            font-size: 13px;
            min-height: 70px;
            padding: 10px;
        }
        
        .ask-form-footer .char-counter {
            font-size: 11px;
        }
        
        .answer-liker-avatar {
            width: 22px;
            height: 22px;
        }
        
        .answer-liker-initial {
            font-size: 10px;
        }
        
        .qa-item {
            padding: 10px 12px;
        }
        
        .question {
            font-size: 14px;
        }
        
        .question-author {
            font-size: 11px;
        }
        
        .answer {
            font-size: 14px;
            margin-top: 6px;
        }
        
        .answer-media {
            margin-top: 10px;
        }
        
        .answer-actions {
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .like-btn {
            font-size: 13px;
        }
        
        .avatar-modal-content {
            max-width: 90vw;
            max-height: 90vh;
        }
    }

/* YouTube embed în răspunsuri – play direct pe platformă */
    .answer .youtube-embed-wrapper,
    .qa-item .youtube-embed-wrapper {
        margin: 12px 0;
        border-radius: 12px;
        overflow: hidden;
        max-width: 100%;
    }
    .answer .youtube-embed-wrapper iframe,
    .qa-item .youtube-embed-wrapper iframe {
        display: block;
        width: 100%;
        max-width: 560px;
        height: 315px;
        border: none;
    }
    .answer .mention-link,
    .qa-item .mention-link {
        color: #0891b2;
        text-decoration: none;
        font-weight: 600;
    }
    .answer .mention-link:hover,
    .qa-item .mention-link:hover {
        color: #0e7490;
        text-decoration: underline;
    }
    .youtube-embed-fallback {
        display: inline-block;
        margin-top: 8px;
        font-size: 13px;
        color: #64748b;
        text-decoration: none;
    }
    .youtube-embed-fallback:hover {
        color: #0891b2;
        text-decoration: underline;
    }
