/* ================== RESET CƠ BẢN ================== */
* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #050814;
    background: radial-gradient(circle at top, #20254d 0, #050814 45%, #050814 100%);
    color: #e5e7eb;
    margin: 0;
    padding: 0;
}

/* HEADER / FOOTER */
.header, .footer {
    background: #050814;
    color: #e5e7eb;
    padding: 8px 12px;
}
.header a, .footer a {
    color: inherit;
    text-decoration: none;
}

/* Container chính */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 12px 36px;
}

/* ================== TRANG CHỦ BINTRUYEN ================== */

.home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 12px 36px;
}

/* HERO */
.home-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: radial-gradient(circle at top left, #374151, #111827);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    color: #f9fafb;
    margin-bottom: 20px;
}

.home-hero-left,
.home-hero-right {
    flex: 1 1 320px;
    min-width: 0;
}

/* Logo bintruyen */
.brand-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}
.brand-logo-mark {
    font-size: 28px;
    font-weight: 800;
    text-transform: lowercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #0b1120;
}
.brand-logo-text {
    font-size: 28px;
    font-weight: 800;
    text-transform: lowercase;
    background: linear-gradient(135deg, #f9fafb, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-tagline {
    margin: 4px 0 12px;
    font-size: 14px;
    color: #e5e7eb;
}

/* Ô tìm kiếm */
.home-search {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 6px;
}
.home-search-input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(156, 163, 175, 0.5);
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
    background: rgba(15, 23, 42, 0.7);
    color: #f9fafb;
}
.home-search-input::placeholder {
    color: #9ca3af;
}
.home-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

.home-search-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 4px;
}
.search-summary {
    font-size: 13px;
    color: #e5e7eb;
}

/* Nút chung */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    color: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-color: transparent;
    color: #f9fafb;
}
.btn-primary:hover {
    filter: brightness(1.05);
}
.btn-outline {
    border-color: rgba(148, 163, 184, 0.9);
    color: #e5e7eb;
    background: transparent;
}
.btn-outline:hover {
    background: rgba(148, 163, 184, 0.2);
}
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Tabs trong HERO */
.home-tabs {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 14px 14px 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    height: 100%;
}

.home-tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.home-tabs-header .tab-btn {
    flex: 1;
    border-radius: 999px;
    border: none;
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
    background: rgba(31, 41, 55, 0.9);
    color: #9ca3af;
}
.home-tabs-header .tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #f9fafb;
}

/* Body tab */
.home-tabs-body .tab-pane {
    display: none;
}
.home-tabs-body .tab-pane.active {
    display: block;
}

.mini-story-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mini-story-list li + li {
    margin-top: 8px;
}
.mini-story-link {
    display: block;
    text-decoration: none;
    color: #e5e7eb;
}
.mini-story-title {
    font-size: 13px;
    font-weight: 600;
}
.mini-story-meta {
    font-size: 11px;
    color: #9ca3af;
}
.mini-story-meta .sep {
    margin: 0 4px;
}

.home-tabs-footer {
    margin-top: 8px;
    text-align: right;
}
.link-more {
    font-size: 12px;
    color: #a5b4fc;
    text-decoration: none;
}
.link-more:hover {
    text-decoration: underline;
}

/* ================== SECTION CHUNG ================== */
.home-section {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 18px;
    padding: 16px 14px 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(30, 64, 175, 0.5);
}
.home-section-search {
    border-color: rgba(56, 189, 248, 0.6);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.section-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #e5e7eb;
}
.section-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.home-empty {
    font-size: 13px;
    color: #9ca3af;
}

/* Thể loại */
.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    text-decoration: none;
}
.badge-genre {
    background: rgba(30, 64, 175, 0.7);
    color: #e5e7eb;
}
.badge-genre:hover {
    background: rgba(59, 130, 246, 0.9);
}
.badge-count {
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.8;
}
.genre-name {
    white-space: nowrap;
}

/* ================== STORY CARD GRID ================== */
/* 👉 PC: card nhỏ hơn, nhiều truyện / hàng hơn */
.story-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.story-card {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    border: 1px solid rgba(30, 64, 175, 0.7);
    overflow: hidden;
    text-decoration: none;
    color: #e5e7eb;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.story-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.9);
}

.story-card-thumb {
    width: 100%;
    padding-top: 135%; /* hơi thấp hơn để card gọn hơn */
    background-position: center;
    background-size: cover;
    background-color: #1f2937;
}

.story-card-body {
    padding: 8px 8px 7px;
}

