.profile-modal {
    align-items: flex-start;
    padding: 20px;
}

.profile-modal .modal-content {
    width: 95%;
    padding: 0;
    border: none;
    background: #060608;
    border-radius: 20px;
        overflow-y: scroll;
    scrollbar-width: none;
}

.profile-modal-content {
    overflow-y: auto;
    max-height: 90vh;
        overflow-y: scroll;
    scrollbar-width: none;
}

.profile-page {
    min-height: 100%;
}

.profile-cover {
    background: linear-gradient(135deg, #1f2937, #3b82f6);
    height: 220px;
    position: relative;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.profile-info {
    padding: 20px;
    margin-top: -80px;
    position: relative;
}

.profile-info.simple {
    background: #111111;
    border: 1px solid #1f2430;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.back-btn {
    background: none;
    border: none;
    padding: 22px;
    position: relative;
    z-index: 2;
}

.garan-btn-back {
    font-size: 24px;
    background: none;
    color: #e2e8f0;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 240px;
}

.profile-details {
    flex: 1;
    min-width: 220px;
}

.profile-name-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #f8fafc;
}

.profile-emoji {
    font-size: 1.5em;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-username {
    color: #94a3b8;
    font-weight: 600;
}

.profile-bio {
    margin-top: 10px;
    color: #b6bdc9;
    line-height: 1.6;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background: #0b0d12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.45);
    overflow: hidden;
}

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

.profile-stats {
    display: flex;
    gap: 20px;
    padding: 18px 0 0;
    border-top: 1px solid #1f2430;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 120px;
}

.stat:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.85em;
    color: #9aa4b2;
    margin-top: 5px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.profile-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 13px;
}

.profile-blocked-note {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #663333;
    background: rgba(102, 0, 0, 0.3);
    color: #ff8f8f;
    font-size: 0.9em;
}

.profile-role-chip {
    display: none;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75em;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.profile-role-chip.active {
    display: inline-flex;
}

.avatar-upload {
    display: flex;
    gap: 15px;
    align-items: center;
}

.avatar-preview {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #1b1b1b;
    border: 2px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    overflow: hidden;
}

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

.avatar-upload-controls input[type="file"] {
    display: block;
    color: #ccc;
}

.avatar-upload-controls small {
    color: #666;
    font-size: 0.8em;
    display: block;
    margin-top: 4px;
}

.profile-form-section {
    margin-bottom: 24px;
}

.profile-form-section h4 {
    margin-bottom: 12px;
    font-size: 1.05em;
    color: #e5e7eb;
}

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

.profile-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.edit-profile-form .form-input,
.edit-profile-form .form-textarea {
    background: #0b0d12;
    border: 1px solid #1f2937;
    border-radius: 12px;
    color: #f8fafc;
    padding: 12px 14px;
    width: 100%;
}

.edit-profile-form .form-textarea {
    resize: vertical;
}

.edit-profile-form .form-group label {
    color: #cbd5f5;
    font-weight: 600;
}

.edit-profile-form .btn {
    border-radius: 12px;
}

.profile-settings-modal {
    background: #0b0d12;
}

.profile-settings-header h3 {
    margin: 0;
}

.modal-subtitle {
    margin-top: 6px;
    color: #9aa4b2;
    font-size: 0.9em;
}

.profile-settings-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: #0f1117;
    border: 1px solid #1f2430;
}

.profile-settings-avatar {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: #0b0d12;
    border: 1px solid #1f2430;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.2em;
    overflow: hidden;
}

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

.profile-settings-hero-text {
    flex: 1;
    min-width: 180px;
}

.profile-settings-hero-title {
    color: #f8fafc;
    font-weight: 600;
}

.profile-settings-hero-subtitle {
    margin-top: 4px;
    color: #9aa4b2;
    font-size: 0.9em;
}

.profile-settings-hero-btn {
    white-space: nowrap;
}

.profile-settings-section {
    margin-top: 24px;
    padding: 13px;
}

.profile-settings-section h4 {
    margin-bottom: 12px;
    font-size: 1em;
    color: #e5e7eb;
}

.profile-settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #0f1117;
    border: 1px solid #1f2430;
}

.profile-setting-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.profile-setting-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8b95a7;
}

.profile-setting-value {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.profile-setting-action {
    border-radius: 10px;
    padding: 10px 14px;
    white-space: nowrap;
}

.profile-field-modal .modal-content {
    max-width: 520px;
    width: 92%;
    background: #0b0d12;
    border-color: #1f2430;
}

.profile-field-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-field-modal .form-group label {
    color: #cbd5f5;
    font-weight: 600;
}

.profile-field-label {
    color: #cbd5f5;
    font-weight: 600;
}

.profile-field-avatar {
    padding: 12px;
    border-radius: 12px;
    background: #0f1117;
    border: 1px dashed #1f2430;
}

.profile-field-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.profile-hidden-options {
    display: none;
}
@media (max-width: 720px) {
  .profile-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .profile-identity {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .profile-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 28px;
  }
  .profile-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .profile-name-line {
    justify-content: center;
  }
  .profile-meta {
    justify-content: center;
  }
  .profile-bio {
    text-align: center;
  }
  .profile-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .profile-settings-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-settings-hero-btn {
    width: 100%;
  }
  .profile-setting-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-setting-action {
    width: 100%;
    text-align: center;
  }
}

.manage-blocks-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blocked-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #222;
    border-radius: 10px;
    background: #0b0b0b;
}

.blocked-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blocked-user-info .avatar {
    width: 40px;
    height: 40px;
}

.blocked-user-name {
    font-weight: bold;
}

.blocked-user-username {
    font-size: 0.85em;
    color: #999;
}
