
:root{
    --pf-primary:#e57e24;
    --pf-primary-hover:#d96d12;
    --pf-primary-soft:#fff3e8;
    --pf-primary-border:#fed7aa;
    --pf-warning:#e57e24;
    --pf-success:#e57e24;
    --pf-dark:#211811;
    --pf-text:#4b3a2f;
    --pf-muted:#8a6f5a;
    --pf-border:#f1dfd2;
    --pf-bg:#f8f7f6;
    --pf-card:#ffffff;
    --pf-radius-xl:20px;
    --pf-radius-lg:16px;
}

/* ===== PAGE / LAYOUT ===== */
#main.profile-page-wrapper{
    margin:0 !important;
       padding:28px 0 52px;
margin-top:0 !important;
    min-height:100vh;
    background:
        radial-gradient(circle at top right,rgba(229,126,36,.08),transparent 25%),
        radial-gradient(circle at top left,rgba(229,126,36,.05),transparent 30%),
        #f8f7f6;
}
.ref-head{
    margin-top:32px;
}
.profile-page-wrapper{
    min-height:100vh;
}

.profile-shell{
    width:100%;
    max-width:1450px;
    margin:0 auto;
    padding:12px 24px 22px;
    box-sizing:border-box;
}

.profile-layout{
    display:flex;
    align-items:flex-start;
    gap:20px;
    width:100%;
    margin:0;
    padding:0;
}

.profile-left{
    width:32%;
    min-width:300px;
}

.profile-right{
    flex:1;
    min-width:0;
}

.profile-sidebar-card,
.profile-content-header,
.content-card{
    width:100%;
    overflow:hidden;
}

.profile-sidebar-card{
    position:sticky;
    top:18px;
}

.row.g-4{
    align-items:flex-start;
}

.col-xl-8.col-lg-7{
    min-width:0;
}

/* ===== TOPBAR / BREADCRUMB ===== */
.profile-topbar,
.profile-topbar-mobile,
.profile-topbar-desktop{
    width:100%;
    margin:0 0 8px !important;
}

.profile-topbar-mobile{
    display:none !important;
}

.profile-mobile-summary{
    display:none;
}

.profile-desktop-summary{
    display:block;
}

.page-breadcrumb{
    margin:0;
    padding:0;
    font-size:13px;
    line-height:1.45;
    color:#0f172a;
}

.page-breadcrumb a{
    color:#0f172a;
    text-decoration:none;
}

.page-breadcrumb a:hover{
    color:#e57e24 !important;
    text-decoration:none;
}

.page-breadcrumb .breadcrumb-current,
.breadcrumb-current{
    color:#0f172a;
    font-weight:700 !important;
}

/* ===== GENERAL LINKS / BUTTONS ===== */
a{
    text-decoration:none;
}

a:hover{
    color:#e57e24;
}

.btn-primary,
.btn-success,
.btn-warning,
.btn-info{
    background:#e57e24 !important;
    border-color:#e57e24 !important;
    color:#fff !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-info:hover{
    background:#d96d12 !important;
    border-color:#d96d12 !important;
    color:#fff !important;
}

.btn-outline-primary{
    color:#e57e24 !important;
    border-color:#e57e24 !important;
    background:transparent !important;
}

.btn-outline-primary:hover{
    background:#e57e24 !important;
    border-color:#e57e24 !important;
    color:#fff !important;
}

.btn-light{
    background:#fff3e8 !important;
    border-color:#fed7aa !important;
    color:#e57e24 !important;
}

.btn-light:hover{
    background:#fff0e1 !important;
    border-color:#fed7aa !important;
    color:#d96d12 !important;
}

.copy-trigger{
    color:inherit;
    text-decoration:none;
    cursor:pointer;
}

.copy-trigger:hover{
    color:#e57e24;
}

/* ===== EDIT INLINE ===== */
.edit-inline-btn-wrap{
    display:inline-flex;
    align-items:center;
    gap:5px;
    background:none;
    border:0;
    padding:0;
    cursor:pointer;
    max-width:100%;
    text-decoration:none !important;
}

.edit-inline-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:26px;
    border-radius:8px;
    border:1px solid #fdba74;
    background:#fff7ed;
    color:#ea580c;
    transition:.2s ease;
    cursor:pointer;
    flex-shrink:0;
}

.edit-inline-btn .material-icons{
    font-size:13px !important;
    line-height:1;
}