.story-title {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
}

.story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}
.story-author {
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.story-chapters {
    margin-left: auto;
}

.story-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 3px;
}
.badge-genre-pill {
    background: rgba(30, 64, 175, 0.9);
    padding: 2px 7px;
    border-radius: 999px;
}
.story-views {
    font-size: 11px;
}

/* Tag nhỏ VIP/HOT/Full */
.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 10px;
}
.label-pill {
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
}
.label-vip {
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #111827;
}
.label-hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #111827;
}
.label-complete {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #052e16;
}

/* ================== LAYOUT CHÍNH: TRÁI - PHẢI ================== */
.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.home-main-column,
.home-side-column {
    min-width: 0;
}

/* Truyện đã đọc */
.recent-story-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.recent-story-list li + li {
    margin-top: 8px;
}
.recent-story-link {
    display: block;
    text-decoration: none;
    color: #e5e7eb;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid transparent;
    font-size: 12px;
}
.recent-story-link:hover {
    border-color: rgba(129, 140, 248, 0.8);
    background: rgba(30, 64, 175, 0.85);
}
.recent-story-title {
    font-weight: 600;
    margin-bottom: 2px;
}
.recent-story-meta {
    font-size: 11px;
    color: #9ca3af;
}
.recent-story-meta .sep {
    margin: 0 4px;
}

/* ================== CONTENT CŨ (chapter) ================== */
.story-list, .chapter-list {
    list-style: none;
    padding-left: 0;
}
.story-list li, .chapter-list li {
    margin-bottom: 5px;
}

/* Nội dung chương */
.chapter-content {
    background: #f9fafb;
    color: #111827;
    padding: 18px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 15px;
}

/* FOOTER */
.footer {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
}

/* ================== RESPONSIVE ================== */

