﻿/* Global styles */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fb;
    color: #1b2b3a;
}
/* Nút icon đặt sát bên trái nút X */
.btn-fullscreen {
    position: absolute;
    right: 40px; /* cách nút X 10px */
    top: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    z-index: 2000;
}

    .btn-fullscreen:hover {
        color: #000;
    }

/* FULLSCREEN CHO MODAL */
.modal-fullscreen {
    width: 100%;
}

.page-wrapper {
    background: radial-gradient(circle at top left, #202733 0, #111827 40%, #050816 100%);
}

/* Header */
.gt-header {
    background: transparent;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 20;
}


.gt-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(15, 116, 143, 0.9);
    color: #fff;
    font-size: 18px;
}

.gt-logo-text {
    color: #fff;
    letter-spacing: 0.03em;
}
/* Container chính */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #e65100; /* Màu cam đậm */
    font-weight: 600;
}

/* Nội dung Tooltip mặc định ẩn */
.tooltip-content {
    visibility: hidden;
    width: 250px;
    background-color: #ffffff;
    border: 1px solid #ff9800; /* Viền cam */
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* Hiện phía trên dòng chữ */
    left: -15%;
    transform: translateX(-10%); /* Căn chỉnh vị trí */
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Hiện Tooltip khi hover vào container */
.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Danh sách điểm bên trong */
.score-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

    .score-list li {
        padding: 5px 0;
        color: #333;
        font-size: 14px;
        border-bottom: 1px solid #f2f2f2;
    }

        .score-list li:last-child {
            border-bottom: none;
        }

    .score-list .bullet {
        color: #ff9800;
        margin-right: 8px;
        font-size: 18px;
    }

    .score-list strong {
        color: #e65100;
    }

/* Mũi tên nhỏ dưới Tooltip (Tùy chọn) */
.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20%;
    border-width: 8px;
    border-style: solid;
    border-color: #ff9800 transparent transparent transparent;
}


/* Banner */
.gt-banner {
    min-height: 480px;
    overflow: hidden;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.gt-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('/Content/images/hero.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.gt-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3, 23, 44, 0.55), rgba(3, 23, 44, 0.9));
}

.gt-banner-content {
    padding-top: 8rem;
    padding-bottom: 5.5rem;
}

.gt-banner-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.7);
}

.gt-banner-title {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.gt-banner-text {
    max-width: 620px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
}

.gt-banner-btn {
    background: #10b3d6;
    border-color: #10b3d6;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(10, 153, 192, 0.35);
}

    .gt-banner-btn:hover {
        background: #0690ad;
        border-color: #0690ad;
    }

/* Banner dots */
.gt-banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    opacity: 0.7;
}

    .gt-banner-dots .dot.active {
        width: 16px;
        border-radius: 999px;
        background: #10b3d6;
        border-color: #10b3d6;
        opacity: 1;
    }

/* Content card */
.gt-content-card {
    margin-top: -72px;
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem 2.75rem;
    position: relative;
    z-index: 30;
}
/* ================= HEADER ================= */
.gt-header {
    background: transparent;
    width: 100%;
    z-index: 999;
    position: absolute;
    top: 0;
}

.gt-logo-img {
    height: 48px;
    object-fit: contain;
}

.gt-top-text {
    color: #ffffff;
    font-size: 14px;
    opacity: 0.9;
}
/* --- 1. Sửa lỗi Modal và Tiêu đề --- */
.gt-modal.gt-clean-form-modal {
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

    .gt-modal.gt-clean-form-modal .modal-header {
        padding: 1rem 1.5rem 0.5rem;
        border-bottom: none;
    }

    .gt-modal.gt-clean-form-modal .modal-body {
        padding: 0 1.5rem 1.5rem;
    }

.gt-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- 2. Định dạng Input Field (Loại bỏ highlight) --- */
.gt-input-clean {
    height: 48px;
    padding-left: 10px !important;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: #fcfcfc; /* Nền trắng sạch */
    transition: all 0.2s;
}

    .gt-input-clean:focus {
        border-color: #1877f2;
        background-color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(24, 119, 242, 0.15); /* Shadow nhẹ */
    }

/* --- 3. Icon trong Input --- */
.gt-input-icon-group {
    position: relative;
}

.gt-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(18px); /* Căn giữa chiều dọc chuẩn */
    color: #999;
    font-size: 16px;
    z-index: 5;
}

/* --- 4. Mắt xem mật khẩu --- */
.gt-password-wrapper {
    position: relative;
}

.gt-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #6c757d;
    font-size: 16px;
    line-height: 1;
    z-index: 10;
}

/* --- 5. Validation và Nút bấm --- */
.gt-input-clean.is-invalid {
    border-color: #dc3545;
    padding-right: 50px !important;
}

.invalid-feedback {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #dc3545;
}

.gt-btn-lg {
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
}
/* ===== HEADER & BACKGROUND DƯỚI LOGO + MENU ===== */
.gt-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: #EA580C;
    font-size: 14px;
}

/* Lớp background nằm dưới nội dung header */


