.auth-group{
    display:flex;
}

.btn-auth{
    display:inline-block;
    padding:10px 20px;
    border-radius:10px;

    text-decoration:none;
    font-weight:500;
    font-size:14px;

    transition:0.2s;
}

/* đăng nhập */
.btn-login{
    background:#3b82f6;
    color:#fff;
}

.btn-login:hover{
    background:#2563eb;
}
@media (max-width: 768px) {

    .notification-box {
        position: fixed !important;

        left: 50% !important;       
        transform: translateX(-50%); 

        top: 80px;
        width: calc(100% - 20px);  

        right: auto !important;   
        margin: 0;

        border-radius: 12px;
        z-index: 9999;
    }

    .notice-list {
        max-height: 60vh;
    }
}
/* ===== FONT ===== */
body {
    font-family: 'Inter', sans-serif;
}

/* ===== ICON CHUÔNG ===== */
.bell-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: #f3f4f6 !important; 
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.2s;
}

.bell-icon:hover {
    background: #e5e7eb;
}

.bell-icon i {
    font-size: 18px;
    color: #555;
}

/* badge giống cart */
#notice-count {
    position: absolute;
    top: -6px;
    right: -6px;

    width: 18px;
    height: 18px;

    background: #ef4444;
    color: #fff;

    font-size: 11px;
    font-weight: bold;

    text-align: center;
    line-height: 18px;

    border-radius: 50%;
}
/* ===== WRAPPER ===== */
.notification-wrapper {
    position: relative;
}

/* ===== BOX ===== */
.notification-box {
    position: absolute;
    top: 38px;
    right: 0;
    width: 380px;
    max-width: 95vw;

    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);

    overflow: hidden;
    display: none;
    z-index: 999;
        margin-top: 8px;   /* cách xuống */
}

/* ===== HEADER ===== */
.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;

    border-bottom: 1px solid #eee;
}

.notice-header a {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

/* ===== LIST ===== */
.notice-list {
    max-height: 380px;
    overflow-y: auto;
}

/* ===== ITEM ===== */
.notice-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;

    border-bottom: 1px solid #f1f1f1;
    background: #fff;

    transition: 0.2s;
}

.notice-item:hover {
    background: #f9fafb;
}

/* ===== ICON ===== */
.notice-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f4f6;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    color: #555;
}

/* ===== CONTENT ===== */
.notice-content {
    flex: 1;
}

/* dòng title + time */
.notice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== ISOLATE ===== */
.notification-box {
    font-family: 'Inter', sans-serif;
}

/* title */
.notice-title {
    font-size: 15px;
    font-weight: 600;
}

/* time */
.notice-time {
    font-size: 13px;
}

/* desc */
.notice-desc {
    font-size: 13px;
    margin-top: 2px;
    line-height: 1.4;
    word-break: break-word;
}
.notice-desc p{
    margin:0;
}
/* ===== SCROLLBAR ===== */
.notice-list::-webkit-scrollbar {
    width: 5px;
}

.notice-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.notice-list::-webkit-scrollbar-track {
    background: transparent;
}
.cart-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-icon i {
    font-size: 18px;
    color: #555;
}

#cart-count {
    position: absolute;
    top: -6px;
    right: -6px;

    width: 18px;
    height: 18px;

    background: #ef4444;
    color: #fff;

    font-size: 11px;
    font-weight: bold;

    text-align: center;
    line-height: 18px; /* 🔥 = height → căn giữa tuyệt đối */

    border-radius: 50%;

    padding: 0; /* ❌ bỏ padding */
}
@media (min-width: 768px){
    .header-right{
        padding-right:20px; /* hoặc 16px nếu muốn thoáng hơn */
    }
}
.auth-group{
    display:inline-flex;
    border-radius:8px;
    overflow:hidden;
}

/* chung */
.btn-auth{
    padding:8px 16px;
    font-size:14px;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:6px;
    transition:0.2s;
}

/* DROPDOWN WRAP */
.user-dropdown{
    position: relative;
    display: inline-block;
}

