﻿/* =========================================================
   PROFILE PAGE
   ========================================================= */
.profile-shell {
    max-width: 1320px;
}

.profile-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.profile-tabs-shell {
    position: relative;
    z-index: 2;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.profile-tabs-content > .tab-pane {
    position: relative;
    z-index: 3;
    padding-top: 6px;
}

.profile-shell .ss-panel,
.profile-shell .ss-dropdown,
.profile-shell .dropdown-menu {
    z-index: 6000;
}

.profile-shell .nav-tabs {
    flex-wrap: wrap;
}

.profile-shell .row.g-3,
.profile-shell .row.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.profile-shell .card {
    border-radius: 30px;
    overflow: hidden;
}

.profile-shell .card-header {
    padding: 18px 22px;
    font-size: 1rem;
    background: rgba(255,255,255,.04);
}

.profile-shell .card-body {
    padding: 24px 22px;
}

.profile-shell .card-footer {
    padding: 18px 22px 22px;
    background: transparent;
}

.profile-shell .form-control-plaintext {
    padding: .75rem 0;
    color: var(--text);
}

.profile-shell .badge.bg-secondary,
.profile-shell .badge.bg-success,
.profile-shell .badge.bg-danger {
    border-radius: 999px;
    padding: .5rem .8rem;
}

.profile-shell .tab-pane .alert {
    border: 1px solid var(--border);
}

.profile-shell #support-list .card,
.profile-shell #support-chat .card {
    border-radius: 28px;
}

.profile-shell #support-list .card-body,
.profile-shell #support-chat .card-body {
    padding: 22px;
}

.profile-shell #support-chat textarea.form-control {
    min-height: 52px;
}

@media (min-width: 992px) {
    .profile-shell .col-lg-4 .card,
    .profile-shell .case-side .card {
        position: sticky;
        top: 112px;
    }
}

@media (max-width: 767.98px) {
    .profile-tabs-shell {
        padding: 8px;
        border-radius: 22px;
    }

    .profile-shell .card {
        border-radius: 24px;
    }

    .profile-shell .card-body,
    .profile-shell .card-header,
    .profile-shell .card-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.avatar-crop-canvas {
    width: 320px;
    height: 320px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.1);
    background: var(--bs-tertiary-bg,#f5f5f5);
    touch-action: none;
    user-select: none;
}

/* ===== AVATAR PREVIEW CIRCLE (UI ONLY) ===== */
.avatar-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-frame {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0,0,0,.08);
    position: relative;
    flex: 0 0 auto;
    background: var(--bs-tertiary-bg,#f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 46px;
    color: #888;
    user-select: none;
}

    .avatar-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
    }

.avatar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== AVATAR CROP CANVAS ===== */
.avatar-crop-canvas {
    width: 320px;
    height: 320px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.1);
    background: var(--bs-tertiary-bg,#f5f5f5);
    touch-action: none;
    user-select: none;
}

.form-help {
    font-size: .9rem;
    color: var(--bs-secondary-color,#6c757d);
}

.session-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-row-mobile {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 8px;
    padding: 14px;
    background: var(--bs-body-bg, #fff);
}

.session-meta-mobile {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    font-size: .92rem;
}

    .session-meta-mobile .label {
        color: var(--bs-secondary-color, #6c757d);
        display: block;
        font-size: .78rem;
        line-height: 1.2;
    }

.session-user-agent-mobile {
    color: var(--bs-secondary-color, #6c757d);
    font-size: .82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}