/* Nội dung header nằm trên background */
.gt-header-inner {
    position: fixed;
    z-index: 2;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Logo */
.gt-header-logo img {
    height: 50px;
    object-fit: contain;
}

/* Menu căn ngang với logo và cách logo 100px */
.gt-header-center {
    margin-left: 100px; /* đúng yêu cầu */
    justify-content: center;
}

/* ===== MENU ===== */
.gt-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Màu chữ giống màu logo (giả sử logo màu #111827) */
.gt-menu-link {
    text-decoration: none;
    color: white; /* cùng màu logo */
    position: relative;
    padding-bottom: 4px;
}

    /* Hiệu ứng gạch chân nhã, chuyên nghiệp */
    .gt-menu-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0;
        height: 2px;
        background: white;
    }

    .gt-menu-link:hover,
    .gt-menu-link.active {
        color: white;
        opacity: 0.9;
    }

        .gt-menu-link:hover::after,
        .gt-menu-link.active::after {
            width: 100%;
        }

/* Login bên phải dùng chung style menu nhưng nhạt hơn 1 chút */
.gt-login-link {
    margin-left: 24px;
    font-weight: 500;
    opacity: 0.85;
}



.gt-header-bg {
    position: absolute;
    inset: 0;
    background: #EA580C;
    box-shadow: 0 6px 12px rgba(0,0,0,.06);
}

.gt-header-inner {
    position: relative;
}

.gt-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.gt-header-logo img {
    height: 60px;
    width: auto;
    display: block;
}
.img-box {
    width: clamp(380px, 48vw, 480px);
    height: clamp(380px, 48vw, 480px);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
}

    .img-box .img-fit {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
@media (max-width: 991.98px) {
    .gt-header-logo img {
        height: 36px;
    }
}

.gt-nav-toggle {
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    border-radius: 12px;
    height: 40px;
    width: 44px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.gt-header-center {
    margin-left: 16px;
    flex: 1;
}

.gt-header-right {
    gap: 10px;
    min-width: 160px;
}

/* ===== User area ===== */
.gt-avatar-btn {
    border: none;
    background: transparent;
    padding: 0;
    line-height: 0;
    border-radius: 999px;
    outline: none;
}

.gt-avatar {
    height: 40px;
    width: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    background: #f6f7f9;
    display: block;
}

.gt-name-menu {
    position: relative;
}

.gt-name-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    height: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    font-weight: 600;
    color: #1f2937;
}

.gt-user-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gt-caret {
    font-size: 12px;
    opacity: .7;
}

/* dropdown */
.gt-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    padding: 8px;
}

    .gt-dropdown::before {
        content: "";
        position: absolute;
        right: 18px;
        top: -7px;
        width: 14px;
        height: 14px;
        background: #fff;
        border-left: 1px solid rgba(0,0,0,.08);
        border-top: 1px solid rgba(0,0,0,.08);
        transform: rotate(45deg);
    }

.gt-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 10px;
    border-radius: 12px;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

    .gt-dropdown-item:hover {
        background: rgba(0,0,0,.04);
    }

.gt-dropdown-divider {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 6px 8px;
}

/* Offcanvas shell */
.gt-offcanvas {
    width: 320px;
    background: #fff;
}

.gt-offcanvas-header {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.gt-offcanvas-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.gt-offcanvas-logo {
    height: 28px;
    width: auto;
    display: block;
}

.gt-offcanvas-close {
    background-color: #f3f4f6;
    border-radius: 999px;
    padding: 10px;
    opacity: 1;
}

    .gt-offcanvas-close:hover {
        background-color: #e9ecef;
    }

.gt-offcanvas-body {
    padding: 12px;
}

/* IMPORTANT: Menu inside offcanvas -> vertical list */
.gt-offcanvas .gt-menu-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #fff;
}

/* Link style like “app list item” */
.gt-offcanvas .gt-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    background: #fff;
    border: 1px solid #eee;
    transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

    .gt-offcanvas .gt-menu-link:hover {
        background: #f8f9fa;
        border-color: #e6e6e6;
        transform: translateY(-1px);
    }

    .gt-offcanvas .gt-menu-link.active {
        background: #eef2ff;
        border-color: #dbeafe;
    }


/* Menu wrapper */
.gt-menu-wrapper {
    padding: 0 8px;
}

/* Responsive */
@@media (max-width: 575.98px) {
    .gt-offcanvas {
        width: 85vw;
    }
}


/* ===== Modals ===== */
.gt-modal {
    border-radius: 18px;
    overflow: hidden;
}

.gt-modal-footer {
    border-top: 0;
    padding-top: 0;
}

.gt-field {
    margin-bottom: 14px;
}

.gt-label {
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-block;
    color: #111827;
}

.gt-help {
    display: block;
    margin-top: 6px;
    color: #6b7280;
}

.gt-textarea {
    border-radius: 14px;
    padding: 12px 14px;
}

.gt-avatar-preview-wrap {
    display: flex;
    justify-content: center;
    padding: 6px 0 16px;
}

.gt-avatar-preview {
    height: 156px;
    width: 156px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    background: #f6f7f9;
}

.gt-post-preview-wrap {
    position: relative;
    margin-top: 10px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: #f6f7f9;
}

.gt-post-preview {
    width: 100%;
    height: auto;
    display: block;
    max-height: 320px;
    object-fit: cover;
}

.gt-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gt-badge-counter_Chuong {
    position: absolute;
    top: -5px; /* Điều chỉnh vị trí dọc */
    right: -8px; /* Điều chỉnh vị trí ngang */
    padding: 2px 6px;
    border-radius: 10px;
    background-color: #fa383e; /* Màu đỏ nổi bật giống Facebook */
    color: white;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    z-index: 10;
    white-space: nowrap;
    min-width: 18px; /* Đảm bảo hình tròn đẹp */
    text-align: center;
}

/* --- 1. CSS CHO HEADER (Desktop/Mobile) --- */
.gt-notification-bell {
    position: relative; /* Quan trọng: Để .gt-badge-counter căn chỉnh theo */
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    gap: 6px;
    padding: 5px 12px;
    height: 40px;
    width: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
    background: rgba(0,0,0,.12);
}
/* ===== Mobile polishing ===== */
@media (max-width: 575.98px) {
    .gt-user-name {
        max-width: 110px;
    }

    .gt-header-bg {
        position: absolute;
        inset: 0;
        background: #EA580C;
        box-shadow: 0 6px 24px rgba(0,0,0,.06);
        height: 90px;
    }

    .gt-header-row {
        padding: 8px 0;
    }

    .gt-name-toggle {
        padding: 8px 10px;
    }

    .gt-dropdown {
        min-width: 220px;
    }
}

/* Footer */
.gt-footer {
    background: transparent;
    color: #9ca3af;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin-top: 3rem;
}
/* Chỉ áp dụng cho màn hình mobile/tablet */
@media (max-width: 768px) {

    /* Cấu trúc Footer */
    .gt-mobile-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #ffffff;
        border-top: 1px solid #f0f0f0; /* Viền mỏng */
        padding: 5px 0; /* Giảm padding */
        box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.08); /* Shadow nhẹ, chuyên nghiệp hơn */
        /* Hiệu ứng ẩn/hiện */
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
    }

        .gt-mobile-footer.gt-hidden {
            transform: translateY(100%);
        }

    .gt-footer-content {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* Thiết kế cho từng Item */
    .gt-footer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #777777; /* Màu xám nhạt cho trạng thái không active */
        font-size: 11px; /* Font nhỏ hơn cho chuyên nghiệp */
        font-weight: 500;
        padding: 4px 0;
        flex: 1;
        transition: color 0.2s ease-in-out; /* Hiệu ứng chuyển màu mượt mà */
        position: relative;
    }

        .gt-footer-item i {
            font-size: 20px;
            margin-bottom: 2px; /* Giảm khoảng cách giữa icon và chữ */
            transition: transform 0.2s ease-in-out;
            position: relative;
        }

        /* Trạng thái Active (ĐÃ CHỌN) */
        .gt-footer-item.gt-active {
            color: #1877f2; /* Màu thương hiệu nổi bật */
        }

            .gt-footer-item.gt-active i {
                /* Tạo hiệu ứng rung nhẹ cho icon active */
                transform: scale(1.1);
            }

    .gt-footer-badge {
        /* Badge trong footer cần định vị khác */
        position: absolute;
        top: 2px;
        right: 15px; /* Điều chỉnh để nằm trên icon chuông */
        /* Kế thừa style chung */
        padding: 2px 6px;
        border-radius: 10px;
        background-color: #fa383e;
        color: white;
        font-size: 10px;
        font-weight: bold;
        line-height: 1;
        z-index: 10;
    }
    /* Nút Đăng bài ở giữa (Nếu muốn to hơn) */
    .gt-post-btn i {
        font-size: 26px; /* Icon lớn hơn */
        color: #0284c7; /* Màu thương hiệu */
        line-height: 1; /* Căn giữa */
    }

    /* Ẩn chữ 'Đăng bài' nếu chỉ muốn icon */
    .gt-post-btn span {
        display: none;
    }
}