/* BUTTON USER */
.user-box{
    background: #1f3c88;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* MENU */
.user-menu{
    position:absolute;

    top:calc(100% + 10px);
    right:0;

    width:260px;

    background:#fff;

    border-radius:12px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    z-index:9999;

    display:none;
}

/* ===== HEADER SỐ DƯ (CHÍNH LÀ PHẦN XÁM) ===== */
.user-balance {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px;

    background: #f3f4f6;
    border-radius: 12px 12px 0 0; /* 🔥 dính mép trên */
}

/* ICON */
.user-balance i {
    font-size: 14px;
    color: #555;
    background: #e5e7eb;
    padding: 6px;
    border-radius: 8px;
}

/* TEXT */
.balance-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.balance-text .label {
    font-size: 13px;
    color: #777;
    margin-bottom: 2px; /* 🔥 khoảng cách nhẹ */
}

.balance-text .amount {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0;
    line-height: 1;
}

/* ===== MENU ITEM ===== */
.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 16px;

    color: #333;
    font-size: 14px;
    text-decoration: none;

    transition: all 0.2s ease;
}

.user-menu a i {
    width: 18px;
    text-align: center;
    color: #666;
}

.user-menu a:hover {
    background: #f5f7fb;
    color: #2563eb;
    padding-left: 20px;
}

.user-menu a:hover i {
    color: #2563eb;
}

/* DIVIDER */
.user-menu .divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

/* LOGOUT */
.user-menu .logout {
    color: #ef4444;
}

.user-menu .logout i {
    color: #ef4444;
}

.user-menu .logout:hover {
    background: #fef2f2;
}

/* animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {

    .balance-text * {
        margin: 0 !important;
        padding: 0 !important;
    }

}
/* MENU NGANG PC */
.header-nav{
    margin-left:18px;
    gap:8px;
}

.nav-link-custom{
    text-decoration:none;
    color:#444;
    font-size:15px;
    font-weight:600;
    padding:10px 14px;
    border-radius:10px;
    transition:all .2s ease;
    white-space:nowrap;
}

.nav-link-custom:hover{
    background:#f3f5f7;
    color:#111;
}

.nav-link-custom.active{
    background:#eef4ff;
    color:#2563eb;
}

/* mobile giữ nguyên */
@media(max-width:991px){

    .header-nav{
        display:none !important;
    }

}
/* PC khi bỏ sidebar */
@media(min-width:992px){

    /* ẨN SIDEBAR PC */
    .pc-sidebar{
        display:none !important;
    }

    /* CONTAINER */
    .pc-container{
        margin-left:0 !important;
        width:100% !important;
        max-width:100% !important;
        min-height:100vh;
    }

    /* HEADER */
    .pc-header{
        left:0 !important;
        width:100% !important;

        background:#fff !important;

        border-bottom:1px solid #e9ecef;

        box-shadow:none !important;
    }

    /* CONTENT HEADER */
    .header-wrapper{
        max-width:1400px;
        width:100%;
        margin:0 auto;

        padding-left:20px;
        padding-right:20px;
    }

    /* CONTENT */
    .pc-content{
        max-width:1400px;
        width:100%;

        margin:0 auto;

        padding-left:20px;
        padding-right:20px;
    }

    /* FOOTER */
    .pc-footer{
        margin-left:0 !important;

        width:100% !important;
        max-width:100% !important;
    padding-bottom:0 !important;
    }

    /* CONTENT FOOTER */
    .footer-wrapper{
        max-width:1400px;
        width:100%;

        margin:0 auto;

        padding-left:20px;
        padding-right:20px;
    }

}
.header-nav-wrapper{
    display:flex;
    align-items:center;
    gap:24px;
}

.header-logo img{
    height:65px;
    width:auto;
    display:block;
}

.header-nav{
    gap:8px;
}
.pc-footer{
    margin-top:60px;
    overflow:hidden;
}

/* MAIN */
.footer-main{

    background:
    linear-gradient(
        135deg,
        #10284d 0%,
        #173b72 50%,
        #21559a 100%
    );

    color:#fff;

   padding:55px 0 12px;

    position:relative;
}

.footer-wrapper{
    max-width:1400px;
    margin:0 auto;
    padding:0 24px;
}

/* GRID */
.footer-grid{

    display:grid;

    grid-template-columns:
    minmax(320px,2fr)
    minmax(180px,1fr)
    minmax(220px,1fr)
    minmax(220px,1.2fr);

    gap:60px;

    align-items:flex-start;
}

/* COL */
.footer-col{
    display:flex;
    flex-direction:column;
    align-items:flex-start;

    min-width:0;
}

