.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* default */
.logo-full {
    display: block;
}

.logo-small {
    display: none;
}

/* mini sidebar */
.mini-sidebar .logo-full {
    display: none;
}

.mini-sidebar .logo-small {
    display: block;
}

/* image control */
.logo-full img {
    max-width: 180px;
}

.logo-small img {
    max-height: 30px;
}

/* =============  statistics DASHBOARD CARD UI ============= */
.statistics-card {
    position: relative;
    padding: 22px;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all .35s ease;

    /* Mobile Gap Fix */
    height: 100%;
    margin-bottom: 4px;
}

/* Hover */
.statistics-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Glow Shape */
.statistics-card::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -70px;
    right: -70px;
    opacity: .18;
    z-index: -1;
}

/* Small Decoration */
.statistics-card::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    bottom: -40px;
    left: -40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    z-index: -1;
}

/* TOP */
.statistics-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.statistics-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #555;
}

/* ICON BOX */
.statistics-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, .5);
}

/* Icon Shine */
.statistics-icon::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(120deg,
            transparent 20%,
            rgba(255, 255, 255, .5),
            transparent 80%);
    transform: rotate(25deg);
    left: -120%;
    top: 0;
    transition: .6s;
}

.statistics-card:hover .statistics-icon::before {
    left: 120%;
}

/* COUNT */
.statistics-count {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
    word-break: break-word;
}

.statistics-text {
    font-size: 13px;
    font-weight: 500;
    color: #7b7b7b;
    display: block;
}

/* =========================
TOTAL CARD
========================= */