.edit-inline-btn-wrap:hover .edit-inline-btn{
    background:#ffedd5;
    transform:translateY(-1px);
    box-shadow:0 4px 10px rgba(234,88,12,.10);
}

.edit-inline-text{
    font-size:10px;
    line-height:1.3;
    color:#64748b;
    font-weight:600;
    white-space:nowrap;
}

.edit-inline-btn-wrap:hover .edit-inline-text{
    color:#ea580c;
}

.profile-name-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    flex-wrap:wrap;
}

.profile-name-edit-btn{
    flex-shrink:0;
    margin-top:2px;
}

/* ===== EDIT MODAL ===== */
.profile-edit-backdrop{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.52);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    z-index:999998;
}

.profile-edit-backdrop.active{
    display:block;
}

.profile-edit-panel{
    display:none;
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:min(940px,calc(100vw - 32px));
    max-height:88vh;
    background:#fff;
    border-radius:20px;
    box-shadow:0 24px 70px rgba(15,23,42,.18);
    z-index:999999;
    overflow:hidden;
    border:1px solid #e9edf3;
}

.profile-edit-panel.active{
    display:block;
}

.profile-edit-scroll{
    max-height:88vh;
    overflow:auto;
}

.profile-edit-header{
    padding:16px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background:#fff;
    border-bottom:1px solid #eef2f7;
}

.profile-edit-title{
    font-size:20px;
    font-weight:800;
    color:#0f172a;
}

.profile-edit-subtitle{
    font-size:12px;
    color:#64748b;
    margin-top:4px;
}

.profile-edit-close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:10px;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#334155;
    cursor:pointer;
    transition:.2s ease;
}

.profile-edit-close:hover{
    background:#fff7ed;
    border-color:#fdba74;
    color:#ea580c;
}

.profile-edit-body{
    padding:18px 20px 14px;
}

.profile-edit-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    align-items:start;
}

.profile-edit-field{
    min-width:0;
}

.profile-edit-field.full{
    grid-column:1 / -1;
}

.profile-edit-field label{
    font-size:12px;
    font-weight:700;
    margin-bottom:6px;
    color:#0f172a;
    display:block;
}

.inline-input,
.inline-textarea{
    width:100%;
    min-height:42px;
    padding:10px 12px;
    border-radius:11px;
    font-size:13px;
    background:#fff;
    border:1px solid #dbe2ea;
    outline:none;
    box-sizing:border-box;
    transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}

.inline-input:focus,
.inline-textarea:focus{
    border-color:#fb923c;
    box-shadow:0 0 0 4px rgba(249,115,22,.10);
}

.inline-input[readonly],
.inline-textarea[readonly]{
    background:#f8fafc;
    color:#64748b;
    cursor:not-allowed;
}

.inline-textarea{
    min-height:98px;
    resize:vertical;
}

.field-note{
    margin-top:5px;
    font-size:10px;
    color:#94a3b8;
}

.field-error{
    margin-top:5px;
    font-size:11px;
    line-height:1.4;
    color:#dc2626;
    font-weight:600;
}

.profile-edit-split{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:minmax(0,1.7fr) minmax(240px,.9fr);
    gap:14px;
    align-items:start;
}

.profile-edit-card{
    border:1px solid #eef2f7;
    background:#fff;
    border-radius:14px;
    padding:12px;
}

.profile-edit-card.soft{
    background:linear-gradient(180deg,#fff7ed 0%,#ffffff 100%);
    border:1px solid #fed7aa;
}

.profile-edit-avatar-stack{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:10px;
}

.profile-edit-avatar-preview{
    width:84px;
    height:84px;
    min-width:84px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #fff;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,23,42,.10);
}

.profile-edit-avatar-title{
    font-size:13px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:4px;
}

.profile-edit-avatar-note{
    margin:0;
    font-size:11px;
    line-height:1.5;
    color:#64748b;
}

.profile-edit-file-input{
    width:100%;
}

.profile-edit-remove-wrap{
    width:100%;
    display:flex;
    justify-content:center;
}

.profile-edit-checkbox{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:12px;
    color:#dc2626;
    cursor:pointer;
    margin-top:2px;
}

.profile-edit-counter-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-top:7px;
}

.inline-actions{
    display:flex;
    gap:8px;
    margin-top:10px;
    flex-wrap:wrap;
}

.profile-edit-footer{
    padding:12px 20px 16px;
}

