@font-face {
            font-family: 'irani';
            src: url('/assets/fonts/font1.woff') format('opentype');
            font-weight: 400;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'irani', Tahoma, sans-serif;
        }
        
        :root {
            --bg-color: #fff;
            --color-texts: #2e2e2e;
        }

        body {
            background-color: #fafafa;
        }

        .container {
            margin: 80px auto 0;
            max-width: 1000px;
            background-color: var(--bg-color);
            color: var(--color-texts);
            padding: 40px 20px 100px 20px;
            border-radius: 13px;
        }

        .profile-header {
            display: flex;
            align-items: flex-start;
            margin-bottom: 30px;
        }

        .profile-pic-wrapper {
            flex-shrink: 0;
            width: 250px;
            display: flex;
            justify-content: center;
        }

        .profile-pic {
            width: 160px;
            height: 160px;
            border-radius: 50%;
            object-fit: cover;
            padding: 3px;
            background: linear-gradient(47deg, #3374f0, #3c9ee6, #2732dc, #9723cc, #bc1888);
            cursor: pointer;
        }

        .profile-info {
            flex-grow: 1;
            padding-right: 20px;
        }

        .user-meta-row {
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .username {
            font-size: 26px;
            font-weight: 500;
        }

        .btn {
            padding: 8px 20px;
            border-radius: 11px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border: none;
            text-decoration: none;
            display: inline-block;
            transition: all 0.2s;
        }

        .btn-primary {
            background-color: rgb(247, 247, 247);
            color:rgb(29, 29, 29);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            white-space: nowrap;
            font-size: clamp(12px, 3.5vw, 14px);
            border-radius: 13px;
            border: 1px solid rgb(239, 239, 239);
        }

        .btn-secondary {
            background-color: #EFEFEF;
            color: #262626;
        }

        .btn-secondary-dark {
            background-color:rgb(255, 255, 255);
            color: #262626;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            white-space: nowrap;
            font-size: clamp(12px, 3.5vw, 14px);
            padding: 9px 11px;
            border-radius: 13px;
            border: 1px solid rgb(239, 239, 239);
        }
        

        .btn:hover {
            opacity: 0.9;
        }

        .stats-row {
            display: flex;
            gap: 30px;
            margin-bottom: 20px;
        }

        .stat-item {
            display: flex;
            flex-direction: column; 
            align-items: center;
            gap: 5px;
            cursor: pointer;
            text-align: center;
        }

        .stat-item:hover {
            opacity: 0.7;
        }

        .stat-count {
            font-weight: 700;
        }

        .bio-row {
            margin-bottom: 8px;
        }

        .full-name {
            font-weight: 600;
            display: block;
            margin-bottom: 5px;
        }

        .city-info {
            color: #666;
            font-size: 14px;
            margin-top: 5px;
        }

        .profilee-tab {
            display: flex;
            justify-content: center;
            border-top: 1px solid #dbdbdb;
            margin-top: 30px;
            padding-top: 20px;
        }

        .tab {
            padding: 10px 30px;
            font-weight: 600;
            color: #8e8e8e;
            cursor: pointer;
            border-top: 1px solid transparent;
            margin-top: -21px;
        }

        .tab.active {
            color: #262626;
            border-top: 1px solid #262626;
        }

        .posts-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: 30px;
        }

        .grid-card {
            aspect-ratio: 1;
            background: #f0f0f0;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: opacity 0.2s;
            position: relative;
        }

        .grid-card:hover {
            opacity: 0.8;
        }

        .grid-card img,
        .grid-card video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-indicator {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0,0,0,0.6);
            color: white;
            padding: 6px 10px;
            border-radius: 20px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 4px;
            backdrop-filter: blur(4px);
        }

        .text-only-post {
            padding: 15px;
            background: #f5f5f5;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #666;
            font-size: 14px;
        }

        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px;
            color: #8e8e8e;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            padding: 13px;
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 500px;
            max-height: 85vh;
            overflow-y: auto;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #efefef;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 600;
        }

        .modal .close-btn {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #666;
            flex-shrink: 0;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .modal-body {
            padding: 20px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.2s;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            border-color: #0095F6;
            outline: none;
            box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
        }

        .submit-btn {
            width: 100%;
            padding: 14px;
            background: #0095F6;
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }

        .submit-btn:hover {
            background: #0077cc;
        }

        .submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .message {
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 15px;
            display: none;
            font-size: 13px;
        }

        .message.success {
            background: #d4edda;
            color: #155724;
            display: block;
        }

        .message.error {
            background: #f8d7da;
            color: #721c24;
            display: block;
        }

        .settings-profile-header {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 20px;
            background: #f8f9fa;
            border-bottom: 1px solid #efefef;
            position: relative;
            padding-bottom: 20px;
        }

        .settings-avatar {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #fff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .settings-user-info {
            flex: 1;
        }

        .settings-fullname {
            font-weight: 500;
            font-size: 16px;
            color: #1a1a1a;
        }

        .settings-username {
            font-size: 13px;
            color: #8e8e8e;
        }

        .settings-edit-icon {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .settings-edit-icon:hover {
            background-color: #efefef;
        }

        .settings-section {
            padding: 16px 20px;
            border-bottom: 8px solid #fafafa;
        }

        .settings-section-title {
            font-weight: 500;
            font-size: 16px;
            margin-bottom: 14px;
            color: #262626;
        }

        .settings-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 7px;
            cursor: pointer;
            border-radius: 12px;
            transition: background 0.2s;
        }

        .settings-item:hover {
            background: #f8f9fa;
        }

        .settings-item-left {
            flex: 1;
        }

        .settings-item-label {
            font-size: 13px;
            color: #8e8e8e;
            margin-bottom: 2px;
        }

        .settings-item-value {
            font-weight: 500;
            font-size: 13px;
        }

        .settings-item-arrow {
            color: #8e8e8e;
            flex-shrink: 0;
        }

        .bio-display {
            font-size: 14px;
            line-height: 1.5;
            color: #333;
        }

        .settings-menu-item {
            display: block;
            padding: 12px 16px;
            background-color: #f8f9fa;
            border-radius: 14px;
            color: #262626;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            border: 1px solid #efefef;
            margin-bottom: 8px;
        }

        .settings-menu-item:hover {
            background-color: #e9ecef;
            transform: translateX(-4px);
            color: #0095F6;
        }

        .username-preview {
            margin-bottom: 15px;
            font-size: 13px;
            color: #666;
            direction: ltr;
            text-align: left;
            background: #f8f9fa;
            padding: 10px 14px;
            border-radius: 12px;
        }

        .username-input-field {
            width: 100%;
            padding: 14px 16px;
            font-size: 16px;
            border: 2px solid #e0e0e0;
            border-radius: 14px;
            transition: all 0.2s;
            direction: ltr;
            text-align: left;
            font-family: monospace;
        }

        .username-input-field:focus {
            border-color: #0095F6;
            outline: none;
            box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
        }

        .username-error-message {
            font-size: 12px;
            color: #e74c3c;
            margin-top: 8px;
            padding-right: 12px;
        }

        .username-success-message {
            font-size: 12px;
            color: #27ae60;
            margin-top: 8px;
            padding-right: 12px;
        }

        .char-counter {
            font-size: 11px;
            color: #999;
            text-align: left;
            margin-top: 5px;
        }

        .story-popup {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.9);
            z-index: 9999;
            display: none;
        }

        .story-popup.active {
            display: block;
        }

        #storyFrame {
            width: 100%;
            height: 100%;
            border: none;
        }

        .full-width-actions-btn {
            width: 100%;
            background: #f8f9fa;
            color: #2c3e50;
            border: 1px solid #e9ecef;
            border-radius: 14px;
            padding: 11px 18px;
            margin: 13px 0 20px 0;
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: right;
        }

        .full-width-actions-btn:hover {
            background: #e9ecef;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        .full-width-actions-btn .shop-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 13px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .full-width-actions-btn .shop-icon svg {
            width: 22px;
            height: 22px;
            stroke: white;
        }

        .full-width-actions-btn .btn-text-content {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .full-width-actions-btn .action-title {
            font-size: 15px;
            font-weight: 700;
            color: #2c3e50;
            white-space: nowrap;
        }

        .full-width-actions-btn .action-subtitle {
            font-size: 12px;
            color: #7f8c8d;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (max-width: 768px) {
            .container {
                padding: 20px 15px 80px 15px;
            }
            .profile-header {
                flex-direction: column;
                align-items: center;
            }
            .profile-info {
                padding-right: 0;
                margin-top: 15px;
                width: 100%;
            }
            .user-meta-row {
                justify-content: center;
            }
            .stats-row {
                justify-content: center;
            }
            .profile-info-stats-bio {
                grid-template-columns: 1fr !important;
                gap: 15px !important;
            }
            .bio-row {
                text-align: center;
            }
            .posts-grid {
                gap: 4px;
            }
            .modal-content {
                max-width: 95%;
            }
        }

        .profile-info-stats-bio {
            display: grid;
            grid-template-columns: 1fr 1fr; 
            gap: 30px;
            align-items: start;
        }

        .add-collection-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 10001;
            align-items: center;
            justify-content: center;
        }

        .add-collection-modal.active {
            display: flex;
        }

        .add-collection-modal-content {
            background: white;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            overflow: hidden;
        }

        .add-collection-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 20px;
            border-bottom: 1px solid #efefef;
            background: #fff;
        }

        .add-collection-modal-header h3 {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
            color: #2c3e50;
        }

        .add-collection-modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #999;
        }

        .add-collection-modal-body {
            padding: 20px;
        }

        .add-collection-form-group {
            margin-bottom: 18px;
        }

        .add-collection-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

        .add-collection-form-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 14px;
            outline: none;
        }

        .add-collection-form-group input:focus {
            border-color: #0095F6;
        }

        .add-collection-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .add-collection-cancel,
        .add-collection-submit {
            flex: 1;
            border: none;
            padding: 12px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 500;
            font-size: 14px;
        }

        .add-collection-cancel {
            background: #e9ecef;
            color: #333;
        }

        .add-collection-submit {
            background: #0095F6;
            color: white;
        }

        .collection-tab-wrapper {
            display: inline-flex;
            align-items: center;
            position: relative;
            background: #f8f9fa;
            border-radius: 17px;
            margin: 0 4px;
            overflow: hidden;
        }

        .collection-tab-wrapper .saved-tab {
            border-radius: 0px 0 0 0px;
            padding: 10px 12px 10px 8px;
            background: transparent;
        }

        .collection-delete-tab-btn {
            background:rgba(255, 255, 255, 0);
            border: none;
            color:rgb(218, 45, 45);
            cursor: pointer;
            padding: 0 10px;
            border-radius: 0 20px 20px 0;
            font-size: 0;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        .add-collection-tab {
            background: white !important;
            border-radius: 20px !important;
            margin-right: 8px !important;
            color: #0095F6 !important;
        }

        .custom-confirm-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .custom-confirm-box {
            background: white;
            border-radius: 16px;
            padding: 24px;
            min-width: 280px;
            max-width: 380px;
            direction: rtl;
            box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
            animation: confirmFadeIn 0.2s ease;
        }

        .custom-confirm-message {
            margin-bottom: 24px;
            font-size: 16px;
            color: #2c3e50;
            text-align: center;
            line-height: 1.5;
        }

        .custom-confirm-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .custom-confirm-btn {
            padding: 10px 28px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .custom-confirm-btn.confirm {
            background: #0095F6;
            color: white;
        }

        .custom-confirm-btn.confirm:hover {
            background: #0077cc;
        }

        .custom-confirm-btn.cancel {
            background: #efefef;
            color: #333;
        }

        .custom-confirm-btn.cancel:hover {
            background: #e0e0e0;
        }

        @keyframes confirmFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .sessions-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #efefef;
        }

        .sessions-desc {
            font-size: 13px;
            color: #666;
        }

        .terminate-all-btn {
            background: none;
            border: none;
            color: #e74c3c;
            font-size: 13px;
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 20px;
            transition: all 0.2s;
        }

        .terminate-all-btn:hover {
            background: #fee;
        }

        .sessions-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .session-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .session-item:last-child {
            border-bottom: none;
        }

        .session-info {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1;
        }

        .session-icon {
            width: 44px;
            height: 44px;
            background: #f0f0f0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }

        .session-details {
            flex: 1;
        }

        .session-device {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .session-meta {
            font-size: 12px;
            color: #999;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .session-current-badge {
            background: #0095F6;
            color: white;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 10px;
            margin-left: 10px;
        }

        .session-terminate-btn {
            background: none;
            border: none;
            color: #e74c3c;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .session-terminate-btn:hover {
            background: #fee;
        }

        .password-input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.2s;
            font-family: monospace;
            direction: ltr;
            text-align: left;
        }

        .password-input:focus {
            border-color: #0095F6;
            outline: none;
            box-shadow: 0 0 0 3px rgba(0,149,246,0.1);
        }

        .password-strength {
            margin-top: 8px;
            font-size: 12px;
        }

        .password-strength.weak { color: #e74c3c; }
        .password-strength.medium { color: #f39c12; }
        .password-strength.strong { color: #27ae60; }

        .account-details {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .detail-label {
            font-size: 13px;
            color: #8e8e8e;
        }

        .detail-value {
            font-weight: 500;
            font-size: 14px;
            color: #262626;
        }

        .detail-value.premium {
            color: #667eea;
        }

        .detail-value.verified {
            color: #0095F6;
        }

        .detail-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
        }

        .detail-badge.active {
            background: #d4edda;
            color: #155724;
        }

        .detail-badge.inactive {
            background: #f8d7da;
            color: #721c24;
        }

        .security-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 0;
            cursor: pointer;
            border-radius: 12px;
            transition: background 0.2s;
        }

        .security-item:hover {
            background: #f8f9fa;
        }

        .security-item-left {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1;
        }

        .security-item-icon {
            width: 44px;
            height: 44px;
            background: #f0f0f0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }

        .security-item-info {
            flex: 1;
        }

        .security-item-title {
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 4px;
        }

        .security-item-desc {
            font-size: 12px;
            color: #999;
        }

        .security-item-value {
            font-size: 13px;
            color: #666;
        }

        .security-item-static {
            display: flex;
            align-items: center;
            padding: 14px 0;
            border-radius: 12px;
        }

        .security-item-arrow {
            color: #bbb;
            flex-shrink: 0;
        }

        .settings-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 7px;
            cursor: pointer;
            border-radius: 12px;
            transition: all 0.2s ease;
        }

        .settings-item:hover {
            background: #f8f9fa;
        }

        .settings-item-left {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1;
        }

        .settings-icon-circle {
            width: 48px;
            height: 48px;
            background: #f0f0f0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .settings-icon-circle svg {
            width: 24px;
            height: 24px;
            stroke: #555;
        }

        .settings-item-info {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .settings-item-value {
            font-weight: 500;
            font-size: 14px;
            color: #1a1a1a;
            margin-bottom: 4px;
        }

        .settings-item-label {
            font-size: 13px;
            color: #8e8e8e;
        }

        .settings-item-arrow {
            flex-shrink: 0;
            margin-right: 8px;
        }

        .settings-item-arrow svg {
            width: 16px;
            height: 16px;
            stroke: #bbb;
        }

        @media (min-width: 769px) {
            .settings-icon-circle {
                width: 44px;
                height: 44px;
            }
            .settings-icon-circle svg {
                width: 22px;
                height: 22px;
            }
        }

        @media (max-width: 768px) {
            .settings-icon-circle {
                width: 42px;
                height: 42px;
            }
            .settings-icon-circle svg {
                width: 20px;
                height: 20px;
            }
            .settings-item-value {
                font-size: 15px;
            }
            .settings-item-label {
                font-size: 12px;
            }
        }

        #contactSettingsModal .modal-content {
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
            border-radius: 28px;
        }

        .contact-settings-header {
            background: #fff;
            padding: 24px 20px;
            text-align: center;
            margin: 13px 13px 0 13px;
            border-radius: 28px 28px 30px 30px;
        }

        .contact-settings-header h3 {
            color: #333;
            font-size: 18px;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .contact-settings-header p {
            color: rgba(47, 47, 47, 0.8);
            font-size: 12px;
            margin-top: 8px;
        }

        .contact-settings-body {
            padding: 24px 20px;
        }

        .contact-settings-group {
            margin-bottom: 24px;
            background: #fff;
            border-radius: 20px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            border: 1px solid #efefef;
        }

        .contact-settings-label {
            font-size: 13px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding-bottom: 8px;
            border-bottom: 2px solid #f0f0f0;
        }

        .contact-settings-label svg {
            width: 18px;
            height: 18px;
            stroke: #667eea;
        }

        .contact-input-wrapper {
            position: relative;
            margin-top: 8px;
        }

        .contact-input-wrapper input {
            width: 100%;
            padding: 14px 16px;
            background: #f8f9fa;
            border: 1.5px solid #e8e8e8;
            border-radius: 16px;
            font-size: 14px;
            transition: all 0.2s ease;
            font-family: inherit;
            color: #1a1a1a;
        }

        .contact-input-wrapper input:focus {
            border-color: #667eea;
            background: #fff;
            outline: none;
            box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
        }

        .contact-input-wrapper input::placeholder {
            color: #bbb;
            font-size: 13px;
        }

        .phone-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
            padding: 16px;
            border-radius: 20px;
            margin-bottom: 20px;
            border: 1px solid #efefef;
        }

        .phone-toggle-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .phone-toggle-info svg {
            width: 24px;
            height: 24px;
            stroke: #667eea;
        }

        .phone-toggle-info .label {
            font-weight: 600;
            color: #1a1a1a;
            font-size: 14px;
        }

        .phone-toggle-info .sub {
            font-size: 11px;
            color: #999;
            margin-top: 2px;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 52px;
            height: 28px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.3s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        input:checked + .slider {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        .contact-grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .contact-full-width {
            grid-column: span 2;
        }

        .contact-save-btn {
            width: 100%;
            padding: 16px;
            background: #385599;
            color: white;
            border: none;
            border-radius: 20px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .contact-save-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102,126,234,0.3);
        }

        .contact-save-btn:disabled {
            opacity: 0.6;
            transform: none;
        }

        @media (max-width: 768px) {
            .contact-grid-2 {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .contact-full-width {
                grid-column: span 1;
            }
            .contact-settings-body {
                padding: 20px 16px;
            }
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            visibility: hidden;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            visibility: visible;
            opacity: 1;
        }

        .modal-container {
            background: white;
            border-radius: 24px;
            width: 90%;
            max-width: 400px;
            padding: 24px;
            text-align: center;
            box-shadow: 0 20px 35px -8px rgba(0,0,0,0.2);
            transform: scale(0.9);
            transition: transform 0.2s ease;
            font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .modal-overlay.active .modal-container {
            transform: scale(1);
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 14px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .contact-item:last-child {
            border-bottom: none;
        }

        .contact-icon {
            width: 44px;
            height: 44px;
            background: #f8f9fa;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .contact-icon img {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }

        .contact-info {
            flex: 1;
        }

        .contact-label {
            font-size: 13px;
            color: #8e8e8e;
            margin-bottom: 4px;
        }

        .contact-value {
            font-weight: 500;
            font-size: 14px;
            color: #262626;
            word-break: break-all;
        }

        .contact-value a {
            color: #0095F6;
            text-decoration: none;
        }

        .contact-value a:hover {
            text-decoration: underline;
        }

        .profile-actions-grid-in-modal {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 10px;
        }

        .action-card {
            background: #f8f9fa;
            border-radius: 14px;
            padding: 16px 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            border: 1px solid #e9ecef;
        }

        .action-card:hover {
            background: #e9ecef;
            transform: translateY(-2px);
        }

        .action-icon { font-size: 28px; }
        .action-text { font-size: 14px; font-weight: 500; color: #2c3e50; }

        .avatar-preview { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
        .loading { text-align: center; padding: 40px; color: #8e8e8e; }

        .saved-tabs { display: flex; border-bottom: 1px solid #efefef; padding: 0 15px; overflow-x: auto; gap: 8px; }
        .saved-tab { padding: 12px 20px; background: none; border: none; cursor: pointer; font-size: 14px; color: #8e8e8e; white-space: nowrap; }
        .saved-tab.active { color: #0095F6; border-bottom: 2px solid #0095F6; }
        .saved-tab-content { display: none; padding: 15px; }
        .saved-tab-content.active { display: block; }
        .saved-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 400px; overflow-y: auto; }
        .saved-post-item { aspect-ratio: 1; cursor: pointer; background: #f0f0f0; border-radius: 8px; overflow: hidden; }
        .saved-post-item img { width: 100%; height: 100%; object-fit: cover; }

        .custom-notification { position: fixed; top: 20px; right: 20px; background: #2c3e50; color: white; padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 10000; animation: slideInRight 0.3s ease; direction: rtl; }
        .custom-notification.success { background: #27ae60; }
        .custom-notification.error { background: #e74c3c; }

        @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        .custom-notification.fade-out { animation: fadeOut 0.3s ease forwards; }
        @keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }

        .story-toast-message { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: #2c3e50; color: white; padding: 12px 24px; border-radius: 50px; font-size: 14px; z-index: 10002; direction: rtl; text-align: center; white-space: nowrap; max-width: 90%; white-space: normal; animation: toastFadeInOut 2s ease forwards; }

        @keyframes toastFadeInOut { 0% { opacity: 0; transform: translateX(-50%) translateY(20px); } 15% { opacity: 1; transform: translateX(-50%) translateY(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

        .follow-list { max-height: 400px; overflow-y: auto; }
        .follow-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
        .follow-info { display: flex; align-items: center; gap: 12px; }
        .follow-avatar { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; }
        .follow-details { display: flex; flex-direction: column; }
        .follow-username { font-weight: 600; color: #262626; text-decoration: none; }
        .follow-name { font-size: 13px; color: #8e8e8e; }

        .order-item, .download-item { background: #f8f9fa; border-radius: 12px; padding: 15px; margin-bottom: 15px; }
        .order-header, .download-header { display: flex; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
        .order-number, .download-title { font-weight: bold; color: #667eea; }
        .order-status.paid, .download-status.available { background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 20px; font-size: 12px; }
        .order-status.pending, .download-status.exhausted { background: #f8d7da; color: #721c24; padding: 3px 10px; border-radius: 20px; font-size: 12px; }
        .order-total { margin-top: 10px; text-align: left; font-weight: bold; color: #28a745; }
        .download-link { display: inline-block; background: #28a745; color: white; padding: 8px 16px; border-radius: 20px; text-decoration: none; font-size: 13px; }

        .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
        .page-link { padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: white; }
        .page-link.active { background: #0095F6; color: white; border-color: #0095F6; }

        .username-rules {
            margin-top: 16px;
            margin-bottom: 20px;
            padding: 12px 16px;
            background: #f8f9fa;
            border-radius: 12px;
            border-right: 3px solid #0095F6;
        }

        .rules-title {
            font-size: 12px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .rules-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .rules-list li {
            font-size: 11px;
            color: #666;
            padding: 3px 0;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .rules-list li.valid {
            color: #27ae60;
        }

        .rules-list li.invalid {
            color: #e74c3c;
        }

        .rules-list li span {
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .username-rules {
                padding: 10px 12px;
            }
            .rules-list li {
                font-size: 10px;
            }
        }

        .settings-item-vertical {
            padding: 16px 0;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .settings-item-vertical:last-child {
            border-bottom: none;
        }

        .settings-item-vertical .settings-item-label {
            font-size: 13px;
            color: #8e8e8e;
            margin-bottom: 6px;
        }

        .settings-item-value-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .settings-item-value-row .settings-item-value {
            font-weight: 500;
            font-size: 16px;
            color: #1a1a1a;
        }

        .settings-item-arrow {
            flex-shrink: 0;
        }

        .settings-item-arrow svg {
            width: 16px;
            height: 16px;
            stroke: #bbb;
        }
        .close-btn-left {
    position: absolute;
    left: 16px;
    top: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-btn-left:hover {
    background: rgba(255, 255, 255, 0.3);
}

.close-btn-left svg {
    stroke: #6f7e9b;
}
.profile-menu-container {
    position: relative;
    display: inline-block;
}
.profile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background-color: #f8f8f9;
}
.profile-menu-btn:hover {
    background-color: #efefef;
}
.profile-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 100;
    display: none;
    overflow: hidden;
    margin-top: 8px;
}
.profile-menu-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    text-align: right;
}
.menu-item:hover {
    background-color: #f5f5f5;
}
.menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.menu-item.disabled:hover {
    background-color: white;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .profile-menu-dropdown {
        left: auto;
        right: 0;
    }
}
.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 8px;
}

.account-info-item:last-child {
    border-bottom: none;
}

.account-info-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.account-info-value {
    color: #333;
    font-size: 14px;
    text-align: left;
    word-break: break-word;
    max-width: 60%;
}

@media (max-width: 768px) {
    .account-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-info-value {
        max-width: 100%;
        text-align: right;
    }
    
}