.user-menu {
    position: relative;
    display: inline-block;
    color: white;
    z-index: 99999;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(125, 191, 208, 0.9) !important;
    cursor: pointer;
    border: none;
    color: inherit;
}

    .user-toggle .user-name {
        font-weight: 600;
        font-size: 14px;
    }

    .user-toggle i.fa-user-circle {
        color: #38bdf8;
    }


.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #020617;
    border-radius: 10px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.6);
    padding: 8px;
    min-width: 100px;
    z-index: 100000;
}

    .user-dropdown button {
        width: 100%;
        border: none;
        background: transparent;
        color: #f9fafb;
        text-align: left;
        padding: 8px 10px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 13px;
    }

        .user-dropdown button:hover {
            background: rgba(248, 113, 113, 0.18);
        }

/*
            News
        */
.news-section-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #1e293b;
}

.news-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 630px;
}

.news-card {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all .25s ease;
    height: 410px;
    margin-top: 20px;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 30px rgba(0,0,0,0.18);
    }

.news-image {
    height: auto;
    object-fit: cover;
    width: 100%;
}

.news-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.news-summary {
    font-size: 14px;
    color: #475569;
}

.news-meta {
    font-size: 13px;
    color: #64748b;
}

.news-icons i {
    color: #475569;
    margin-right: 4px;
}

.news-icons span {
    margin-right: 16px;
    font-size: 13px;
    color: #475569;
}

/* Bài viết */
.news-detail-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.news-meta {
    font-size: 14px;
    color: #64748b;
}

.news-detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    margin-bottom: 25px;
}

.news-content {
    font-size: 17px;
    line-height: 1.65;
    color: #334155;
}

/* Interaction Bar */
.interaction-bar {
    /*border-top: 1px solid #e2e8f0;*/
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    margin-top: 25px;
    margin-bottom: 20px;
}

.interaction-btn {
    cursor: pointer;
    color: #EA580C;
    font-size: 15px;
    font-weight: 500;
    transition: .2s;
}

    .interaction-btn:hover {
        color: #0ea5e9;
    }

/* Comment section giống Facebook */
.comment-section {
    display: none;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.comment-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
}

.comment-input {
    flex-grow: 1;
    position: relative;
}

    .comment-input textarea {
        width: 100%;
        resize: none;
        border-radius: 16px;
        padding: 10px 45px 10px 15px;
        border: 1px solid #cbd5e1;
        font-size: 14px;
    }

    .comment-input input[type="file"] {
        display: none;
    }
/* Nút gửi trong box */
.comment-send-btn {
    position: absolute;
    right: 12px; /* đặt đúng vị trí upload cũ */
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: 0.2s;
}

    .comment-send-btn:hover {
        background: #0284c7;
    }

.comment-attach {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #475569;
}

/* Comment item */
.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    
}

