/* ============================================
   VZONE CLONE v2 – Redesigned CSS
   Clean, Professional, Minimal Icons
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:wght@700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== REDESIGNED VARIABLES (Premium Light Theme) ===== */
:root {
    --primary: #e11d48;
    /* Rose 600 – vibrant, deep red */
    --primary-lt: #fb7185;
    /* Rose 400 – soft accent */
    --primary-dk: #be123c;
    /* Rose 700 – on hover */
    --primary-bg: #fff1f2;
    /* Rose 50 */
    --accent: #1e293b;
    /* Slate 800 */
    --accent-lt: #334155;
    /* Slate 700 */
    --yellow: #f59e0b;
    /* Amber 500 */
    --green: #059669;
    /* Emerald 600 */
    --blue: #2563eb;
    /* Blue 600 */
    --purple: #7c3aed;
    /* Violet 600 */
    --bg: #f9fafb;
    /* Gray 50 – bright near-white */
    --white: #ffffff;
    --card-bg: #ffffff;
    --border: #f1f5f9;
    /* Slate 100 – very subtle */
    --border-md: #e2e8f0;
    /* Slate 200 */
    --border-dk: #cbd5e1;
    /* Slate 300 */
    --text: #0f172a;
    /* Slate 900 – rich dark */
    --text-md: #334155;
    /* Slate 700 */
    --text-lt: #64748b;
    /* Slate 500 */
    --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.04);
    --shadow-sm: 0 2px 4px 0 rgb(15 23 42 / 0.06), 0 1px 2px -1px rgb(15 23 42 / 0.04);
    --shadow-md: 0 4px 12px -2px rgb(15 23 42 / 0.08), 0 2px 6px -2px rgb(15 23 42 / 0.05);
    --shadow-lg: 0 12px 24px -4px rgb(15 23 42 / 0.1), 0 4px 8px -4px rgb(15 23 42 / 0.06);
    --shadow-hover: 0 20px 40px -8px rgb(15 23 42 / 0.14), 0 8px 16px -4px rgb(15 23 42 / 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --t: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shopee: #f97316;
    --fb: #1877f2;

    /* Admin sidebar vars */
    --sidebar-bg: #1e293b;
    --sidebar-hover: rgba(255, 255, 255, 0.07);
    --sidebar-active: rgba(225, 29, 72, 0.18);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

ul {
    list-style: none
}

button {
    font-family: inherit
}

/* ===== TOPBAR ===== */
.topbar {
    background: var(--accent);
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    padding: 7px 0;
    text-align: center;
    letter-spacing: .2px
}

.topbar strong {
    color: var(--yellow)
}

/* ===== HEADER ===== */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-md);
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 66px;
    gap: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 32px;
    flex-shrink: 0;
    text-decoration: none
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -1px
}

.logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -.5px
}

.logo-name span {
    color: var(--primary)
}

nav {
    flex: 1
}

nav ul {
    display: flex;
    gap: 2px
}

nav ul li a {
    display: block;
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-md);
    border-radius: var(--radius-sm);
    transition: var(--t);
    position: relative;
}

nav ul li a:hover,
.nav-active {
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.nav-dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    /* áp sát trigger, không có gap */
    left: 0;
    padding-top: 8px;
    /* khoảng trong suốt thay cho gap – giữ hover */
    min-width: 180px;
    z-index: 999;
    flex-direction: column;
}

/* Panel thực sự hiển thị (phần con trong dropdown) */
.nav-dropdown-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}

.nav-dropdown-wrap:hover .nav-dropdown {
    display: flex !important;
}

.nav-dropdown li {
    list-style: none;
}

.nav-dropdown li a {
    display: block;
    padding: 9px 16px !important;
    font-size: 13px !important;
    color: var(--text-md) !important;
    border-radius: 0 !important;
    white-space: nowrap;
    transition: background .15s;
}

.nav-dropdown li a:hover,
.nav-dropdown li a.active {
    background: rgba(192, 57, 43, .07) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto
}