.inline-save-btn{
    border:0;
    background:linear-gradient(135deg,#f59e0b,#ea580c);
    color:#fff;
    border-radius:10px;
    padding:10px 14px;
    font-weight:700;
    font-size:13px;
    box-shadow:0 8px 18px rgba(234,88,12,.16);
    transition:.2s ease;
}

.inline-cancel-btn{
    border:1px solid #e5e7eb;
    background:#fff;
    color:#334155;
    border-radius:10px;
    padding:10px 14px;
    font-weight:700;
    font-size:13px;
    transition:.2s ease;
}

/* ===== PROFILE HEADER / SIDEBAR ===== */
.profile-cover{
    height:146px;
    background:linear-gradient(135deg,#e57e24 0%,#f59e0b 55%,#f97316 100%);
    position:relative;
}

.profile-main-top{
    margin-top:-72px;
    padding-bottom:10px;
    position:relative;
    z-index:2;
}

.profile-avatar-wrap{
    display:flex;
        margin-top:-6px;

    justify-content:center;
    margin-bottom:12px;
}

.profile-avatar-main{
    width:112px;
    height:112px;
    object-fit:cover;
    border-radius:50%;
    background:#fff;
    border:5px solid #fff;
    box-shadow:0 14px 30px rgba(15,23,42,.14);
}

.profile-name{
    font-size:1.3rem;
    font-weight:800;
    color:var(--pf-dark);
}

.profile-short-desc{
    margin:8px auto;
    font-size:13px;
    color:#6b7280;
    line-height:1.45;
    max-width:250px;
}

.verified-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--pf-primary);
    font-size:.95rem;
    vertical-align:middle;
}

.user-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.35px;
}

.badge-admin{
    background:#fee2e2;
    color:#b91c1c;
}

.badge-ctv{
    background:#fef3c7;
    color:#b45309;
}

.badge-user{
    background:#e5e7eb;
    color:#374151;
}