.comment-bubble {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.comment-text {
    font-size: 14px;
    color: #475569;
    width: 100%;
}

.comment-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.comment-section {
    display: none;
}

.comment-box {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.comment-input textarea {
    width: 100%;
    resize: none;
    border-radius: 18px;
    padding: 10px 45px 10px 15px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: #f8fafc;
}

    .comment-input textarea:focus {
        outline: none;
        border-color: #38bdf8;
    }

.comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.comment-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.comment-image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .comment-image-remove:hover {
        background: rgba(255,0,0,0.85);
        color: #fff;
    }



/* Khung bubble bao quanh comment */
.comment-bubble {
    background: #f9fafb;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
}

/* Hàng trên cùng: tên + thời gian */
.comment-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

/* Tên người comment */
.comment-author {
    font-weight: 600;
    color: #111827;
    font-size: 13px;
}

/* Khi like thì đổi màu (theo style bạn) */
.comment-author-liked {
    color: #0ea5e9;
}

/* Thời gian (nếu dùng) */
.comment-time {
    font-size: 11px;
    color: #9ca3af;
}

/* Khung comment */
.comment-bubble {
    background: #f3f4f6;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(15,23,42,0.08);
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.5;
}

/* Header: tên + thời gian */
.comment-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 2px;
}

/* Tên người comment */
.comment-author {
    font-weight: 600;
    color: #111827;
    font-size: 13px;
}

/* Khi like thì đổi màu tên */
.comment-author-liked {
    color: #0ea5e9;
}

/* Text comment */
.comment-text1 {
    word-wrap: break-word;
    color: #111827;
    margin-top: 2px;
    margin-bottom: 4px;
}
@media (max-width: 768px) {
    .comment-text1 {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
}
/* Khối ảnh */
.comment-images1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

/* Mỗi ảnh */
.comment-image-item1 {
    position: relative;
    width: 250px;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 1px 4px rgba(15,23,42,0.4);
}

/* Ảnh thumbnail */
.comment-image-thumb1 {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cắt cho vừa ô, không méo */
    display: block;
}

/* Modal xem ảnh comment - căn giữa đẹp */
.comment-image-modal-dialog {
    margin-top: 140px; /* cách top 1 chút cho đẹp */
}

/* Ảnh trong modal */
.comment-image-modal-img {
    width: 100%;
    height: auto; /* không vượt quá chiều cao màn hình */
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    object-fit: contain;
}

.comment-list {
    max-height: 600px; /* chiều cao khung comment */
    overflow-y: auto; /* bật scroll dọc */
    padding-right: 4px; /* tránh scrollbar đè nội dung */
}

.comment-send-btn {
    background: #0ea5e9;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

    .comment-send-btn:hover {
        background: #0284c7;
    }

.ModelButtonClose {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    object-fit: contain;
}

.modal-backdrop {
    display: none;
}

.reply-box {
    margin-left: 55px;
}

/* COMMENT ITEM */


.comment-bubble {
    background: #f1f5f9;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
}

.comment-actions {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

    .comment-actions span {
        margin-right: 15px;
        cursor: pointer;
    }

        .comment-actions span:hover {
            text-decoration: underline;
        }

.comment-time {
    margin-left: 5px;
}
/* Teams */
.team-card {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    padding-top: 70px; /* chừa chỗ cho avatar */
    transition: transform .25s ease, box-shadow .25s ease;
    height: 350px;
}

    .team-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
    }

/* dải gradient phía trên */
.team-card-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: radial-gradient(circle at top left, #38bdf8, #0f172a);
}

/* avatar nằm giữa, không bị méo */
.team-avatar-wrap {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 178px;
    height: 178px;
    border-radius: 999px;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.team-avatar {
    width: 100%;
    border-radius: 999px;
    object-fit: cover; /* giữ tỉ lệ, crop nhẹ cho đẹp */
    object-position: center; /* luôn focus giữa mặt */
}

.team-card-body {
    padding: 64px 20px 18px; /* đẩy nội dung xuống dưới avatar */
    margin-top: 60px;
    text-align: center;
}

.team-name-link {
    text-decoration: none;
    color: inherit;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.team-slogan {
    font-size: 14px;
    color: orangered;
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 16px;
}

.team-Leader {
    font-size: 16px;
    color: #21587d;
    margin-top: 4px;
    margin-bottom: 16px;
    font-weight: 600;
}
/* meta like / comment / view */
.team-meta-box {
    margin-right: 16px;
    font-size: 13px;
    color: #475569;
    text-align: center;
}

    .team-meta-box span {
        margin: 16px;
        font-size: 13px;
        color: #475569;
    }

    .team-meta-box i {
        margin-right: 5px;
        color: #94a3b8;
    }

/* ===== TEAM HERO / LEADER ===== */
.team-hero {
    position: relative;
    padding: 32px 20px 20px;
    border-radius: 22px;
    background: radial-gradient(circle at top left, #38bdf8, #0f172a);
    color: #e5e7eb;
    overflow: hidden;
}

    .team-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at bottom right, rgba(15,23,42,0.1), transparent 60%);
        pointer-events: none;
    }

.team-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.team-leader-avatar-wrap {
    width: 270px;
    height: 270px;
    border-radius: 999px;
    background: #ffffff;
    padding: 6px;
    margin: 0 auto 16px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-leader-avatar {
    width: 100%;
    border-radius: 999px;
    object-fit: cover; /* rõ mặt, không méo */
    object-position: center;
}

.team-leader-Leader {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover; /* rõ mặt, không méo */
    object-position: center;
}

.team-name-detail {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-slogan-detail {
    font-size: 15px;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 10px;
}

.team-description {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== LEADER STATS ===== */
.leader-stats {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 14px;
}

    .leader-stats span i {
        margin-right: 6px;
    }

/* ===== MEMBERS LIST ===== */
.team-members-section {
    margin-top: 32px;
}

.team-members-title {
    font-size: 20px;
    font-weight: 500;
    color: #0f172a;
}

.team-members-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 18px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 8px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.members-container {
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* ✅ HEADER */
.members-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.members-title h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.members-title p {
    margin: 8px 0 0;
    font-size: 15px;
    color: #6b7280;
    max-width: 560px;
    line-height: 1.5;
}

/* ✅ SEARCH BOX */
.members-search {
    position: relative;
    min-width: 260px;
    max-width: 340px;
    width: 100%;
}

    .members-search input {
        width: 100%;
        padding: 8px 7px 8px 36px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        font-size: 15px;
        outline: none;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

        .members-search input:focus {
            border-color: #3b82f6;
            box-shadow: 0 3px 10px rgba(59,130,246,0.25);
        }

    .members-search i {
        position: absolute;
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 15px;
    }

.clear-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: 0.2s;
}

    .clear-btn:hover {
        background: #f3f4f6;
        color: #111827;
    }

/* ✅ COUNT */
.members-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* ✅ GRID LIST */
.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* ✅ CARD */
.member-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: left;
    transition: 0.2s;
}

    .member-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 22px rgba(0,0,0,0.12);
    }

.member-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #d1d5db;
    margin-bottom: 12px;
}

.member-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.member-info .company {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.member-info .position {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

/* ✅ RESPONSIVE */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .members-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .members-title h2 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .members-title p {
        font-size: 14px;
        max-width: 100%;
    }

    /* ✅ Search box FULL width giống card */
    .members-search {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

        .members-search input {
            width: 100% !important;
            display: block;
            padding: 7px 7px 7px 35px; /* nhìn thoáng hơn mobile */
            font-size: 15px;
            border-radius: 14px;
        }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .member-avatar img {
        width: 90px;
        height: 90px;
    }
}


@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }

    /* ✅ Search full width luôn */
    .members-search {
        width: 100%;
    }
}

    .member-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 30px rgba(15,23,42,0.14);
    }

.member-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.member-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.member-info {
    font-size: 13px;
    color: #64748b;
}

.member-position {
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
}
/* Members*/
.members-section-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f172a;
}

.members-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 700px;
}

/* CARD CHUNG */
/* LINK CARD */
.mem-card-link {
    text-decoration: none;
    color: inherit;
}

/* CARD CHÍNH */
.mem-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 12px 14px 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 55px rgba(15,23,42,0.12);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    min-height: 280px; /* box to hơn */
    margin-bottom: 23px;
}

    .mem-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 30px 70px rgba(15,23,42,0.18);
        border-color: #dbeafe;
    }