/* Search toggle btn */
.btn-hdr {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
    font-size: 16px;
    position: relative
}

.btn-hdr:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff
}

.btn-hdr.cart {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.btn-hdr.cart:hover {
    background: var(--primary-dk)
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--yellow);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff
}

/* Cart button in header */
.cart-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-md);
    background: var(--bg);
    color: var(--text-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t);
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.cart-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    padding: 0 2px;
    line-height: 1;
}

/* Cart popup */
.cart-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.cart-popup.open {
    display: flex;
}

/* Inline search trong header */
.header-search-inline {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    height: 36px;
    min-width: 220px;
    max-width: 280px;
    transition: border-color .2s, box-shadow .2s;
}

.header-search-inline:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}

.header-search-inline input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    background: transparent;
}

.header-search-inline button {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.header-search-inline button:hover {
    background: var(--primary-dk);
}

/* Giữ nguyên .search-drop class (ẩn, không dùng nữa) */
.search-drop {
    display: none;
}

/* User menu */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--t);
    background: #fff
}

.user-chip:hover {
    border-color: var(--primary)
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center
}

.user-chip span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-md)
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 470px;
    overflow: hidden;
    background: var(--accent)
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: translateX(20px);
    pointer-events: none
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto
}

.slide-text {
    width: 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 72px;
    position: relative;
    z-index: 3;
    flex-shrink: 0
}

.slide-img {
    flex: 1;
    position: relative;
    overflow: hidden;
    clip-path: polygon(6% 0%, 100% 0%, 100% 100%, 0% 100%)
}

.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease
}

.hero-slide.active .slide-img img {
    transform: scale(1.05)
}

.slide-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--slide-bg, #2c3e50) 0%, transparent 50%);
    z-index: 1
}

.slide-label {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .8);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px
}

.slide-text h2 {
    font-family: 'Merriweather', serif;
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px
}

.slide-text h2 em {
    font-style: normal;
    color: #b8a9e8
}

.slide-text h2 em.gold {
    font-style: normal;
    color: var(--yellow)
}

.slide-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    max-width: 320px;
    margin-bottom: 24px;
    line-height: 1.7
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--accent);
    padding: 11px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--t);
    width: fit-content;
    align-self: flex-start
}

.slide-cta:hover {
    background: var(--yellow);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, .4)
}

.slide-stats {
    position: absolute;
    bottom: 24px;
    right: 36px;
    display: flex;
    z-index: 4;
    color: #fff
}

.slide-stat {
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, .2);
    text-align: center
}

.slide-stat:last-child {
    border: none
}

.slide-stat .n {
    font-size: 20px;
    font-weight: 800
}

.slide-stat .l {
    font-size: 10px;
    opacity: .55;
    margin-top: 2px
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t)
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, .25)
}

.slider-arrow.prev {
    left: 16px
}

.slider-arrow.next {
    right: 16px
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 72px;
    display: flex;
    gap: 7px;
    z-index: 10
}

.dot {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    transition: var(--t);
    border: none
}

.dot.active {
    background: #fff;
    width: 34px
}

/* Slide bg colors */
.slide-a {
    background: linear-gradient(135deg, #2c3e50, #4a235a)
}

.slide-b {
    background: linear-gradient(135deg, #1a3a2e, #2d6a4f)
}

.slide-c {
    background: linear-gradient(135deg, #1c2e4a, #0f3460)
}

/* ===== MARQUEE ===== */
.ticker {
    background: var(--yellow);
    padding: 9px 0;
    overflow: hidden;
    position: relative
}

.ticker::before,
.ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2
}

.ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--yellow), transparent)
}

.ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--yellow), transparent)
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tick 28s linear infinite
}

.ticker-track:hover {
    animation-play-state: paused
}

.ticker-item {
    padding: 0 52px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap
}

.ticker-red {
    background: var(--primary)
}

.ticker-red::before {
    background: linear-gradient(to right, var(--primary), transparent)
}

.ticker-red::after {
    background: linear-gradient(to left, var(--primary), transparent)
}