.badge-vip{
    background:linear-gradient(135deg,#f59e0b,#f97316);
    color:#fff;
    box-shadow:0 4px 12px rgba(245,158,11,.4);
}

.rating-summary-modern{
    margin-top:10px;
    margin-bottom:6px;
}

.rating-number{
    display:inline-flex;
    align-items:center;
    gap:4px;
    background:#fff3e8;
    color:#e57e24;
    padding:4px 9px;
    border-radius:999px;
    font-weight:700;
    font-size:12px;
    border:1px solid #fed7aa;
}

.rating-number i{
    font-size:12px;
}

.rating-label{
    font-size:12px;
    color:var(--pf-muted);
    margin-top:6px;
}

.quick-stats-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.quick-stat-card{
    background:#f8fafc;
    border-radius:10px;
    padding:10px;
    text-align:center;
}

.quick-stat-value{
    font-size:1.2rem;
    font-weight:800;
    color:var(--pf-dark);
    line-height:1.1;
}

.quick-stat-label{
    margin-top:3px;
    font-size:12px;
    color:var(--pf-muted);
}

.action-buttons-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.btn-profile-action{
    font-weight:600;
    min-height:40px;
    font-size:13px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

/* ===== INFO CARDS ===== */
.info-section-card{
    background:#fff;
    border:1px solid #eef2f7;
    border-radius:18px;
    padding:14px;
}

.section-title{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    font-weight:700;
    font-size:15px;
    color:var(--pf-dark);
}

.section-title i{
    width:30px;
    height:30px;
    border-radius:9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff3e8;
    color:#e57e24;
    font-size:14px;
}

.contact-icons-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.contact-icon{
    width:38px;
    height:38px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    font-size:14px;
    transition:transform .2s ease,box-shadow .2s ease;
}

.contact-icon:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 18px rgba(15,23,42,.12);
}

.contact-fb{background:#1877f2;}
.contact-zalo{background:#0ea5e9;}
.contact-mail{background:#ef4444;}
.contact-web{background:#64748b;}

.info-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.info-item{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding-bottom:8px;
    border-bottom:1px dashed #e5e7eb;
    font-size:13px;
}

.info-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.info-item span{
    color:var(--pf-muted);
}

.info-item strong{
    color:var(--pf-dark);
    text-align:right;
    word-break:break-word;
}

.info-item-column{
    font-size:13px;
    color:var(--pf-text);
}

.verify-list{
    margin:0;
    padding-left:17px;
    color:var(--pf-text);
    font-size:13px;
}

.join-date-box{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:12px 14px;
    color:var(--pf-text);
    font-size:13px;
}

/* ===== HEADER STATS ===== */
.profile-content-header{
    background:linear-gradient(135deg,rgba(229,126,36,.08),rgba(245,158,11,.06)),#fff;
    border:1px solid #f3d7c2;
}

.page-mini-label{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:7px 12px;
    border-radius:999px;
    background:#fff3e8;
    color:#e57e24;
    font-size:13px;
    font-weight:800;
    letter-spacing:.45px;
    margin-bottom:8px;
}

.page-mini-label i{
    font-size:14px;
}

.header-stat-group{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.header-stat-box{
    min-width:88px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:10px 14px;
    text-align:center;
}

.header-stat-box strong{
    display:block;
    font-size:1.02rem;
    color:var(--pf-dark);
}

.header-stat-box span{
    font-size:11px;
    color:var(--pf-muted);
}

/* ===== CONTENT / EMPTY ===== */
.content-card-header{
    padding:16px 20px 0 20px;
}

.empty-box{
    text-align:center;
    padding:30px 18px;
    border:1px dashed #dbe4ee;
    border-radius:16px;
    background:#fafcff;
    color:var(--pf-muted);
    font-size:13px;
}

.empty-box i{
    font-size:24px;
    margin-bottom:10px;
    color:#94a3b8;
    display:block;
}

.empty-box-sm{
    padding:16px 12px;
    border-radius:12px;
}

.empty-box-sm i{
    font-size:18px;
    margin-bottom:7px;
}

.admin-rating-box{
    text-align:center;
}

.admin-rating-stars{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    font-size:18px;
}

/* ===== POSTS ===== */
.post-list-modern{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.post-card-modern{
    position:relative;
    border:1px solid #eef2f7;
    border-radius:16px;
    background:#fff;
    overflow:hidden;
    transition:all .25s ease;
}

.post-card-modern:hover{
    box-shadow:0 14px 35px rgba(15,23,42,.08);
    transform:translateY(-2px);
}

.post-edit-btn{
    position:absolute;
    top:9px;
    right:9px;
    width:30px;
    height:30px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.96);
    border:1px solid #f3d7c2;
    color:#e57e24;
    text-decoration:none;
    z-index:20;
    box-shadow:0 6px 16px rgba(15,23,42,.08);
    transition:all .2s ease;
    font-size:13px;
}

.post-edit-btn:hover{
    background:#e57e24;
    border-color:#e57e24;
    color:#fff;
}

.post-image-container{
    position:relative;
    height:100%;
    min-height:220px;
    background:#f8fafc;
}

.post-image{
    width:100%;
    height:100%;
    min-height:220px;
    object-fit:cover;
    display:block;
}

.post-image.no-image{
    min-height:220px;
    background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%);
}

.no-image-box{
    text-align:center;
    color:#94a3b8;
    font-size:13px;
}

.no-image-box i{
    font-size:26px;
    display:block;
}

.image-count-badge{
    position:absolute;
    right:10px;
    bottom:10px;
    background:rgba(15,23,42,.75);
    color:#fff;
    border-radius:999px;
    padding:5px 9px;
    font-size:11px;
    font-weight:700;
}

.post-content-section{
    padding:18px;
    height:100%;
    display:flex;
    flex-direction:column;
}

.post-meta{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
    margin-bottom:10px;
}

.category-badge,
.post-type-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:5px 9px;
    font-size:11px;
    font-weight:700;
}

.category-badge{
    background:#fff3e8;
    color:#e57e24;
}

.post-type-badge{
    background:#fff8f1;
    color:#c96a1c;
}

.post-time{
    color:#6b7280;
    font-size:12px;
}

.post-title{
    margin-bottom:8px;
}

.post-title a{
    color:#0f172a;
    text-decoration:none;
    font-weight:800;
    line-height:1.4;
    font-size:15px;
}

.post-title a:hover{
    color:#e57e24;
}

.post-description{
    color:#64748b;
    margin-bottom:12px;
    line-height:1.6;
    font-size:13px;
}

.post-price{
    display:inline-flex;
    align-items:center;
    width:fit-content;
    background:#fff3e8;
    color:#e57e24;
    border:1px solid #fed7aa;
    padding:7px 10px;
    border-radius:10px;
    font-weight:700;
    font-size:12px;
    margin-bottom:14px;
}

.post-footer{
    margin-top:auto;
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.post-stats{
    display:flex;
    gap:12px;
    color:#6b7280;
    font-size:13px;
}

.stat-item{
    display:inline-flex;
    align-items:center;
    gap:5px;
}

.like-btn{
    min-width:82px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:6px 10px;
    border-radius:9px;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#374151;
    font-size:13px;
    font-weight:500;
    transition:all .2s ease;
    cursor:pointer;
}

.like-btn:hover{
    background:#f9fafb;
    border-color:#d1d5db;
}

.like-btn.liked{
    background:#fff1f2;
    border-color:#f9a8d4;
    color:#e11d48;
}

.like-btn .heart-icon{
    color:#9ca3af;
}

.like-btn.liked .heart-icon{
    color:#e11d48;
}

.post-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:18px;
}

.post-pagination .page-link{
    min-width:36px;
    height:36px;
    padding:0 10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    border:1px solid #fed7aa;
    background:#fff;
    color:#e57e24;
    font-weight:700;
    font-size:13px;
    text-decoration:none;
    transition:all .2s ease;
}

.post-pagination .page-link:hover{
    background:#fff3e8;
    border-color:#e57e24;
}

.post-pagination .page-link.active{
    background:#e57e24;
    border-color:#e57e24;
    color:#fff;
}

.post-action-group{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
}

.btn-go-forum{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:8px 14px;
    border-radius:12px;
    background:#fff;
    border:1px solid #fed7aa;
    color:#e57e24;
    font-weight:700;
    font-size:13px;
    text-decoration:none;
    transition:all .2s ease;
    margin-left:4px;
}

.btn-go-forum:hover{
    background:#fff3e8;
    border-color:#e57e24;
    color:#d96d12;
    text-decoration:none;
}

/* ===== REVIEWS ===== */
.review-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.review-item{
    padding:16px;
    border:1px solid #edf2f7;
    border-radius:16px;
    background:#fff;
}

.review-avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #f1f5f9;
}

.review-top{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:flex-start;
    margin-bottom:8px;
    flex-wrap:wrap;
}

.review-stars{
    white-space:nowrap;
    font-size:13px;
}

.review-comment{
    color:var(--pf-text);
    line-height:1.65;
    font-size:13px;
}

.review-form-wrap{
    animation:fadeInUp .25s ease;
}

.review-form-box{
    background:linear-gradient(180deg,#fffdf7 0%,#fff7ed 100%);
    padding:14px;
    border-radius:16px;
    border:1px solid #fed7aa;
}

.sidebar-review-card{
    padding:12px;
}

.review-list-sidebar{
    display:flex;
    flex-direction:column;
    gap:10px;
    max-height:420px;
    overflow-y:auto;
    padding-right:4px;
}

.review-item-sidebar{
    padding:12px;
    border-radius:14px;
}

.review-avatar-sidebar{
    width:38px;
    height:38px;
}

.review-comment-sidebar{
    font-size:12px;
    line-height:1.55;
    margin-top:5px;
}

.review-form-box-sidebar{
    padding:12px;
    border-radius:14px;
}

.review-form-box-sidebar .form-label{
    font-size:12px;
    margin-bottom:5px;
}

.review-form-box-sidebar textarea.form-control{
    font-size:13px;
    min-height:88px;
}

.star-rating-inline{
    display:flex;
    flex-direction:row-reverse;
    justify-content:flex-end;
    gap:3px;
}

.star-rating-inline input{
    display:none;
}

.star-rating-inline label{
    font-size:22px;
    color:#d1d5db;
    cursor:pointer;
    transition:.2s;
}

.star-rating-inline label:hover,
.star-rating-inline label:hover ~ label,
.star-rating-inline input:checked ~ label{
    color:#f59e0b;
}

.review-tag-grid{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.review-tag-item{
    position:relative;
    cursor:pointer;
    margin:0;
}

.review-tag-item input{
    display:none;
}

.review-tag-item span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 10px;
    border-radius:999px;
    border:1px solid #fed7aa;
    background:#fff;
    color:#8a6f5a;
    font-size:12px;
    font-weight:600;
    transition:all .2s ease;
}

.review-tag-item input:checked + span{
    background:#fff3e8;
    border-color:#e57e24;
    color:#e57e24;
    box-shadow:0 0 0 3px rgba(229,126,36,.08);
}

.review-tags-view{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:5px;
}

.review-view-tag{
    display:inline-flex;
    align-items:center;
    padding:5px 8px;
    border-radius:999px;
    background:#fff3e8;
    border:1px solid #fed7aa;
    color:#e57e24;
    font-size:11px;
    font-weight:700;
}

/* ===== POPUPS / TOAST ===== */
.review-popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(17,24,39,0.45);
    display:none;
    align-items:center;
    justify-content:center;
    padding:16px;
    z-index:100000;
}

.review-popup-overlay.show{
    display:flex;
}

.review-popup-box{
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 25px 60px rgba(15,23,42,0.24);
    width:92%;
    max-width:500px;
    padding:24px 20px 18px;
    position:relative;
    text-align:center;
    animation:reviewPopupIn .2s ease;
}

.review-popup-close{
    position:absolute;
    top:9px;
    right:12px;
    border:0;
    background:transparent;
    color:#9ca3af;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    transition:.2s ease;
}

.review-popup-close:hover{
    color:#ef4444;
}

.review-popup-icon{
    width:56px;
    height:56px;
    border-radius:999px;
    margin:0 auto 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
}

.review-popup-icon.success{
    background:#ecfdf5;
    color:#10b981;
}

.review-popup-icon.warning{
    background:#fff7ed;
    color:#f97316;
}

.review-popup-icon.error{
    background:#fef2f2;
    color:#ef4444;
}

.review-popup-title{
    font-size:22px;
    line-height:1.3;
    font-weight:800;
    color:#374151;
    margin-bottom:10px;
}

.review-popup-message{
    color:#4b5563;
    font-size:14px;
    line-height:1.7;
    text-align:center;
    margin-bottom:18px;
    white-space:pre-line;
}

.review-popup-button{
    border:0;
    background:#f97316;
    color:#fff;
    padding:10px 20px;
    border-radius:10px;
    font-weight:700;
    font-size:13px;
    transition:.2s ease;
}

.review-popup-button:hover{
    background:#ea580c;
}

.copy-toast{
    position:fixed;
    right:18px;
    bottom:18px;
    background:#1f2937;
    color:#fff;
    padding:9px 12px;
    border-radius:9px;
    font-size:13px;
    font-weight:600;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:all .25s ease;
    z-index:9999;
}

.copy-toast.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* ===== INSURANCE BADGE ===== */
.insurance-badge{
    position:absolute;
    top:12px;
    right:14px;
    display:flex;
    align-items:flex-start;
    gap:10px;
    max-width:280px;
    padding:10px 12px;
    border-radius:14px;
    background:linear-gradient(180deg,rgba(240,255,248,.96) 0%,rgba(227,252,241,.96) 100%);
    border:1px solid #8ee2bf;
    box-shadow:0 10px 22px rgba(15,23,42,.12);
    color:#047857;
    z-index:3;
}

.insurance-badge::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:14px;
    pointer-events:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}

.insurance-icon{
    width:30px;
    height:30px;
    min-width:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:linear-gradient(180deg,#d7faea 0%,#c2f3dd 100%);
    color:#10b981;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
    flex-shrink:0;
}

.insurance-icon i{
    font-size:13px;
    line-height:1;
}

.insurance-text{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    text-align:left;
    line-height:1.25;
    flex:1;
}

.insurance-line{
    display:block;
    width:100%;
    word-break:break-word;
}

.insurance-line-top{
    font-size:12px;
    font-weight:700;
    margin:0;
    color:#047857;
}

.insurance-line-bottom{
    font-size:12px;
    font-weight:600;
    margin-top:2px;
    color:#0f766e;
}

.insurance-line-bottom strong{
    color:#065f46;
    font-weight:800;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes reviewPopupIn{
    from{
        opacity:0;
        transform:translateY(8px) scale(.98);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

/* ===== TABLET ===== */
@media (max-width:991px){
    .profile-edit-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .profile-edit-split{
        grid-template-columns:1fr;
    }

    .profile-shell{
              padding:8px 12px 16px;

    }

    .profile-layout{
        flex-direction:column;
        gap:18px;
    }

    .profile-left,
    .profile-right{
        width:100%;
        min-width:0;
    }

    .profile-sidebar-card{
        position:relative;
        top:0;
    }
}

/* ===== MOBILE ===== */
@media (max-width:768px){
    .profile-edit-panel{
        width:calc(100vw - 12px);
        max-height:92vh;
        border-radius:16px;
    }

    .profile-edit-scroll{
        max-height:92vh;
    }

    .profile-edit-header{
        padding:13px 13px 11px;
    }

    .profile-edit-body{
        padding:13px;
    }

    .profile-edit-grid{
        grid-template-columns:1fr;
        gap:10px;
    }

    .profile-edit-footer{
        padding:11px 13px 13px;
        flex-direction:column-reverse;
    }

    .inline-save-btn,
    .inline-cancel-btn{
        width:100%;
    }
}


@media (min-width:992px){
    .content-card > .card-body{
        padding:14px !important;
    }

    .post-list-modern{
        display:grid !important;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:12px;
        align-items:stretch;
    }

    .post-card-modern{
        height:100%;
        border-radius:16px;
        overflow:hidden;
    }

    .post-card-modern > .row.g-0{
        display:flex !important;
        flex-direction:column !important;
        height:100%;
    }

    .post-card-modern > .row.g-0 > [class*="col-md-4"],
    .post-card-modern > .row.g-0 > [class*="col-md-8"]{
        width:100% !important;
        max-width:100% !important;
        flex:0 0 auto !important;
    }

    .post-image-container{
        width:100% !important;
        height:125px !important;
        min-height:125px !important;
    }

    .post-image,
    .post-image.no-image{
        width:100% !important;
        height:125px !important;
        min-height:125px !important;
        object-fit:cover;
    }

    .no-image-box{
        font-size:12px;
    }

    .no-image-box i{
        font-size:22px;
    }

    .post-content-section{
        padding:12px !important;
        height:100%;
        display:flex;
        flex-direction:column;
    }

    .post-meta{
        display:flex;
        align-items:center;
        flex-wrap:wrap;
        gap:5px;
        margin-bottom:6px;
    }

    .category-badge,
    .post-type-badge{
        padding:3px 7px;
        font-size:9px;
    }

    .post-time{
        font-size:10px;
    }

    .post-title{
        margin-bottom:5px;
        min-height:38px;
    }

    .post-title a{
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
        font-size:14px;
        line-height:1.35;
    }

    .post-description{
        margin-bottom:8px;
        font-size:12px;
        line-height:1.45;
        display:-webkit-box;
        -webkit-line-clamp:3;
        -webkit-box-orient:vertical;
        overflow:hidden;
        min-height:52px;
    }

    .post-price{
        padding:4px 8px;
        margin-bottom:8px;
        font-size:10px;
    }

    .post-footer{
        margin-top:auto;
        display:grid !important;
        grid-template-columns:minmax(0,1fr) auto;
        align-items:center;
        gap:6px;
        flex-wrap:nowrap !important;
    }

    .post-stats{
        display:flex !important;
        align-items:center;
        gap:5px;
        flex-wrap:wrap;
        min-width:0;
        font-size:11px;
    }

    .like-btn{
        min-width:0;
        padding:4px 7px;
        font-size:10px;
    }

    .stat-item{
        display:inline-flex;
        align-items:center;
        gap:3px;
        font-size:11px;
        white-space:nowrap;
    }

    .post-footer .btn{
        padding:4px 7px;
        font-size:10px;
        line-height:1.1;
        white-space:nowrap;
        margin:0;
        align-self:center;
    }
}
@media (max-width:767.98px){
    .profile-main-top{
        margin-top:-58px !important;
        padding-top:6px !important;
    }

    .profile-avatar-wrap{
        margin-top:-10px !important;
        margin-bottom:10px !important;
    }

    .profile-avatar-main{
        width:96px;
        height:96px;
    }

    .header-stat-group{
        width:100%;
    }

    .header-stat-box{
        flex:1;
        min-width:unset;
    }

    .quick-stats-grid{
        grid-template-columns:1fr 1fr;
    }

    .info-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .info-item strong{
        text-align:left;
    }

    .review-top{
        flex-direction:column;
    }

    .insurance-badge{
        top:8px;
        right:8px;
        max-width:calc(100% - 16px);
        padding:9px 10px;
        border-radius:12px;
    }

    .insurance-icon{
        width:28px;
        height:28px;
        min-width:28px;
        border-radius:9px;
    }

    .insurance-icon i{
        font-size:12px;
    }

    .insurance-line-top,
    .insurance-line-bottom{
        font-size:11px;
    }

    .profile-topbar{
        margin-bottom:8px;
        align-items:center !important;
    }

    .profile-topbar .page-breadcrumb{
        font-size:14px;
        line-height:1.3;
    }

    .profile-topbar .btn{
        padding:6px 10px;
        font-size:13px;
        line-height:1.2;
        white-space:nowrap;
    }

    .profile-topbar-desktop{
        display:none !important;
    }

    .profile-mobile-summary{
        display:block;
        width:100%;
        order:-2;
        margin-bottom:10px !important;
    }

    .profile-desktop-summary{
        display:none !important;
    }

    .profile-mobile-summary .card-body{
        padding:12px !important;
    }

    .profile-mobile-summary .page-mini-label{
        margin-bottom:0;
        font-size:12px;
        padding:6px 10px;
    }

    .profile-mobile-summary .page-mini-label i{
        font-size:14px;
    }

    .profile-mobile-summary .header-stat-group{
        width:100%;
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:8px;
    }

    .profile-mobile-summary .header-stat-box{
        min-width:0;
        padding:10px 6px;
        border-radius:14px;
    }

    .profile-mobile-summary .header-stat-box strong{
        font-size:1.2rem;
        line-height:1.1;
    }

    .profile-mobile-summary .header-stat-box span{
        font-size:11px;
        line-height:1.25;
    }

    .post-card-modern{
        padding:8px;
        border-radius:16px;
        overflow:hidden;
    }

    .post-card-modern > .row.g-0{
        display:grid;
        grid-template-columns:58px minmax(0,1fr);
        gap:8px;
        align-items:center;
        margin:0;
    }

    .post-card-modern > .row.g-0 > [class*="col-md-4"],
    .post-card-modern > .row.g-0 > [class*="col-md-8"]{
        width:auto;
        max-width:none;
        min-width:0;
        padding:0 !important;
        margin:0;
    }

    .post-image-container{
        position:relative;
        width:58px;
        height:58px;
        min-width:58px;
        min-height:58px;
        border-radius:9px;
        overflow:hidden;
        background:#f8fafc;
    }

    .post-image-container > a{
        display:block;
        width:100%;
        height:100%;
    }

    .post-image,
    .post-image.no-image{
        display:block;
        width:100% !important;
        height:100% !important;
        min-height:0 !important;
        object-fit:cover;
        object-position:center;
        border-radius:0;
    }

    .post-image.no-image{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .no-image-box{
        font-size:10px;
        line-height:1.2;
    }

    .no-image-box i{
        font-size:16px;
        margin-bottom:3px;
    }

    .image-count-badge{
        right:3px;
        bottom:3px;
        padding:2px 4px;
        font-size:8px;
        border-radius:999px;
    }

    .post-content-section{
        padding:0;
        min-width:0;
        display:flex;
        flex-direction:column;
    }

    .post-meta{
        display:flex;
        align-items:center;
        gap:3px;
        flex-wrap:wrap;
        margin-bottom:3px;
    }

    .category-badge,
    .post-type-badge{
        padding:2px 5px;
        font-size:9px;
    }

    .post-time{
        font-size:10px;
    }

    .post-title{
        margin-bottom:3px;
        font-size:13px;
        line-height:1.25;
    }

    .post-title a{
        display:-webkit-box;
        -webkit-line-clamp:1;
        -webkit-box-orient:vertical;
        overflow:hidden;
        font-size:13px;
    }

    .post-description{
        margin-bottom:5px;
        font-size:11px;
        line-height:1.35;
        color:#64748b;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
        word-break:break-word;
    }

    .post-price{
        padding:3px 6px;
        font-size:9px;
        margin-bottom:5px;
        border-radius:8px;
    }

    .post-footer{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:5px;
        flex-wrap:wrap;
        margin-top:3px;
    }

    .post-stats{
        display:flex;
        align-items:center;
        gap:5px;
        flex-wrap:wrap;
        min-width:0;
        flex:1 1 auto;
    }

    .like-btn{
        min-width:0;
        padding:4px 7px;
        font-size:10px;
        line-height:1.1;
        gap:3px;
        border-radius:9px;
        white-space:nowrap;
    }

    .stat-item{
        display:inline-flex;
        align-items:center;
        gap:3px;
        font-size:10px;
        white-space:nowrap;
    }

    .post-footer .btn{
        padding:4px 7px;
        font-size:10px;
        line-height:1.1;
        border-radius:9px;
        white-space:nowrap;
        margin-left:0;
    }
}