/* AVATAR TO, NỔI BẬT */
.mem-avatar-wrap {
    width: 200px;
    height: 200px;
    border-radius: 999px;
    padding: 4px;
    background: linear-gradient(135deg, #38bdf8, #0f172a);
    box-shadow: 0 16px 35px rgba(15,23,42,0.25);
    margin-bottom: 14px;
}

.mem-avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
}

/* TEXT INFO */
.mem-body {
    text-align: center;
    margin-bottom: 14px;
}

.mem-name {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.mem-dept {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 2px;
}

.mem-position {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

/* STATS DƯỚI CÙNG */
.mem-stats {
    margin-top: auto; /* đẩy xuống đáy card */
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: #475569;
}

    .mem-stats span i {
        margin-right: 4px;
        color: #94a3b8;
    }



/* Responsive */
@media (max-width: 767.98px) {
    .gt-header {
        position: fixed;
        background: #EA580C;
    }


    .gt-menu {
        position: static;
        background: #020617;
    }

    .gt-banner {
        border-radius: 0;
        display: none;
    }

    .gt-content-card {
        margin-top: -32px;
        padding: 1.5rem 1.25rem;
    }

    .flex-grow-1 {
        margin-top: 90px;
    }
}

/* do not use toast*/


#toast-container {
    z-index: 999999;
    position: fixed;
    bottom: 0px;
}

    /* Định dạng chung cho mỗi thẻ Toast */
    #toast-container > .toast {
        display: block !important;
        background-image: none !important; /* Bỏ icon mặc định của thư viện */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
        border-radius: 12px !important;
        padding: 15px 20px 15px 50px !important;
        opacity: 0.98 !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        min-width: 320px;
        transition: all 0.3s ease;
    }

        #toast-container > .toast:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15) !important;
            transform: translateY(-2px);
        }

/* Tiêu đề và Nội dung */
.toast-title {
    font-weight: 700 !important;
    font-size: 15px !important;
    margin-bottom: 4px !important;
}

.toast-message {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    opacity: 0.9;
}

/* Màu sắc hiện đại cho từng loại thông báo */
.toast-success {
    background-color: #10b981 !important; /* Xanh Emerald */
    border-left: 6px solid #059669;
}

.toast-error {
    background-color: #ef4444 !important; /* Đỏ Soft */
    border-left: 6px solid #dc2626;
}

.toast-info {
    background-color: #3b82f6 !important; /* Xanh Blue */
    border-left: 6px solid #2563eb;
}

.toast-warning {
    background-color: #f59e0b !important; /* Vàng Amber */
    border-left: 6px solid #d97706;
}

/* Thêm Icon bằng FontAwesome (Bạn đã có FA trong Layout) */
#toast-container > .toast:before {
    position: absolute;
    left: 18px;
    top: 18px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
    color: white;
}

.toast-success:before {
    content: "\f058";
}
/* Icon check-circle */
.toast-error:before {
    content: "\f06a";
}
/* Icon exclamation-circle */
.toast-info:before {
    content: "\f05a";
}
/* Icon info-circle */
.toast-warning:before {
    content: "\f071";
}
/* Icon triangle-exclamation */

/* Nút đóng (Close button) */
.toast-close-button {
    top: -5px !important;
    right: -5px !important;
    font-size: 20px !important;
    opacity: 0.5;
}

    .toast-close-button:hover {
        opacity: 1;
    }

.bg-light-yellow {
    background-color: #fffef9;
}

/* Hiệu ứng rung nhẹ cho búa trên mobile để gây chú ý */
.hammer-icon-wrapper i {
    animation: shake 2s infinite ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-15deg);
    }

    20% {
        transform: rotate(15deg);
    }
}

/* Bo tròn Price Tag */
.price-tag {
    background: #fff;
    border: 1px dashed #ffc107;
    border-radius: 15px;
    padding: 8px;
    display: inline-block;
    min-width: 140px;
}