.ticker-red .ticker-item {
    color: #fff
}

@keyframes tick {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.section {
    padding: 36px 0
}

.sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border-md);
    position: relative;
}

.sec-header::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 52px;
    height: 1.5px;
    background: linear-gradient(to right, var(--primary), var(--primary-lt));
    border-radius: 2px;
}

.sec-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.sec-title span {
    color: var(--primary);
    margin-right: 6px
}

.see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--t)
}

.see-all:hover {
    opacity: .8
}

/* 2-col */
.two-col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--t);
    border: 1px solid var(--border-md);
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
}

/* Hover nổi lên */
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-img {
    position: relative;
    overflow: hidden;
    height: 148px;
    flex-shrink: 0
}

.card-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .4s ease
}

.article-card:hover .card-img img {
    transform: scale(1.04)
}

.card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: .4px
}

.card-body {
    padding: 14px
}

.card-meta {
    font-size: 11px;
    color: var(--text-lt);
    margin-bottom: 7px
}

.card-meta .sep {
    margin: 0 6px;
    opacity: .4
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s
}

.article-card:hover .card-title {
    color: var(--primary)
}

.card-excerpt {
    font-size: 12.5px;
    color: var(--text-lt);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5
}

/* ===== CATEGORY GRID (5 bài: 1 featured + 4 nhỏ) ===== */
.cat-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 12px
}

.cat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover)
}

/* Featured card spans 2 rows */
.cat-card.featured {
    grid-row: 1 / 3
}

/* Featured: image fills entire card */
.cat-card.featured .card-img {
    position: absolute;
    inset: 0;
    height: 100% !important
}

.cat-card.featured .card-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important
}

/* Featured: text as overlay at bottom */
.cat-card.featured .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2
}

.cat-card.featured .card-title {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 0
}

.cat-card.featured .card-excerpt {
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    margin-top: 5px
}

/* Non-featured: normal layout */
.cat-card:not(.featured) .card-img {
    height: 130px
}

.cat-card:not(.featured) .card-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important
}

.cat-card .card-img {
    position: relative;
    overflow: hidden
}

.cat-card .card-body {
    padding: 10px 12px
}

.cat-card:not(.featured) .card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0
}

/* ===== SHOPEE BANNER ===== */
.shopee-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #fff0eb, #fff8f6);
    border: 1.5px solid rgba(238, 77, 45, .2);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: var(--t);
    color: inherit;
    text-decoration: none;
    margin: 16px 0
}

.shopee-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--shopee)
}

.shopee-ico {
    width: 60px;
    height: 60px;
    background: var(--shopee);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    flex-shrink: 0
}

.shopee-info {
    flex: 1
}

.shopee-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--shopee);
    margin-bottom: 3px
}

.shopee-info p {
    font-size: 12.5px;
    color: var(--text-md)
}

.shopee-btn {
    background: var(--shopee);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--t)
}

.shopee-btn:hover {
    background: #d44224
}

/* ===== SIDEBAR ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-md);
    transition: var(--t);
}

.widget:hover {
    box-shadow: var(--shadow-md);
}

.widget-hd {
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border-md);
    background: linear-gradient(to right, #f8fafc, #fff);
    letter-spacing: 0.1px;
}

.widget-bd {
    padding: 14px 16px
}

.cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-md);
    transition: var(--t)
}

.cat-list li:last-child a {
    border: none
}

.cat-list li a:hover {
    color: var(--primary);
    padding-left: 4px
}

.cat-list li a span {
    font-size: 11px;
    background: var(--bg);
    color: var(--text-lt);
    padding: 2px 7px;
    border-radius: 50px
}

.pop-list .pop-item {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border)
}

.pop-list .pop-item:last-child {
    border: none;
    padding-bottom: 0
}

.pop-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0
}

.pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pop-info .title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    line-height: 1.4;
    transition: color .2s
}

.pop-item:hover .title {
    color: var(--primary)
}

.pop-info .date {
    font-size: 11px;
    color: var(--text-lt)
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px
}

.tag {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-md);
    padding: 4px 11px;
    border-radius: 4px;
    font-size: 12px;
    transition: var(--t)
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

/* ===== FB SHARE ===== */
.share-box {
    background: #f0f4ff;
    border: 1px solid #c3d4fd;
    border-radius: var(--radius);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px
}