/* LOGO */
.footer-logo{
    height:60px;
    width:auto;

    margin-bottom:22px;
}

/* DESC */
.footer-desc{

    color:rgba(255,255,255,.95);

    line-height:1.9;

    font-size:16px;

    font-weight:500;

    max-width:560px;

    margin-bottom:24px;
}

/* TITLE */
.footer-col h4{

    font-size:20px;

    font-weight:800;

    margin-bottom:22px;

    color:#fff;
}

.footer-col a{
    display:block;
    width:fit-content;
    color:#ffffff !important;
    opacity:.9;
    text-decoration:none;
    margin-bottom:15px;
    font-size:15px;
    font-weight:500;
    line-height:1.8;
    transition:.2s ease;
}

.footer-col a:hover{
    color:#ffffff !important;
    opacity:1;
    transform:translateX(4px);
}

/* SOCIAL */
.footer-socials{
    display:flex;
    gap:14px;
}

.footer-socials a{
    position:relative;

    width:48px;
    height:48px;

    border-radius:16px;

    background:rgba(255,255,255,.1);

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff !important;

    font-size:18px;

    transition:.25s ease;

    overflow:visible;
}

.footer-socials a:hover{
    background:#fff;
    color:#173b72 !important;
    transform:translateY(-2px);
}

/* TOOLTIP */
.footer-socials a::after{
    content:attr(data-name);

    position:absolute;

    bottom:62px;
    left:50%;

    transform:translateX(-50%) translateY(6px);

    background:#fff;
    color:#173b72;

    padding:8px 14px;

    border-radius:12px;

    font-size:13px;
    font-weight:600;

    white-space:nowrap;

    opacity:0;
    visibility:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.18);

    transition:.25s ease;
}

.footer-socials a::before{
    content:"";

    position:absolute;

    bottom:54px;
    left:50%;

    transform:translateX(-50%);

    border:6px solid transparent;
    border-top-color:#fff;

    opacity:0;
    visibility:hidden;

    transition:.25s ease;
}

.footer-socials a:hover::after,
.footer-socials a:hover::before{
    opacity:1;
    visibility:visible;
}

.footer-socials a:hover::after{
    transform:translateX(-50%) translateY(0);
}

/* APPS */
.footer-apps{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    padding-left:0;
    margin-left:0;
}

.footer-apps img{
    width:150px;
    max-width:100%;
    display:block;
    margin:0;
    padding:0;
}

/* PC */
/* PC */
.footer-partner-wrap{
    text-align:center;
}

.footer-partner-title{
    color:#fff;
    font-size:20px;
    font-weight:700;
    margin-bottom:12px;
}

.footer-partners{

    margin-top:0;

    display:grid;

    grid-template-columns:repeat(8,1fr);

    gap:10px;

    align-items:center;
}

.footer-partners img{

    width:100%;

    aspect-ratio:16/7;

    object-fit:contain;

    background:#fff;

    border-radius:10px;

    padding:8px 10px;

    transition:.2s;
}

.footer-partners img:hover{
    transform:translateY(-2px);
}

/* ADDRESS */
.footer-office-wrap{

    margin-top:30px;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:16px;
}

.footer-office{

    background:rgba(255,255,255,.07);

    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    padding:16px 18px;

    display:flex;
    align-items:center;

    gap:14px;
}

.footer-office:hover{
    background:rgba(255,255,255,.12);
}

.office-icon{

    width:48px;
    height:48px;

    min-width:48px;

    border-radius:14px;

    background:rgba(255,255,255,.1);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;
}

.office-content h6{

    font-size:16px;

    font-weight:600;

    margin-bottom:4px;

    color:#fff;
}

.office-content p{

    margin:0;

    color:rgba(255,255,255,.9);

    line-height:1.5;

    font-size:14px;
}

/* BOTTOM */
.footer-bottom{

    margin-top:28px;
    padding-top:18px;

    border-top:1px solid rgba(255,255,255,.1);

    text-align:center;

    color:rgba(255,255,255,.82);

    font-size:14px;
}