.total-statistics-card {
    background: linear-gradient(145deg, #fffdf4, #ffffff);
}

.total-statistics-card::before {
    background: #ffc107;
}

.total-icon {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #fff;
}

.total-statistics-card .statistics-count {
    color: #e6a700;
}

/* =========================
ACTIVE CARD
========================= */

.active-statistics-card {
    background: linear-gradient(145deg, #f2fff7, #ffffff);
}

.active-statistics-card::before {
    background: #198754;
}

.active-icon {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
}

.active-statistics-card .statistics-count {
    color: #0f9f61;
}

/* =========================
INACTIVE CARD
========================= */

.inactive-statistics-card {
    background: linear-gradient(145deg, #fff5f5, #ffffff);
}

.inactive-statistics-card::before {
    background: #dc3545;
}

.inactive-icon {
    background: linear-gradient(135deg, #ff6b81, #e11d48);
    color: #fff;
}

.inactive-statistics-card .statistics-count {
    color: #dc3545;
}

/* =========================
MOBILE RESPONSIVE
========================= */

@media (max-width: 767px) {

    .statistics-card {
        padding: 18px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .statistics-top {
        margin-bottom: 18px;
    }

    .statistics-label {
        font-size: 12px;
    }

    .statistics-count {
        font-size: 32px;
    }

    .statistics-text {
        font-size: 12px;
    }

    .statistics-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 20px;
        border-radius: 12px;
    }
}

/* Mobile Card Spacing Fix */

.row.g-3 {
    --bs-gutter-y: 1rem;
}

@media (max-width: 767px) {

    .row.g-3>[class*="col-"] {
        margin-bottom: 16px;
    }

    .statistics-card {
        margin-bottom: 0;
    }

}

/* Button */
/* =========== | BUTTON BASE STYLES | =========== */
.btn-ui {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border: 0;
    outline: none;
    border-radius: 10px;
    overflow: hidden;
    isolation: isolate;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: all .28s ease;
    text-decoration: none !important;
}

/* =========== | CONTENT STYLES | =========== */
.btn-ui-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ui-icon {
    font-size: 17px;
}

/* =========== | ANIMATED GLOW EFFECT | =========== */
.btn-ui-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
    transform: rotate(25deg);
    animation: glowMove 5s linear infinite;
    z-index: 1;
}

@keyframes glowMove {
    0% {
        transform: translateX(-120%) rotate(25deg);
    }

    100% {
        transform: translateX(120%) rotate(25deg);
    }
}

/* =========== | PRIMARY BUTTON STYLES | =========== */
.btn-ui-primary {
    color: #fff;
    background: linear-gradient(135deg, #000000 0%, #111827 20%, #1f2937 45%, #374151 65%, #4b5563 100%);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .08);
}

/* =========== | TOP GLOSS EFFECT | =========== */
.btn-ui-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 45%);
    z-index: 0;
}

/* =========== | SHINE EFFECT | =========== */
.btn-ui-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 80%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: rotate(25deg);
    transition: .9s ease;
}

/* =========== | HOVER STYLES | =========== */
.btn-ui-primary:hover {
    transform: translateY(-3px) scale(1.01);
    background: linear-gradient(135deg, #050505 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .38);
    color: #fff;
}

/* =========== | SHINE MOVE ON HOVER | =========== */
.btn-ui-primary:hover::after {
    left: 150%;
}

/* =========== | CLICK | =========== */
.btn-ui-primary:active {
    transform: scale(.97);
}

/* =========== | DISABLED BUTTON STYLES | =========== */
.btn-ui:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none !important;
}

/* =========== | SUCCESS BUTTON STYLES | =========== */
.btn-ui-success {
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #166534);
}

/* =========== | DANGER BUTTON STYLES | =========== */
.btn-ui-danger {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
}

/* =========== | WARNING BUTTON STYLES | =========== */
.btn-ui-warning {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

/* =========== | DARK BUTTON STYLES | =========== */
.btn-ui-dark {
    color: #fff;
    background: linear-gradient(135deg, #020617, #111827);
}

/* ============================================
     NEWS CARD LIST
     ============================================ */
.news-manager {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ============================================
        CARD
    ============================================ */
.news-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
    transition: .35s;
    border: 1px solid #edf1f5;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

/* ============================================
        IMAGE
    ============================================ */
.news-card-image {
    width: 260px;
    min-width: 260px;
    overflow: hidden;
    background: #eee;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.news-card:hover img {
    transform: scale(1.06);
}

/* ============================================
        BODY
    ============================================ */
.news-card-body {
    flex: 1;
    padding: 10px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ============================================
        HEADER
    ============================================ */
.news-card-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.news-title {
    margin: 0;
    font-size: 23px;
    line-height: 1.5;
    font-weight: 700;
}

.news-title a {
    color: #222;
    text-decoration: none;
}

.news-title a:hover {
    color: #0d6efd;
}

/* ============================================
        META
    ============================================ */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 5px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.category {
    background: #edf7ff;
    color: #0d6efd;
}

.subcategory {
    background: #fff3e7;
    color: #ff7300;
}

.date {
    background: #eefcf5;
    color: #169c5d;
}

/* ============================================
        FOOTER
    ============================================ */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* ============================================
        AUTHOR
    ============================================ */
.author-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-box img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
}

.author-name {
    display: block;
    font-weight: 700;
    color: #222;
}

.author-box small {
    color: #777;
}

/* ============================================
        ACTION AREA
    ============================================ */
.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

/* ============================================
        PREMIUM STATUS TOGGLE (FIXED THUMB POSITION)
    ============================================ */
.btn-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-switch {
    display: none;
}

.status-slider {
    position: relative;
    display: block;
    width: 110px;
    height: 42px;
    border-radius: 10px;
    background: #dc3545;
    cursor: pointer;
    transition: .35s ease;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}
/* ===== Featured Toggle Switch ===== */
.form-check.form-switch {
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ---- thumb (white circle) ---- */
.status-slider::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 6px;
    transition: .35s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    z-index: 3;
}

/* checked state: move thumb to right keeping right padding (10px) */
.status-switch:checked+.status-slider {
    background: #16a34a;
}

.status-switch:checked+.status-slider::before {
    left: calc(100% - 22px - 10px);
}

.status-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .4px;
    transition: .3s;
    z-index: 2;
    user-select: none;
}

.status-text.on {
    left: 12px;
    opacity: 0;
}

.status-text.off {
    right: 12px;
    opacity: 1;
}

.status-switch:checked+.status-slider .status-text.on {
    opacity: 1;
}

.status-switch:checked+.status-slider .status-text.off {
    opacity: 0;
}

.status-label {
    font-size: 14px;
    font-weight: 700;
}

.status-label.active {
    color: #16a34a;
}

.status-label.inactive {
    color: #dc2626;
}

/* ============================================
        EDIT / DELETE BUTTONS
    ============================================ */
.btn-edit,
.btn-delete {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: .3s;
    flex-shrink: 0;
}

.btn-edit {
    background: #0d6efd;
}

.btn-edit:hover {
    background: #0849b7;
}

.btn-delete {
    background: #dc3545;
}

.btn-delete:hover {
    background: #b91c1c;
}

/* ============================================
        EMPTY STATE
    ============================================ */
.empty-news {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
}

.empty-news i {
    font-size: 65px;
    color: #b8b8b8;
}

.empty-news h3 {
    margin: 20px 0;
}

/* ============================================
        RESPONSIVE
    ============================================ */

/* ===========================
        Tablet (<=991px)
    =========================== */
@media (max-width: 991px) {
    .news-manager {
        gap: 18px;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card-image {
        width: 100%;
        min-width: 100%;
        height: 240px;
    }

    .news-card-body {
        padding: 18px;
    }

    .news-card-header {
        display: block;
    }

    .news-title {
        font-size: 20px;
        line-height: 1.5;
    }

    .news-meta {
        gap: 10px;
        margin: 15px 0;
    }

    .meta-item {
        font-size: 13px;
        padding: 7px 12px;
    }

    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .table-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .author-box {
        width: 100%;
    }

    .btn-status {
        width: 100%;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .btn-edit,
    .btn-delete {
        flex: 1;
        width: 100%;
        height: 46px;
        border-radius: 10px;
        font-size: 17px;
    }

    /* tablet toggle size */
    .status-toggle,
    .status-slider {
        height: 46px;
        width: 110px;
        min-width: 110px;
    }

    .status-slider::before {
        top: 8px;
        left: 8px;
        width: 30px;
        height: 30px;
    }

    .status-switch:checked+.status-slider::before {
        left: calc(100% - 30px - 8px);
    }
}

/* ===========================
        Small tablet / large phone (<=768px)
    =========================== */
@media (max-width: 768px) {
    .btn-status {
        width: 100%;
        justify-content: center;
    }

    .status-toggle,
    .status-slider {
        width: 100px;
        min-width: 100px;
        height: 42px;
        border-radius: 10px;
    }

    .status-slider::before {
        width: 26px;
        height: 26px;
        top: 8px;
        left: 8px;
    }

    .status-switch:checked+.status-slider::before {
        left: calc(100% - 26px - 8px);
    }

    .status-text {
        font-size: 10px;
    }

    .status-text.on {
        left: 10px;
    }

    .status-text.off {
        right: 10px;
    }
}

/* ===========================
        MOBILE (<=576px) – MAIN FIXES
    =========================== */
@media (max-width: 576px) {
    .news-card {
        border-radius: 12px;
    }

    .news-card-image {
        height: 190px;
    }

    .news-card-body {
        padding: 15px;
    }

    .news-title {
        font-size: 17px;
        line-height: 1.6;
    }

    /* ---- META: category & subcategory CENTERED ---- */
    .news-meta {
        gap: 8px;
        justify-content: center;
    }

    .meta-item {
        font-size: 12px;
        padding: 6px 10px;
    }

    .category,
    .subcategory {
        flex: 0 1 auto;
        width: auto;
    }

    .date {
        flex: 1 1 100%;
        justify-content: center;
    }

    /* ---- FOOTER ---- */
    .news-footer {
        gap: 15px;
    }

    .author-box {
        gap: 10px;
    }

    .author-box img {
        width: 42px;
        height: 42px;
    }

    .author-name {
        font-size: 14px;
    }

    .author-box small {
        font-size: 12px;
    }

    /* ========================================
        ACTION BAR: 50% | 25% | 25%  (grid)
        ======================================== */
    .table-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 10px;
        justify-content: space-between;
        align-items: center;
    }

    /* ---- STATUS (toggle) – 50% ---- */
    .btn-status {
        width: 100%;
        margin-bottom: 0;
        justify-content: center;
        gap: 6px;
        border-bottom: none;
        padding-bottom: 0;
    }

    .status-label {
        font-size: 12px;
        font-weight: 700;
    }

    /* Toggle fills grid cell, thumb size = half of button height */
    .status-toggle,
    .status-slider {
        width: 100%;
        min-width: unset;
        height: 44px;
        border-radius: 10px;
    }

    /* Thumb = ½ of button height (44px → 22px), padding 11px */
    .status-slider::before {
        width: 22px;
        height: 22px;
        top: 11px;
        left: 11px;
        border-radius: 6px;
    }

    .status-switch:checked+.status-slider::before {
        left: calc(100% - 22px - 11px);
    }

    .status-text {
        font-size: 10px;
        letter-spacing: .2px;
    }

    .status-text.on {
        left: 8px;
    }

    .status-text.off {
        right: 8px;
    }

    /* ---- EDIT & DELETE (25% each) ---- */
    .btn-edit,
    .btn-delete {
        width: 100%;
        flex: none;
        height: 44px;
        border-radius: 10px;
        font-size: 16px;
    }

    .status-label .label-text {
        display: inline;
    }
}

/* ===========================
        EXTRA SMALL (<=380px)
    =========================== */
@media (max-width: 380px) {
    .news-card-image {
        height: 170px;
    }

    .news-title {
        font-size: 16px;
    }

    .table-actions {
        gap: 8px;
    }

    .status-toggle,
    .status-slider {
        height: 40px;
    }

    .status-slider::before {
        width: 20px;
        height: 20px;
        top: 10px;
        left: 10px;
    }

    .status-switch:checked+.status-slider::before {
        left: calc(100% - 20px - 10px);
    }

    .btn-edit,
    .btn-delete {
        height: 40px;
        font-size: 14px;
    }

    .status-text {
        font-size: 9px;
    }

    .status-label {
        font-size: 11px;
    }
}

/*=========================================
    Delete Modal
=========================================*/
.delete-modal {
    text-align: center;
}

.delete-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #212529;
}

.delete-desc {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
}

.delete-news-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center !important;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    margin-bottom: 14px;
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
}

.delete-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff8e6;
    color: #c77d00;
    font-size: 13px;
}

.delete-warning i {
    font-size: 14px;
}

/*=========================================
    SweetAlert
=========================================*/
.swal2-popup {
    border-radius: 16px !important;
    padding: .5rem !important;
}

.swal2-actions {
    gap: 10px;
    margin-top: 1rem !important;
}

.swal2-confirm,
.swal2-cancel {
    padding: 5px 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.swal2-confirm i,
.swal2-cancel i {
    font-size: 13px;
    margin-right: 4px;
}


/*==========================================
    PREMIUM ACTION COLUMN
==========================================*/

.action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 58px;
}

.action-status {
    display: flex;
    align-items: center;
}

.action-status.disabled {
    opacity: .55;
    pointer-events: none;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*==========================================
    BUTTON
==========================================*/

.action-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 10px;

    color: #fff;
    font-size: 18px;

    transition: .25s;

    text-decoration: none;
}

.action-btn i {
    line-height: 1;
}

.action-btn.edit {
    background: #10b981;
}

.action-btn.edit:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, .35);
}