.share-box p {
    font-size: 13.5px;
    color: var(--text-md);
    flex: 1
}

.btn-fb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fb);
    color: #fff;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
    text-decoration: none
}

.btn-fb:hover {
    background: #1466d0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(24, 119, 242, .35)
}

.btn-fb svg {
    width: 16px;
    height: 16px;
    fill: #fff
}

/* ===== ARTICLE PAGE ===== */
.breadcrumb {
    padding: 12px 0;
    font-size: 12.5px;
    color: var(--text-lt);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap
}

.breadcrumb a {
    color: var(--primary);
    transition: color .2s
}

.breadcrumb a:hover {
    opacity: .8
}

.breadcrumb .sep {
    opacity: .4
}

.article-wrap {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 28px;
    padding: 0 0 40px
}


.article-hero-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px
}

.article-cats {
    display: flex;
    gap: 8px;
    margin-bottom: 10px
}

.a-cat {
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px
}

.article-title {
    font-family: 'Merriweather', serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 14px
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-lt);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px
}

.article-meta-bar span {
    display: flex;
    align-items: center;
    gap: 5px
}

.article-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-md)
}

.article-body h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--primary)
}

.article-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 8px
}

.article-body p {
    margin-bottom: 16px
}

.article-body ul,
.article-body ol {
    margin: 12px 0 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.article-body li {
    font-size: 14.5px
}

.article-body img {
    border-radius: var(--radius-sm);
    margin: 18px 0;
    width: 100%;
    max-height: 380px;
    object-fit: cover
}

.article-body blockquote {
    border-left: 3px solid var(--yellow);
    background: rgba(243, 156, 18, .06);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text)
}

.article-body strong {
    color: var(--text);
    font-weight: 700
}

.article-body a {
    color: var(--primary);
    border-bottom: 1px solid rgba(192, 57, 43, .25)
}

.article-body a:hover {
    border-bottom-color: var(--primary)
}

/* Related */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 6px
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 30%, #fdf2f8 70%, #fff1f2 100%);
    padding: 24px;
}

.auth-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.auth-hd {
    background: linear-gradient(135deg, var(--accent) 0%, #0f172a 100%);
    padding: 32px 36px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-hd::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(225, 29, 72, 0.2);
    border-radius: 50%;
}

.auth-hd::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
}

.auth-hd .logo-name {
    color: #fff;
    font-size: 24px;
    margin-bottom: 6px;
    display: block;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.auth-hd p {
    font-size: 13px;
    opacity: .65;
    position: relative;
    z-index: 1;
}

.auth-body {
    padding: 32px 36px;
}

.auth-tabs {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 9px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-lt);
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: var(--t);
    border: none;
    background: none;
}

.auth-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: none
}

.auth-form.active {
    display: block
}

.form-group {
    margin-bottom: 16px
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-md);
    margin-bottom: 6px
}

.form-input {
    width: 100%;
    border: 1.5px solid var(--border-md);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--t);
    background: #fcfdfe;
}

.form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--t);
    margin-top: 6px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-dk) 0%, #9f1239 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px
}

.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px
}

.demo-accounts {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-lt)
}

.demo-accounts h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-md);
    margin-bottom: 10px
}

.demo-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border)
}

.demo-row:last-child {
    border: none
}

.demo-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    color: #fff
}

/* ===== ADMIN ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* Sidebar – elegant dark slate */
.admin-sidebar {
    width: 248px;
    background: var(--sidebar-bg);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 10;
}

.admin-logo {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(0, 0, 0, 0.15);
}