/* Tablet & mobile */
@media (max-width: 900px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
    /* Tablet: 4 truyện / hàng nếu đủ rộng */
    .story-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Mobile */
@media (max-width: 640px) {
    .main,
    .home-page {
        padding: 16px 10px 28px;
    }

    .home-hero {
        flex-direction: column;
        padding: 14px 12px;
        gap: 14px;
    }

    .home-hero-right {
        order: -1; /* Đưa block "xem nhiều / full" lên trên trên mobile */
    }

    .brand-logo-mark,
    .brand-logo-text {
        font-size: 22px;
    }
    .brand-tagline {
        font-size: 13px;
    }

    /* Search stack dọc, nút full width */
    .home-search {
        flex-direction: column;
        align-items: stretch;
    }
    .home-search-input {
        width: 100%;
        font-size: 13px;
    }
    .home-search .btn-primary {
        width: 100%;
    }

    .section-title {
        font-size: 15px;
    }
    .section-subtitle {
        font-size: 11px;
    }

    .home-section {
        padding: 14px 10px 12px;
    }

    /* 👉 Mobile phổ biến: 3 truyện / hàng */
    .story-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .story-card-body {
        padding: 6px 6px 5px;
    }
}

/* Màn rất nhỏ (ví dụ 320px) – giảm còn 2 truyện / hàng cho dễ bấm */
@media (max-width: 420px) {
    .story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* === Added for 2-column tabs on desktop === */
.tab-two-col{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}
@media(min-width:992px){
    .tab-two-col{
        grid-template-columns:1fr 1fr;
    }
}
/* === Story item with thumbnail === */

.story-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.story-thumb {
    width: 58px;
    height: 78px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #111827;
}

.story-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-info {
    flex: 1;
    min-width: 0;
}

.clean-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.clean-meta {
    font-size: 13px;
    color: #94a3b8;
}

/* GRID PC = 2 COLUMNS */
.story-grid-clean {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* PC: 2 cột */
@media(min-width: 992px) {
    .story-grid-clean {
        grid-template-columns: 1fr 1fr;
    }
}

/* ITEM hover */
.story-grid-item-clean {
    padding: 8px;
    border-radius: 8px;
    transition: .15s;
}

.story-grid-item-clean:hover {
    background: rgba(255, 255, 255, 0.05);
}
.clean-icons {
    margin-top: 4px;
    font-size: 13px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ic-full, .ic-vip, .ic-hot, .ic-new {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    background: rgba(255,255,255,0.07);
}

.ic-full { color:#4ade80; }   /* xanh lá */
.ic-vip  { color:#fbbf24; }   /* vàng */
.ic-hot  { color:#f87171; }   /* đỏ */
.ic-new  { color:#60a5fa; }   /* xanh */



/* Giới hạn tiêu đề truyện gợi ý 1 dòng + dấu ... */
.story-title,
.clean-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ================= HEADER ================ */
.header {
    background: #050814;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.nav-logo-mark {
    padding: 5px 10px;
    background: #ff4d4f;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
}
.nav-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* MENU */
.nav-menu {
    display: flex;
    gap: 20px;
}
.nav-item {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 15px;
}
.nav-item:hover {
    color: #fff;
}

/* LOGIN */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-btn {
    padding: 6px 12px;
    border: 1px solid #fff;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}
.nav-btn:hover {
    background: rgba(255,255,255,0.15);
}

/* MOBILE */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 14px;
        background: #0a0f1b;
        padding: 12px;
        border-radius: 10px;
    }
    .nav-menu.show {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
}

/* ========== CARD ========== */
.icard {
    display: block;
    text-decoration: none;
    color: #fff;
}

/* Thumbnail */
.ic-thumb {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 10px;
}
.ic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== BADGE ICON GÓC PHẢI ========== */
.ic-badges {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ic {
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Màu icon */
.ic.full { background: #22c55e; } /* xanh lá */
.ic.hot  { background: #ef4444; } /* đỏ */
.ic.vip  { background: #f59e0b; } /* vàng */

/* ========== INFO DƯỚI ẢNH ========== */
.ic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 10px 8px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

.ic-title {
    font-size: 14px;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ic-chap {
    font-size: 12px;
    margin-top: 4px;
    color: #d1d5db;
}

/* Mobile tối ưu */
@media(max-width:640px){
    .ic { font-size: 10px; padding: 2px 5px; }
    .ic-title { font-size: 13px; }
    .ic-chap { font-size: 11px; }
}

/* =========================================
   MOBILE VERSION – 4 truyện / hàng
   ========================================= */
@media(max-width: 640px) {

    /* GRID: 4 ITEM / ROW */
    .suggest-grid,
    .story-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }

    /* Thumbnail nhỏ hơn */
    .ic-thumb {
        aspect-ratio: 3/4.8 !important;
        border-radius: 8px !important;
    }

    /* Icon góc phải thu nhỏ */
    .ic-badges {
        top: 4px !important;
        right: 4px !important;
        gap: 3px !important;
    }
    .ic {
        font-size: 9px !important;
        padding: 1px 4px !important;
        border-radius: 3px !important;
    }

    /* Title + chapter box */
    .ic-info {
        padding: 6px 4px !important;
        background: rgba(0,0,0,0.45) !important;
    }

    /* TITLE không bold, nhỏ lại */
    .ic-title {
        font-size: 11px !important;
        font-weight: 400 !important; /* bỏ đậm */
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
    }

    /* CHAPTER nhỏ hơn */
    .ic-chap {
        font-size: 10px !important;
        margin-top: 2px !important;
    }
}

@media (min-width: 641px) {
    .ic-title {
        font-weight: 400 !important; /* bỏ bold */
    }
}


/* ================= MOBILE TAB — THU NHỎ ================= */
@media (max-width: 640px) {
    .tab-big {
        padding: 8px 0 !important;        /* giảm chiều cao nút */
        font-size: 13px !important;       /* chữ nhỏ hơn */
        border-radius: 8px !important;    /* bo góc nhỏ lại */
    }
    .tab-big.active {
        font-size: 13px !important;
    }

    .tab-big img,
    .tab-big svg {
        transform: scale(0.8);            /* thu nhỏ icon 🔥 📚 nếu có */
    }
}
 

/* ================================
   TRUYỆN MỚI — PC + MOBILE UI
================================ */

.new-list {
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.new-item a {
    display:flex;
    align-items:center;
    gap:14px;
    padding:10px 12px;
    border-radius:12px;
    background:rgba(15,23,42,0.65);
    border:1px solid rgba(48,73,150,0.35);
    text-decoration:none;
    color:#fff;
}

.new-thumb {
    width:60px;
    height:80px;
    overflow:hidden;
    border-radius:8px;
    flex-shrink:0;
}
.new-thumb img {
    width:100%;
    height:100%;
    object-fit:cover;
}

/* BODY */
.new-body {
    flex:1;
    min-width:0;
}

.new-title {
    font-size:15px;
    font-weight:600;
    margin-bottom:4px;
    color:#e5e7eb;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* TAG ICON */
.tag {
    padding:2px 6px;
    border-radius:6px;
    font-size:11px;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:4px;
}
.tag-full { background:rgba(34,197,94,0.2); color:#4ade80; }
.tag-hot  { background:rgba(239,68,68,0.2); color:#f87171; }
.tag-vip  { background:rgba(234,179,8,0.2); color:#fbbf24; }

.new-meta-pc {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13px;
    color:#94a3b8;
}

.new-genre { color:#a5b4fc; }

/* MOBILE STYLE */
.new-meta-mobile {
    display:none;
    font-size:13px;
    color:#94a3b8;
    margin-top:2px;
}

.new-tags-mobile {
    margin-left:6px;
}

/* =============================
   RESPONSIVE
============================= */
@media(max-width: 640px){

    .new-item a {
        padding:8px 10px;
        gap:10px;
    }

    .new-thumb {
        width:50px;
        height:68px;
    }

    .new-title {
        font-size:14px;
        font-weight:500;
        white-space:normal;
        -webkit-line-clamp:2;
        display:-webkit-box;
        -webkit-box-orient:vertical;
    }

    /* Mobile: Ẩn PC meta, bật Mobile meta */
    .new-meta-pc { display:none; }
    .new-meta-mobile { display:block; }

    .tag {
        padding:1px 4px;
        font-size:10px;
        border-radius:4px;
    }
}

 
 

/* ================= HEADER NEW ================= */

.bt-header {
    width:100%;
    background:#050814;
    border-bottom:1px solid rgba(255,255,255,0.06);
    padding:10px 12px;
}

/* LOGO */
.bt-logo {
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
}
.lg-box {
    background:linear-gradient(135deg,#f97316,#ec4899);
    padding:7px 14px;
    border-radius:12px;
    font-weight:700;
    color:#111;
}
.lg-text {
    font-size:22px;
    font-weight:700;
    color:white;
}

/* PC HEADER LAYOUT */
.bt-header-pc {
    max-width:1200px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

/* MENU (PC) */
.bt-menu {
    display:flex;
    align-items:center;
    gap:14px;
}
.bt-menu-btn {
    padding:9px 18px;
    border-radius:12px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.12);
    color:#fff;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
}
.bt-menu-btn:hover {
    background:rgba(255,255,255,0.15);
}

/* ================= AUTH BUTTONS ================= */
.bt-auth .bt-btn,
.bt-auth .bt-btn-pink,
.bt-mb-auth .bt-btn,
.bt-mb-auth .bt-btn-pink {
    padding:9px 20px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    height:42px;
    white-space:nowrap;
}

/* Đăng nhập */
.bt-btn {
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    color:#fff;
}
.bt-btn:hover {
    background:rgba(255,255,255,0.18);
}

/* Đăng ký */
.bt-btn-pink {
    background:linear-gradient(135deg,#6366f1,#ec4899);
    border:none;
    color:white !important;
}
.bt-btn-pink:hover {
    filter:brightness(1.12);
}
/* ================= DROPDOWN FIX ================= */
.bt-dropdown { 
    position: relative; 
}

/* Dropdown ẩn mặc định, mở bằng class .open (JS) */
.bt-dropdown-list {
    position: absolute;
    top: 40px;                  /* Không tụt xuống quá sâu nữa */
    left: 0;
    min-width: 180px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 6px 0;
    display: none !important;   /* Ghi đè toàn bộ CSS cũ */
    z-index: 99999 !important;  /* Cho dropdown nổi lên trên */
}

/* Mở menu */
.bt-dropdown-list.open {
    display: block !important;
}

.bt-dropdown-list a {
    display: block;
    padding: 10px 14px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.bt-dropdown-list a:hover {
    background: rgba(255,255,255,0.1);
}

/* IMPORTANT: XÓA HOVER NÀY — LÀ THỦ PHẠM CHÍNH */
.bt-dropdown:hover .bt-dropdown-list {
    /* XÓA DÒNG NÀY */
}


/* ================= MOBILE ================= */
.bt-header-mobile { display:none; }

@media(max-width:768px){

    .bt-header-pc { display:none; }
    .bt-header-mobile { display:block; }

    /* ROW 1 = Logo + Auth */
    .bt-mb-row1 {
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:6px 0 10px 0;
    }

    /* Auth Buttons right corner */
    .bt-mb-auth {
        display:flex;
        align-items:center;
        gap:8px;
    }

    /* ROW 2 = Menu nhỏ */
    .bt-mb-row2 {
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding-top:4px;
    }

    /* Mobile Menu Buttons */
    .bt-menu-btn {
        padding:7px 14px;
        font-size:14px;
        border-radius:10px;
    }
}