.action-btn.delete {
    background: #ef4444;
}

.action-btn.delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, .35);
}

/*==========================================
    MOBILE
==========================================*/

@media(max-width:768px) {

    .action-group {
        flex-direction: column;
        gap: 10px;
    }

    .action-buttons {
        justify-content: center;
    }

}

.account-title::after {
    background-color: #f43b48;
    content: "";
    display: block;
    height: 2px;
    margin: 10px auto 0;
    width: 50px;
    animation: expandWidth 0.8s ease-out forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 50px;
        opacity: 1;
    }
}
/*=========================================================
    Password Rules Checklist
=========================================================*/

.password-rules {
    margin: 10px 0 0;
    padding: 12px 14px;
    background-color: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    list-style: none;
}

.password-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #dc3545;
    transition: color 0.25s ease;
}

.password-rules li:not(:last-child) {
    margin-bottom: 4px;
}

.password-rules li i {
    font-size: 9px;
    width: 14px;
    text-align: center;
    transition: transform 0.25s ease, color 0.25s ease;
}

/* পূরণ হলে সবুজ + ছোট বাউন্স ইফেক্ট */
.password-rules li.valid {
    color: #16a34a;
}

.password-rules li.valid i {
    font-size: 13px;
    transform: scale(1.1);
}

/* Optional: hover এ হালকা হাইলাইট */
.password-rules li:hover {
    opacity: 0.85;
}