.admin-logo span {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.admin-logo span strong {
    color: var(--primary-lt);
}

.admin-logo small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .38);
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.admin-nav {
    padding: 10px 12px;
    flex: 1;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .95) !important;
    transition: var(--t);
    border-radius: 10px;
    margin-bottom: 2px;
    text-decoration: none;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
    transform: translateX(3px);
}

.admin-nav a.cur {
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.35) 0%, rgba(225, 29, 72, 0.12) 100%);
    color: #ffffff !important;
    font-weight: 700;
    border-left: 3px solid #e11d48;
    padding-left: 11px;
}

.admin-nav .nav-group {
    padding: 14px 14px 6px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, .25);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border-md);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 0 var(--border-md), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.admin-topbar h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}

.admin-main {
    padding: 28px;
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-md);
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    transition: var(--t);
    box-shadow: var(--shadow-xs);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.stat-card .num {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.stat-card .lbl {
    font-size: 12px;
    color: var(--text-lt);
    font-weight: 500;
    letter-spacing: 0.1px;
}

.stat-card .icon {
    position: absolute;
    right: 18px;
    top: 18px;
    font-size: 30px;
    opacity: .10;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-lt);
    background: var(--bg);
    border-bottom: 1.5px solid var(--border-md);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.admin-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-md);
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.role-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    color: #fff
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--t);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm:active {
    transform: translateY(0);
}

.btn-primary-sm {
    background: var(--primary);
    color: #fff;
}

.btn-primary-sm:hover {
    background: var(--primary-dk);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline-sm {
    background: #fff;
    border-color: var(--border-dk);
    color: var(--text-md);
}

.btn-outline-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fffafa;
}

.btn-danger-sm {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
}

.btn-danger-sm:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.alert-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 18px
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a
}

.alert-error {
    background: #fef2f2;
    border: 1px solid#fecaca;
    color: #dc2626
}

/* White card wrapper */
.card-box {
    background: #fff;
    border: 1px solid var(--border-md);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
    transition: var(--t);
}

.card-box:hover {
    box-shadow: var(--shadow-sm);
}

.card-box h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-md);
    color: var(--text);
    letter-spacing: -0.1px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--accent);
    color: rgba(255, 255, 255, .75);
    margin-top: 60px
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px
}

.footer-brand .logo-name {
    color: #fff;
    font-size: 20px;
    display: block;
    margin-bottom: 10px
}

.footer-brand .logo-name span {
    color: var(--yellow)
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .45);
    max-width: 240px
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    transition: var(--t)
}

.footer-col ul li a:hover {
    color: var(--yellow)
}

.footer-btm {
    border-top: 1px solid rgba(255, 255, 255, .07);
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .35)
}

.footer-btm a {
    color: rgba(255, 255, 255, .5);
    transition: var(--t)
}

.footer-btm a:hover {
    color: var(--yellow)
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
    .slide-text {
        width: 50%;
        padding-left: 36px
    }

    .two-col {
        grid-template-columns: 1fr 260px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:768px) {
    nav {
        display: none
    }

    .hero-slider {
        height: 360px
    }

    .slide-text {
        width: 60%;
        padding-left: 20px
    }

    .slide-stats {
        display: none
    }

    .two-col {
        grid-template-columns: 1fr
    }

    .articles-grid {
        grid-template-columns: 1fr
    }

    .cat-grid {
        grid-template-columns: 1fr
    }

    .cat-card.featured {
        grid-row: auto
    }

    .article-wrap {
        grid-template-columns: 1fr
    }

    .related-grid {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .share-box {
        flex-direction: column;
        text-align: center
    }

    .shopee-banner {
        flex-direction: column;
        text-align: center
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .admin-sidebar {
        display: none
    }

    .auth-body {
        padding: 20px
    }
}

@media(max-width:480px) {
    .container {
        padding: 0 16px
    }

    .header-inner {
        padding: 0 16px
    }

    .slide-text {
        width: 95%;
        padding-left: 16px
    }

    .hero-slider {
        height: 320px
    }
}

/* ===== IMAGE FIXES FOR ARTICLE PAGE ===== */
.article-hero-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px
}

.article-body img {
    border-radius: var(--radius-sm);
    margin: 12px 0;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block
}

.article-body blockquote {
    border-left: 3px solid var(--yellow);
    background: rgba(243, 156, 18, .06);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text);
    font-size: 14px
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal-overlay.open {
    display: flex
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2)
}

.modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border)
}