/* MOBILE */
@media(max-width:991px){

    .footer-main{
        padding:50px 0 24px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:35px;
    }

  
     .footer-office-wrap{
        grid-template-columns:1fr;
    }

    .office-content h5{
        font-size:20px;
    }

    .footer-apps{
        flex-direction:row;
        flex-wrap:wrap;
    }

    .footer-apps img{
        width:140px;
    }
   .footer-partners{

        display:flex;

        gap:10px;

        overflow:hidden;

        width:max-content;

        animation:footerPartnerSlide 18s linear infinite;
    }

    .footer-partners img{

        width:120px;

        min-width:120px;

        height:52px;

        aspect-ratio:auto;
    }

    @keyframes footerPartnerSlide{

        0%{
            transform:translateX(0);
        }

        100%{
            transform:translateX(-50%);
        }

    }

}
.header-dropdown{
    position:relative;
}

/* trigger */
.dropdown-trigger{
    display:flex;
    align-items:center;
    gap:8px;

    cursor:pointer;
}

/* menu */
.header-dropdown-menu{

    position:absolute;

    top:calc(100% + 10px);
    left:0;

    min-width:190px;

    background:#fff;

    border-radius:14px;

    padding:10px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    opacity:0;
    visibility:hidden;

    transform:translateY(10px);

    transition:.2s ease;

    z-index:9999;
}

/* hover show */
.header-dropdown:hover .header-dropdown-menu{

    opacity:1;
    visibility:visible;

    transform:translateY(0);
}

/* item */
.header-dropdown-menu a{

    display:flex;
    align-items:center;

    padding:12px 14px;

    border-radius:10px;

    text-decoration:none;

    color:#333;

    font-size:15px;

    font-weight:600;

    transition:.2s;
}

.header-dropdown-menu a:hover{

    background:#f3f6fb;

    color:#2563eb;
}
}
.notif-bell{
  position: relative;
  width: 30px; height: 40px;
  border-radius: 12px;
  background: #e9edf3;
  display: grid; place-items: center;
}
.notif-badge{
  position: absolute;
  top: 2px; right: 2px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-weight: 700; font-size: 12px; line-height: 20px;
  text-align: center;
  display: none; 
  z-index: 5;
}

.pc-icon-btn{
  /* đồng bộ nền & màu */
  --pc-bg: #edf2f7;            
  --pc-fg: #2c3e50;           

  display: inline-grid;
  place-items: center;       
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pc-bg);
  color: var(--pc-fg);

  padding: 0;                
  line-height: 1;
  text-decoration: none;
}

.pc-icon-btn i{
  font-size: 20px;           
}

.pc-icon-btn:focus{
  outline: none;
  box-shadow: none;
}
}
.btn-admin-topbar{
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 14px;

    background: linear-gradient(135deg, #1f3c88, #2563eb);
    color: #fff;

    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    transition: all 0.3s ease;
}

.btn-admin-topbar i{
    font-size: 14px;
}

.btn-admin-topbar:hover{
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}
}
  .notif-bell{
  position: relative;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #e9edf3;
  display: grid; place-items: center;
}

.notif-badge{
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e11d48;  /* đỏ */
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  display: none; /* mặc định ẩn */
  z-index: 5;
}

#activityDropdown .timeline{
  padding-left:0; max-height:calc(65vh - 100px); overflow:auto; padding-right:8px;
}

#activityDropdown .timeline-item{ margin:10px 0; }

#activityDropdown .bubble{
  --bubble-bg: #f5f7fb;               
  display:grid;
  grid-template-columns: 48px 1fr;     
  gap:12px;
  align-items:center;                    
  padding:12px 14px;
  border-radius:14px;
  background: var(--bubble-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

#activityDropdown .bubble .icon{
  width:40px; height:40px; border-radius:50%;
  overflow:hidden; display:grid; place-items:center; background:#fff;
}
#activityDropdown .bubble .icon img{
  width:100%; height:100%; object-fit:cover; border-radius:50%;
}

#activityDropdown .bubble .content{ min-width:0; }
#activityDropdown .bubble .time{ font-size:12px; color:#6b7280; margin-bottom:4px; }
#activityDropdown .bubble .text{ font-size:15px; color:#0f172a; line-height:1.45; }

#activityDropdown .timeline-item + .timeline-item{
  border-top:1px solid #eee; padding-top:10px;
}
#activityDropdown .timeline-item::before,
#activityDropdown .timeline-item::after {
  content: none !important;
  display: none !important;
}
}