/*=========================================================
    Unique Stat Cards
=========================================================*/

.stats-row {
    row-gap: 20px;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* Left accent bar */
.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

/* Icon box */
.stat-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    z-index: 1;
}

.stat-card-body {
    z-index: 1;
    line-height: 1.2;
}

.stat-card-body h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 3px;
    color: #1f2937;
}

.stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #8a8f98;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Decorative background glow circle */
.stat-card-glow {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    right: -25px;
    top: -25px;
    opacity: 0.08;
    z-index: 0;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-card-glow {
    transform: scale(1.3);
}

/*=====================================
    Color Variants
=====================================*/

.stat-card-blue::before   { background: #3b82f6; }
.stat-card-blue .stat-card-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-card-blue .stat-card-glow { background: #3b82f6; }

.stat-card-green::before   { background: #16a34a; }
.stat-card-green .stat-card-icon { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-card-green .stat-card-glow { background: #16a34a; }

.stat-card-red::before   { background: #ef4444; }
.stat-card-red .stat-card-icon { background: linear-gradient(135deg, #f87171, #ef4444); }
.stat-card-red .stat-card-glow { background: #ef4444; }

.stat-card-purple::before   { background: #a855f7; }
.stat-card-purple .stat-card-icon { background: linear-gradient(135deg, #c084fc, #a855f7); }
.stat-card-purple .stat-card-glow { background: #a855f7; }

/*=====================================
    Skeleton Loader
=====================================*/

.skeleton-loader {
    display: inline-block;
    width: 50px;
    height: 22px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.2s infinite;
    border-radius: 5px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/*=====================================
    Mobile Responsive
=====================================*/

@media (max-width: 576px) {
    .stat-card {
        padding: 16px;
        gap: 12px;
    }

    .stat-card-icon {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .stat-card-body h3 {
        font-size: 21px;
    }
}

/* =========================================================
   CUSTOM PROFILE HEADER
========================================================= */
.custom-profile-header {
    padding: 0 !important;
    background: #fff;
    border: 0 !important;
}


/* ================= MAIN PROFILE ================= */
.profile-view-custom {
    width: 100%;
}

/* ================= PROFILE TOP ================= */
.profile-top {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px 30px;
    border-bottom: 1px solid #eeeeee;
}

/* ================= AVATAR ================= */
.profile-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
}
.profile-avatar {
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Online / Active indicator */
.profile-status-dot {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid #fff;
}

/* ================= MAIN INFORMATION ================= */
.profile-main-info {
    flex: 1;
    min-width: 0;
}
.profile-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.profile-name {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}
.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 20px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
}
.profile-status-badge i {
    font-size: 6px;
}
.profile-email {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}
.profile-email i {
    font-size: 12px;
}

.profile-designation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 9px;
    color: #6b7280;
    font-size: 12px;
}
.profile-designation i {
    margin-right: 4px;
}
.profile-divider {
    color: #d1d5db;
}

/* ================= EDIT BUTTON ================= */
.profile-edit {
    margin-left: auto;
}
.profile-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}
.profile-edit-btn:hover {
    background: #f8fafc;
    color: #111827;
    border-color: #d1d5db;
}

/* ================= PROFILE META ================= */
.profile-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 30px;
    border-bottom: 1px solid #eeeeee;
    gap: 12px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
    background: #fafafa;
}
.profile-meta-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
}
.profile-meta-label {
    display: block;
    margin-bottom: 2px;
    color: #9ca3af;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.profile-meta-item strong {
    display: block;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
}

/* ================= PERSONAL DETAILS ================= */
.profile-details {
    padding: 24px 30px 30px;
}
.profile-section-title {
    margin-bottom: 16px;
}
.profile-section-title h4::after {
    background-color: #f43b48;
    content: "";
    display: block;
    height: 2px;
    margin: 5px auto 0;
    width: 120px;
    animation: expandWidth 1.2s ease-out forwards;
}
.profile-section-title p {
    margin: 4px 0 0;
    color: #9ca3af;
    font-size: 11px;
}


/* ================= INFORMATION GRID ================= */
.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.personal-info-item {
    display: flex;
    justify-items: center;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fff;
    transition: all .2s ease;
}
.personal-info-item:hover {
    border-color: #e2e5e9;
    background: #fafafa;
}
.personal-info-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 13px;
}
.personal-info-content {
    min-width: 0;
}
.personal-info-label {
    display: block;
    margin-bottom: 3px;
    color: #9ca3af;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .35px;
}
.personal-info-value {
    display: block;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

/* ================= ADDRESS VALUE ================= */
.profile-address-level {
    color: #005f3d;
    font-size: 22px !important;
    font-weight: 500;
    text-transform: uppercase;
}
.profile-address-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f8fafc;
    color: #005f3d;
    font-size: 13px;
}
.profile-address-value {
    width: 100%;
    max-width: 900px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #333333;
    word-break: break-word;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .profile-meta {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .profile-top {
        align-items: flex-start;
        padding: 22px 20px;
        flex-wrap: wrap;
    }
    .profile-avatar {
        width: 75px;
        height: 75px;
    }
    .profile-name {
        font-size: 20px;
    }
    .profile-edit {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
    .profile-edit-btn {
        width: 100%;
        justify-content: center;
    }
    .profile-meta {
        grid-template-columns: 1fr;
        padding: 15px 20px;
    }
    .profile-details {
        padding: 20px;
    }
    .personal-info-grid {
        grid-template-columns: 1fr;
    }
    .personal-info-address {
        grid-column: span 1;
    }
}

.settings-image-group {
    margin-bottom: 20px;
}

.settings-image-group .form-label {
    font-weight: 500;
    margin-bottom: 10px;
}

.settings-image-wrap {
    position: relative;
    display: inline-block;
}
.remove-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    cursor: pointer;
    background-color: #fd0202;
}
.settings-image-preview {
    width: 200px;
    height: 100px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.settings-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.settings-image-preview.favicon-preview {
    width: 100px;
    height: 100px;
}

.settings-image-preview.default-image-preview {
    width: 300px;
    height: 160px;
}

.settings-image-wrap .fileupload {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

.settings-image-wrap .fileupload .btn-text {
    cursor: pointer;
}

.settings-image-wrap .upload {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 767px) {

    .settings-image-preview {
        width: 250px;
        height: 90px;
    }

    .settings-image-preview.default-image-preview {
        width: 250px;
        height: 140px;
    }

}

.custom-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table thead th {
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

.custom-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.custom-table tbody tr:last-child td {
    border-bottom: 0;
}

.custom-table tbody tr:hover {
    background: #f8f9fa;
}

.custom-table .badge {
    font-size: 12px;
    padding: 5px 9px;
    font-weight: 500;
}

.table-action {
    display: flex;
    align-items: center;
    gap: 5px;
}

.table-action .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============ QUOTE REQUEST DETAIL CARD ============ */
.qr-detail-card {
  background: var(--white, #fff);
  border: 1px solid rgba(18, 24, 26, .1);
  border-radius: var(--radius, 2px);
  max-width: 100%;
  font-family: var(--font-body, sans-serif);
}

.qr-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-bottom: 1px solid rgba(18, 24, 26, .1);
}

.qr-btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #9C4A2C;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 30px;
  transition: background .3s ease;
}

.qr-btn-pdf:hover {
  background: #7d3b23;
}

.qr-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone, #85807A);
  display: block;
  margin-bottom: 6px;
}

.qr-client-name {
  font-family: var(--font-display, serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-green, #006633);
}

/* status badge — one color per stage of the pipeline */
.qr-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.qr-badge-new {
  background: rgba(30, 70, 64, .1);
  color: #1E4640;
}

.qr-badge-contacted {
  background: rgba(252, 186, 0, .16);
  color: #8a6200;
}

.qr-badge-quoted {
  background: rgba(156, 74, 44, .12);
  color: #9C4A2C;
}

.qr-badge-won {
  background: rgba(0, 102, 51, .12);
  color: #006633;
}

.qr-badge-lost {
  background: rgba(133, 128, 122, .16);
  color: #55514c;
}

/* section groups */
.qr-section {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(18, 24, 26, .08);
}

.qr-section-last {
  border-bottom: none;
}

.qr-section-title {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yallow, #FCBA00);
  margin-bottom: 16px;
}

.qr-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.qr-row + .qr-row {
  border-top: 1px solid rgba(18, 24, 26, .06);
}

.qr-label {
  font-size: 13px;
  color: var(--stone, #85807A);
  flex-shrink: 0;
}

.qr-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--deep-green, #006633);
}
li{
    list-style: none;
    margin-bottom: 5px;
}
.qr-img{
    padding: 2px;
    background-color: #006633;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 50px;
    object-fit: cover;
    border-radius: 10%;
}
/* ===== Reply form ===== */
.qr-reply-form {
    border-top: 1px solid rgba(18, 24, 26, .1);
    padding-top: 24px;
    margin-top: 20px;
}

.qr-field {
    margin-bottom: 20px;
}

.qr-field > label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--stone);
    margin-bottom: 8px;
}

.qr-field-hint {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--stone-light);
}

.qr-reply-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    border: 1px solid rgba(18, 24, 26, .15);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--teal-deep);
    resize: vertical;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.qr-reply-form textarea::placeholder {
    color: var(--stone-light);
}

.qr-reply-form textarea:focus {
    outline: none;
    border-color: var(--deep-green);
    box-shadow: 0 0 0 3px rgba(0, 102, 51, .1);
}

/* ===== File drop zone (div-based, no overlap bug) ===== */
.qr-file-drop {
    position: relative;
    border: 1px dashed rgba(18, 24, 26, .2);
    border-radius: var(--radius);
    background: var(--paper-dim);
    cursor: pointer;
    transition: border-color .3s ease, background .3s ease;
}

.qr-file-drop:hover,
.qr-file-drop.dragover {
    border-color: var(--deep-green);
    background: rgba(0, 102, 51, .06);
}

.qr-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.qr-file-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    padding: 14px 10px;
    pointer-events: none;
}

.qr-file-drop-text {
    font-size: 13.5px;
    color: var(--teal-deep);
    font-family: var(--font-body);
}

.qr-file-drop-text strong {
    color: var(--deep-green);
}

.qr-file-drop-types {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--stone);
}

/* ===== Selected file chips ===== */
.qr-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.qr-file-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper-dim);
    color: var(--teal-deep);
    font-size: 12.5px;
    padding: 6px 8px 6px 12px;
    border-radius: 30px;
    font-family: var(--font-mono);
}

.qr-file-item svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.qr-file-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(18, 24, 26, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    color: var(--teal-deep);
    transition: background .2s ease, color .2s ease;
}

.qr-file-remove:hover {
    background: var(--rust);
    color: var(--white);
}

.qr-error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--rust);
}

.qr-reply-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.qr-reply-actions .btn svg {
    width: 14px;
    height: 14px;
}

/* ===== Product tags ===== */
.qr-product-tags {
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.qr-product-tag a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper-dim);
    color: var(--deep-green);
    font-size: 12.5px;
    padding: 6px 12px 6px 6px;
    border-radius: 30px;
    text-decoration: none;
    transition: background .2s ease;
}

.qr-product-tag a:hover {
    background: rgba(0, 102, 51, .12);
}

.qr-product-tag .qr-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== Conversation thread — messenger style ===== */
.qr-thread-section {
    display: flex;
    flex-direction: column;
}

.qr-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 440px;
    overflow-y: auto;
    padding: 8px 4px 20px;
    margin-bottom: 4px;
}

.qr-msg {
    max-width: 68%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

/* Customer message — LEFT side */
.qr-msg-customer {
    align-self: flex-start;
    background: var(--paper);
    color: var(--teal-deep);
    border-bottom-left-radius: 4px;
}

/* Admin message — RIGHT side */
.qr-msg-admin {
    align-self: flex-end;
    background: var(--deep-green);
    color: var(--paper);
    border-bottom-right-radius: 4px;
}

.qr-msg-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 10.5px;
    opacity: .75;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.qr-msg-admin .qr-msg-meta {
    flex-direction: row-reverse;
}

.qr-msg-sender {
    font-weight: 600;
}

.qr-msg-body{
    font-family: var(--font-body, sans-serif);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

.qr-msg-body a {
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 2px;
}

.qr-msg-attachments {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qr-msg-admin .qr-msg-attachments {
    justify-content: flex-end;
}

.qr-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .18);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: inherit;
    text-decoration: none !important;
    transition: background .2s ease;
}

.qr-msg-customer .qr-attachment-chip {
    background: rgba(18, 24, 26, .08);
}

.qr-attachment-chip:hover {
    background: rgba(255, 255, 255, .3);
}

.qr-msg-customer .qr-attachment-chip:hover {
    background: rgba(18, 24, 26, .12);
}
.qr-value a:hover {
  color: var(--teal, #1E4640);
}

.qr-empty {
  color: var(--stone-light, #C9C3B7);
  font-weight: 400;
  font-style: italic;
}

/* estimate stats */
.qr-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.qr-stat-num {
  display: block;
  font-family: var(--font-display, serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--deep-green, #006633);
}

.qr-stat-num small {
  font-size: .9rem;
  font-weight: 400;
  margin-left: 2px;
}

.qr-stat-label {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--stone, #85807A);
  margin-top: 6px;
}

/* message box */
.qr-message-box {
  background: var(--paper-dim, #E9E3D5);
  border-radius: var(--radius, 2px);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--deep-green, #006633);
  white-space: pre-line;
}

@media (max-width: 480px) {
  .qr-detail-head {
    flex-direction: column;
    gap: 14px;
  }
  .qr-row {
    flex-direction: column;
    gap: 4px;
  }
  .qr-value {
    text-align: left;
  }
  .qr-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.qr-reply-form {
    border-top: 1px solid rgba(18, 24, 26, .1);
    padding-top: 24px;
}
.qr-field {
    margin-bottom: 20px;
}
.qr-field label {
    display: block;
    font-family: monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #85807A;
    margin-bottom: 8px;
}
.qr-field-hint {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: #a8a29a;
}
.qr-reply-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    border: 1px solid rgba(18, 24, 26, .15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #123330;
    resize: vertical;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.qr-reply-form textarea::placeholder {
    color: #a8a29a;
}
.qr-reply-form textarea:focus {
    outline: none;
    border-color: #006633;
    box-shadow: 0 0 0 3px rgba(0, 102, 51, .1);
}

/* =========================================================
   MEDIA MANAGEMENT
========================================================= */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}


/* =========================================================
   MEDIA CARD
========================================================= */
.media-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: all .2s ease;
}
.media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}


/* =========================================================
   IMAGE
========================================================= */
.media-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}
.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.media-card:hover .media-image {
    transform: scale(1.04);
}


/* =========================================================
   INFO
========================================================= */
.media-info {
    padding: 12px;
}
.media-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-url {
    font-size: 11px;
    color: #777;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   COPY BUTTON
========================================================= */
.media-copy-btn {
    display: block;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #222;
    transition: all .2s ease;
}

/* =========================================================
   IMAGE PREVIEW MODAL
========================================================= */
.media-preview-trigger {
    cursor: zoom-in;
}

/* Modal */
.media-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
}
.media-preview-modal.active {
    visibility: visible;
    opacity: 1;
}


/* Overlay */
.media-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    cursor: zoom-out;
}


/* Content */
.media-preview-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Preview Image */
.media-preview-image {
    display: block;
    max-width: 90vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .4);
}


/* Title */
.media-preview-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}


/* Close */
.media-preview-close {
    position: absolute;
    top: -45px;
    right: -5px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.media-preview-close:hover {
    background: rgba(255, 255, 255, .25);
}


/* Prevent body scrolling */
body.media-preview-open {
    overflow: hidden;
}


/* Mobile */
@media (max-width: 576px) {
    .media-preview-modal {
        padding: 15px;
    }
    .media-preview-image {
        max-width: 95vw;
        max-height: 80vh;
    }
    .media-preview-close {
        top: -45px;
        right: 0;
    }
}

/* =========================================================
   EMPTY
========================================================= */
.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    color: #777;
}
.media-empty i {
    font-size: 45px;
    margin-bottom: 15px;
}
.media-empty h5 {
    margin-bottom: 5px;
}
.media-empty p {
    margin: 0;
}