.modal-hd h2 {
    font-size: 16px;
    font-weight: 700
}

.modal-close {
    border: none;
    background: var(--bg);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-lt)
}

.modal-close:hover {
    background: var(--border);
    color: var(--text)
}

.modal-body {
    padding: 22px
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px
}

/* ===== CART POPUP ===== */
.cart-popup {
    display: none;
    position: fixed;
    top: 70px;
    right: 24px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 900;
    overflow: hidden
}

.cart-popup.open {
    display: block
}

.cart-popup-hd {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border)
}

.cart-item-info {
    flex: 1;
    font-size: 13px
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 3px
}

.cart-item-price {
    color: var(--primary);
    font-size: 12px
}

.cart-item-qty {
    font-size: 12px;
    color: var(--text-lt);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px
}

.cart-popup-footer {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa
}

.cart-total {
    font-weight: 800;
    color: var(--primary)
}

.cart-checkout {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer
}

/* ===== SEARCH RESULTS ===== */
.search-results-box {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    border: 1px solid var(--border);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-box.open {
    display: block;
}

.search-result-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background .15s
}

.search-result-item:last-child {
    border: none
}

.search-result-item:hover {
    background: var(--bg)
}

.search-result-img {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0
}

.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.search-result-info .title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.4
}

.search-result-info .cat {
    font-size: 11px;
    color: var(--primary)
}

.search-no-result {
    padding: 20px;
    text-align: center;
    color: var(--text-lt);
    font-size: 13px
}

/* ===== ARTICLE IMAGE CONTROL ===== */

/* Fix overflow: ngăn content bài viết tràn ngang */
.article-wrap {
    overflow: hidden
}

.article-main {
    min-width: 0;
    overflow: hidden
}

/* Class dùng trong nội dung bài (data.php) */
img.article-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px;
    margin: 14px 0
}

/* Tất cả img trong .article-body (kể cả không có class) */
.article-body img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 6px;
    margin: 12px 0
}

/* Hero image của trang bài viết */
img.article-hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 240px !important;
    object-fit: cover !important;
    border-radius: 10px;
    margin-bottom: 16px
}

/* Ảnh thumbnail sidebar */
.pop-thumb img {
    max-height: 60px !important;
    width: 60px !important;
    object-fit: cover !important
}

/* Global safety: không cho img nào vượt container */
.article-main img,
.article-body img,
.article-wrap img {
    max-width: 100% !important;
    box-sizing: border-box
}

/* ===== USER DROPDOWN ===== */
.user-dropdown-wrap {
    position: relative
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1.5px solid var(--border-dk);
    border-radius: 50px;
    padding: 5px 12px 5px 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: var(--t)
}

.user-chip:hover {
    background: var(--bg);
    border-color: var(--primary)
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
    border: 1px solid var(--border);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s, transform .2s
}

.user-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all
}

.user-drop-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px
}

.user-drop-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.user-drop-divider {
    height: 1px;
    background: var(--border);
    margin: 2px 0
}

.user-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s
}

.user-drop-item:hover {
    background: var(--bg)
}

.user-drop-item:last-child {
    border-radius: 0 0 14px 14px
}

.user-drop-logout {
    color: #e74c3c
}

.user-drop-logout:hover {
    background: #fef5f5
}

/* ===== ADMIN CARD HOVER EFFECTS ===== */
.card-box,
.c-box,
.kp-card,
.stat-card,
.bcard {
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.card-box:hover,
.c-box:hover,
.kp-card:hover,
.stat-card:hover,
.bcard:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08) !important;
}

/* ===== FORM INPUTS & LABELS ===== */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-dk);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--text);
    background: #fff;
    transition: var(--t);
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-md);
}