/* Tối ưu nút bấm và input trên Smartphone */
@media (max-width: 576px) {
    .auction-mobile .input-group {
        display: flex;
        flex-direction: column; /* Xếp chồng trên màn hình rất nhỏ */
        gap: 10px;
    }

    .auction-mobile .form-control {
        border-radius: 10px !important;
        width: 100%;
        height: 50px; /* To hơn để dễ bấm */
        font-size: 1.2rem;
    }

    .auction-mobile .btn-lg-mobile {
        border-radius: 10px !important;
        width: 100%;
        height: 50px;
        font-size: 1rem;
        box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
    }

    .auction-mobile .card-body {
        padding: 15px 10px;
    }
}

.auction-container {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}

/* Màu sắc Header */
.bg-waiting {
    background-color: #EA580C;
    color: #fff;
}

.bg-active {
    background-color: #EA580C;
    color: #fff;
}

.auction-header {
    padding: 10px 15px;
    font-weight: bold;
    font-size: 0.85rem;
}

.status-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
}

/* Hiệu ứng búa rơi */
.hammer-anim {
    font-size: 40px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Vòng tròn giá khởi điểm */
.price-circle {
    display: inline-block;
    border: 2px solid #ffc107;
    padding: 10px 25px;
    border-radius: 50px;
    background: #fffdf5;
}

    .price-circle .price {
        font-size: 2rem;
        font-weight: 800;
        color: #28a745;
    }

    .price-circle .currency {
        font-size: 1rem;
    }

/* Tối ưu Input & Nút bấm trên Mobile */
.bid-form .form-control {
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 10px 0 0 10px !important;
    font-size: 1rem;
}

.bid-form .btn-bid {
    background: linear-gradient(45deg, #EA580C, #EA580C);
    color: #fff;
    font-weight: bold;
    border-radius: 0 10px 10px 0 !important;
    padding: 0 20px;
    border: none;
}

/* Hiệu ứng nhấp nháy Đang diễn ra */
.pulse {
    animation: pulse-red 1.5s infinite;
    background: #dc3545 !important;
    color: white !important;
}
.leader-chip {
    display: inline-block;
    background: #f8f9fa;
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid #dee2e6;
}
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}
/* Tổng thể trang */
.auction-premium-page {
    background-color: #f0f2f5;
    min-vh-100;
    font-family: 'Inter', sans-serif;
}

.fw-black {
    font-weight: 900;
}

.x-small {
    font-size: 0.75rem;
}

/* Admin Panel */
.bg-gradient-dark {
    background: linear-gradient(135deg, #2c3e50, #000000);
}

.admin-panel {
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* Auction Card */
.auction-card-premium {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

.shadow-hover:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
}

.member-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.5s;
}

.auction-card-premium:hover .member-img {
    transform: scale(1.05);
}

/* Badges */
.card-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.badge-status {
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.7rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bg-orange {
    background: linear-gradient(45deg, #ff9800, #ffc107);
}

/* Stats Boxes */
.bg-light-green {
    background-color: #f8fff9;
}

.bg-light-red {
    background-color: #fff8f8;
}

.price-stats {
    border-color: #f0f0f0 !important;
}

/* Pulse Effects */
.pulse-danger {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Input Styling */
.bid-action-form .form-control:focus {
    box-shadow: none;
}

.btn-warning {
    background: #ffc107;
    border: none;
    transition: 0.3s;
}

    .btn-warning:hover {
        background: #ff9800;
        transform: scale(1.02);
    }

/* Web vs Mobile Optimization */
@media (max-width: 768px) {
    .auction-premium-page {
        padding: 10px;
    }

    .member-img {
        height: 180px;
    }

    .display-price {
        font-size: 1.5rem;
    }
}
.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    border-radius: 999px;
    padding: 10px 18px;
}

.chat-box {
    position: fixed;
    bottom: 0px;
    right: 20px;
    width: 360px;
    height: 520px;
    z-index: 9999;
    border-radius: 12px;
    overflow: hidden;
}

.chat-body {
    height: 350px;
    overflow-y: auto;
    background: #f7f7f7;
}

.chat-message {
    margin: 6px 0;
    display: flex;
}

    .chat-message.me {
        justify-content: flex-end;
    }

    .chat-message .msg-content {
        max-width: 75%;
        padding: 8px 10px;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    }

    .chat-message.me .msg-content {
        background: #d9fdd3;
    }

.room-list {
    max-height: 120px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px;
}

.room-item {
    padding: 6px 8px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

    .room-item:hover {
        background: #f5f5f5;
    }
.modal-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.badge.bg-secondary {
    font-size: 13px;
    font-weight: 500;
}
.chat-header {
    background: #0d6efd;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
}

.chat-title {
    font-weight: 600;
    font-size: 15px;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 6px; /* ✅ khoảng cách đẹp và sát */
}

.chat-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

    .chat-icon-btn i {
        font-size: 16px;
    }

    .chat-icon-btn:hover {
        background: rgba(255, 255, 255, 0.28);
        transform: translateY(-1px);
    }

    .chat-icon-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

    /* ✅ nút đóng đẹp hơn */
    .chat-icon-btn.close-btn {
        background: rgba(255, 255, 255, 0.22);
    }

        .chat-icon-btn.close-btn:hover {
            background: rgba(255, 255, 255, 0.35);
        }

/* ✅ always on top */
.call-window {
    position: fixed;
    top: 80px;
    right: 24px;
    width: 420px;
    height: 520px;
    background: #111827;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
    z-index: 999999; /* ✅ luôn nằm trên cùng */
    overflow: hidden;
    display: none;
}

    /* show window */
    .call-window.show {
        display: block;
    }

/* header */
.call-header {
    height: 52px;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    cursor: move; /* ✅ drag handle */
    user-select: none;
}

.call-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.call-actions {
    display: flex;
    gap: 8px;
}

.call-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

    .call-btn:hover {
        background: rgba(255,255,255,0.22);
        transform: translateY(-1px);
    }

.call-btn-danger {
    background: rgba(239,68,68,0.75);
}

    .call-btn-danger:hover {
        background: rgba(239,68,68,0.95);
    }

/* body */
.call-body {
    height: calc(100% - 52px - 60px);
    background: #0b1220;
}

/* footer */
.call-footer {
    height: 60px;
    background: rgba(0,0,0,0.55);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* video layout */
.call-video {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.local-video {
    width: 132px;
    height: 180px;
    object-fit: cover;
    position: absolute;
    right: 14px;
    bottom: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* voice */
.call-voice {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.voice-icon {
    font-size: 54px;
    margin-bottom: 12px;
}

.voice-text {
    opacity: .85;
}

/* mini mode */
.call-window.mini {
    width: 280px;
    height: 72px;
}

    .call-window.mini .call-body,
    .call-window.mini .call-footer {
        display: none;
    }
#callModal {
    z-index: 999999 !important;
}

.modal-backdrop {
    z-index: 999998 !important;
}


/* fullscreen mode */
.call-window.fullscreen {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}

/* ✅ mobile */
@media (max-width: 576px) {
    .call-window {
        left: 10px;
        right: 10px;
        width: auto;
        height: 75vh;
        top: 70px;
    }

    .local-video {
        width: 110px;
        height: 150px;
    }
}


/* ✅ Base icon button (vòng tròn) */
.gt-header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    transition: all .15s ease;
    text-decoration: none;
    flex-shrink: 0;
}

    /* hover */
    .gt-header-icon:hover {
        background: rgba(255,255,255,0.28);
        transform: translateY(-1px);
    }

    /* ✅ icon inside (fix lệch + đảm bảo luôn hiển thị) */
    .gt-header-icon i {
        font-size: 18px;
        line-height: 1;
        display: block;
        opacity: 1 !important;
        visibility: visible !important;
    }

/* ✅ icon CHAT màu xanh */
.gt-chat-icon i {
    color: #0d6efd !important;
}

/* ✅ icon BELL màu trắng (cho nền cam) */
.gt-notification-bell i {
    color: #ffffff !important;
}

/* ✅ badge counter */
.gt-badge-counter {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
    z-index: 2;
}
.gt-header-icon {
    background: #fff;
}

    .gt-header-icon:hover {
        background: #f3f4f6;
    }

/* ✅ FIX: Bell icon bị mất / bị lệch */
.gt-notification-bell {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.18) !important;
    text-decoration: none !important;
    flex-shrink: 0;
}

    .gt-notification-bell i {
        display: inline-block !important;
        font-size: 18px !important;
        line-height: 1 !important;
        color: #ffffff !important; /* ✅ icon chuông trắng */
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* ✅ badge không bị che */
    .gt-notification-bell .gt-badge-counter {
        position: absolute !important;
        top: 3px !important;
        right: 3px !important;
        z-index: 2;
    }
    .gt-notification-bell i {
        color: #ffd54f !important;
    }
/* ✅ HIDE floating chat button on mobile */
@media (max-width: 576px) {

    /* nếu nút chat có class chat-toggle */
    .chat-toggle,
    .chat-toggle-desktop,
    /* nếu nằm trong widget */
    #chatWidget .chat-toggle,
    #chatWidget .chat-toggle-desktop,
    /* nếu bạn dùng class khác (nhiều bạn dùng fixed-chat-btn) */
    .fixed-chat-btn,
    .btn-chat-floating {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    .chat-toggle-desktop {
        display: inline-flex !important;
    }
}
/* ===== PRO Chat Layout (Teams/Messenger) ===== */
.m-row {
    display: flex;
    gap: 10px;
    margin: 4px 0;
    align-items: flex-end;
}

    .m-row.m-me {
        justify-content: flex-end;
    }

    .m-row.m-other {
        justify-content: flex-start;
    }

/* avatar */
.m-avatar, .m-avatar-spacer {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

    .m-avatar img {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

.m-avatar-spacer {
    opacity: 0;
}

/* content */
.m-content {
    display: flex;
    flex-direction: column;
    max-width: 78%;
}

/* name */
.m-name {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 4px 4px;
    color: #111827;
    opacity: .85;
}

/* bubble */
.m-bubble {
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    background: #fff;
}

/* colors */
.m-row.m-me .m-bubble {
    background: #dbeafe;
    align-items: flex-end;
}

.m-row.m-other .m-bubble {
    background: #dcfce7;
    align-items: flex-start;
}

    /* ✅ bubble group corner shapes */
    .m-row.m-other .m-bubble.bubble-start {
        border-radius: 16px 16px 16px 6px;
    }

    .m-row.m-other .m-bubble.bubble-mid {
        border-radius: 6px 16px 16px 6px;
    }

    .m-row.m-other .m-bubble.bubble-end {
        border-radius: 6px 16px 16px 16px;
    }

.m-row.m-me .m-bubble.bubble-start {
    border-radius: 16px 16px 6px 16px;
}

.m-row.m-me .m-bubble.bubble-mid {
    border-radius: 16px 6px 6px 16px;
}

.m-row.m-me .m-bubble.bubble-end {
    border-radius: 16px 6px 16px 16px;
}

/* text */
.m-text {
    font-size: 14px;
    line-height: 1.45;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
}

/* meta */
.m-meta {
    margin-top: 5px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    font-size: 11px;
    opacity: .65;
    width: 100%;
}

.m-status {
    font-weight: 700;
    font-size: 12px;
}

.m-read {
    color: #0d6efd;
    opacity: 1;
}

/* media */
.m-img {
    max-width: 260px;
    width: 100%;
    border-radius: 12px;
    margin-top: 6px;
    object-fit: cover;
}

.m-video {
    max-width: 320px;
    width: 100%;
    border-radius: 12px;
    margin-top: 6px;
}

.m-file {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.06);
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    margin-top: 6px;
}

/* mobile */
@media(max-width:576px) {
    .m-content {
        max-width: 85%;
    }

    .m-img {
        max-width: 220px;
    }
}

/* outer gray background */
.m100-outer {
    background: #e6e6ea;
    border-radius: 14px;
    padding: 18px;
    max-width: 980px;
    margin: 0 auto;
}

/* main white card */
.m100-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

/* avatar wrap: overlap like screenshot */
.m100-avatar-wrap {
    position: absolute;
    left: 22px;
    top: 22px;
    width: 250px;
    height: 250px;
    
    border-radius: 14px;
    padding: 8px;
    
    z-index: 2;
}

/* avatar image */
.m100-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* right side content area (must reserve avatar width) */
.m100-right {
    margin-left: 220px; /* ✅ 180 avatar + 22 left + gap */
}

/* header gray stripe */
.m100-header {
    background: #d7d7db;
    padding: 34px 22px 22px 280px;
    min-height: 110px;
}

/* name/title */
.m100-name {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.1;
    margin-bottom: 6px;
}

.m100-title {
    font-size: 18px;
    font-weight: 600;
    color: #2f2f2f;
}

/* bio section */
.m100-bio {
    padding: 18px 280px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid rgba(0,0,0,.08); /* ✅ đường kẻ nhẹ giống ảnh */

}
.memberProfile {
    padding: 0 30px 0px 30px;
    margin-bottom: 30px;
}
/* ✅ mobile responsive: avatar full width */
@media(max-width:768px) {
    .m100-avatar-wrap {
        position: relative;
        left: auto;
        top: auto;
        width: calc(100%);
        padding-bottom: 20px;
        
        
    }

    .m100-right {
        margin-left: 0;
    }
    .memberProfile {
        padding: 0 0px 0px 0px;
    }
    
    .m100-name {
        font-size: 24px;
    }

    .m100-title {
        font-size: 15px;
    }
    .m100-bio {
        padding: 0px 0px 20px;
        font-size: 16px;
        line-height: 1.6;
        color: #555;
        
    }
    .m100-header {
        background: #fff;
        padding: 4px 2px 2px 0px;
        min-height: 110px;
    }

}

/* ===== Motivation Team - Clean Professional ===== */
.moti-team {
    --teamColor: #fef9f9;
    --teamText: color-contrast(var(--teamColor) vs #EA580C, #EA580C);
}

.moti-team__wrap {
    padding: 18px;
}

/* HERO container */
.moti-hero {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.07);
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

/* Banner 90px with team color */
.moti-banner {
    height: 99px; /* per your request */
    background: linear-gradient(180deg, color-mix(in srgb, var(--teamColor) 92%, #000 8%), color-mix(in srgb, var(--teamColor) 78%, #000 22%) );
    position: relative;
}

    .moti-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(900px 180px at 50% 0%, rgba(255,255,255,.18), transparent 60%);
        pointer-events: none;
    }

.moti-banner__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    position: relative;
    z-index: 1;
}

.moti-banner__name {
    color: #000;
    font-weight: 700;
    letter-spacing: -.02em;
    font-size: 25px;
    line-height: 1.15;
}

.moti-banner__slogan {
    margin-top: 6px;
    color: #000;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
}

/* Identity block: centered big logo+avatar */
.moti-identity {
    padding: 0 16px 16px;
    text-align: center;
}

/* overlap upwards to look premium */
.moti-identity__row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px; /* overlap banner */
    flex-wrap: wrap;
}

.moti-badge {
    width: 200px; /* BIG */
    height: 200px; /* BIG */
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .moti-badge::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 999px;
        pointer-events: none;
    }

    .moti-badge img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        object-position: center;
    }



/* Leader meta */
.moti-identity__meta {
    margin-top: 10px;
    color: rgba(0,0,0,.75);
    font-weight: 600;
}

    .moti-identity__meta strong {
        color: #111;
        font-weight: 800;
    }

/* PROFILE section */
.moti-profile {
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.07);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
    padding: 16px 16px 14px;
}

.moti-profile__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    margin-bottom: 10px;
}

.moti-profile__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--teamColor);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--teamColor) 18%, transparent);
}

.moti-profile__title {
    font-weight: 900;
    letter-spacing: -.01em;
    color: #111;
}

.moti-profile__leader {
    color: rgba(0,0,0,.75);
    font-weight: 600;
    margin-bottom: 8px;
}

    .moti-profile__leader strong {
        color: #111;
        font-weight: 800;
    }

.moti-profile__content {
    color: rgba(0,0,0,.78);
    line-height: 1.75;
    font-size: 14px;
    padding: 20px 20px 20px 20px;
}

/* MEMBERS */
.moti-members {
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.07);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
    padding: 16px;
}

.moti-members__head {
    margin-bottom: 10px;
}

.moti-members__title {
    font-weight: 900;
    color: #111;
    letter-spacing: -.01em;
}

.moti-members__desc {
    margin-top: 6px;
    color: rgba(0,0,0,.65);
}

/* Mobile tweaks */
@media (max-width: 520px) {
    .moti-badge {
        width: 104px;
        height: 104px;
    }

    .moti-badge--leader {
        width: 112px;
        height: 112px;
    }

    .moti-banner__name {
        font-size: 20px;
    }
}

/* Vòng tròn chuẩn + cắt gọn */
.moti-badge {
    border-radius: 999px;
    overflow: hidden;
    background: #fff; /* nền sạch */
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* CẢ LOGO & AVATAR: HIỂN THỊ ĐẦY ĐỦ (KHÔNG BỊ CẮT) */
    .moti-badge img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain; /* quan trọng: không cắt */
        object-position: center;
        background: #fff; /* tránh nền ảnh xấu */
    }


/* make leader avatar slightly bigger for hierarchy */
.moti-badge--leader {
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

