/* ── TÙY CHỈNH THEO ROOT PALETTE MỚI ── */
body {
    background-color: var(--navy-bg);
    color: var(--text-main);
}

.breadcrumb-container {
    margin-top: 0;
    padding: 0;
}

/* ── BANNER SÁNG TẠO MỚI (CREATIVE GLASS HERO) ── */
.hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07);
    border: 1px solid var(--border-color);
}

/* Glow Orbs trang trí hiệu ứng sáng */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.orb-1 {
    top: -100px;
    right: -50px;
    width: 350px;
    height: 350px;
    background: rgba(217, 119, 6, 0.12);
}

.orb-2 {
    bottom: -100px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(37, 99, 235, 0.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.hero-text {
    flex: 1 1 48%; /* Cho phép cột nội dung cân bằng */
}

/* Group Badge Đầu Banner */
.hero-badge-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(217, 119, 6, 0.08);
    color: var(--gold-hover);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Tiêu đề & Mô tả */
.hero-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.highlight-creative {
    background: linear-gradient(120deg, var(--gold) 0%, #b45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 1.8rem;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--navy-input);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 2.2rem;
    background: var(--gold);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}

.btn-hero-primary:hover {
    background: var(--gold-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(180, 83, 9, 0.35);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    background: #ffffff;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-hero-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--navy-input);
    transform: translateY(-2px);
}

/* ── BÊN PHẢI: MICRO DASHBOARD INTERACTIVE (CẢI TIẾN LẤP ĐẦY KHÔNG GIAN) ── */
.hero-interactive {
    flex: 1 1 45%; /* Mở rộng chiều rộng chiếm không gian bên phải */
    max-width: 520px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

/* Thẻ chính */
.card-main {
    padding: 24px;
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 100%;
}

.card-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

.main-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.app-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

.main-card-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.progress-bar-custom {
    flex: 1;
    height: 10px;
    background: var(--navy-input);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, #10b981 100%);
    border-radius: 20px;
}

.progress-txt {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-item {
    font-size: 0.75rem;
    background: var(--navy-input);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* Thẻ điểm số (Floating Top-Left) */
/* ── THẺ PHỤ 1: ĐIỂM SỐ (Đẩy cao lên trên & dịch sang trái nhiều hơn) ── */
.card-score {
    position: absolute;
    top: -70px;          /* Đẩy cao hẳn lên phía trên */
    left: -40px;         /* Dịch mạnh ra lề trái */
    z-index: 3;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float-slow 4s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.score-icon {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.score-val {
    display: block;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1;
}

.score-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Thẻ Huy Hiệu (Floating Top-Right) */
/* ── THẺ PHỤ 2: HUY HIỆU (Điều chỉnh giữ cân bằng phía bên phải) ── */
.card-badge {
    position: absolute;
    top: 10%;
    transform: translateY(-50%);
    right: -35px;        /* Đẩy mạnh sang lề phải */
    z-index: 3;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    animation: float-slow 4s ease-in-out infinite 2s;
}

.badge-trophy {
    color: #f59e0b;
    font-size: 1.3rem;
}

/* Thẻ Đánh giá bổ sung ở góc dưới */
/* ── THẺ PHỤ 3: ĐÁNH GIÁ (Đẩy xuống dưới & dịch sang trái hẳn) ── */
.card-review {
    position: absolute;
    bottom: -70px;       /* Đẩy sâu xuống dưới thẻ chính */
    left: -30px;         /* Dịch ra phía ngoài lề trái */
    z-index: 3;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    animation: float-slow 4s ease-in-out infinite 1s; /* Thêm hiệu ứng nổi nhẹ lệch nhịp */
}

.avatar-group {
    display: flex;
}

.avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid #ffffff;
    margin-right: -8px;
}

.stars {
    color: #f59e0b;
    font-size: 0.75rem;
    line-height: 1;
}

.review-text small {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ── THANH LỌC ── */
.filter-bar {
    background: var(--navy-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
}

.filter-bar .form-control,
.filter-bar .form-select {
    background-color: var(--navy-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
    background-color: var(--navy-input);
    color: var(--text-main);
}

.filter-bar .form-control::placeholder {
    color: var(--text-muted);
}

.filter-bar .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    transition: var(--transition);
}

.filter-bar .btn-outline-secondary:hover {
    background: var(--navy-input);
    border-color: var(--gold);
    color: var(--gold);
}

/* ── TIÊU ĐỀ PHÂN ĐOẠN ── */
.app-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-left: 12px;
    display: flex;
    align-items: center;
    color: var(--text-main);
}
.app-section-title i { margin-right: 10px; }
.title-english { border-left: 5px solid #2563eb; }
.title-english i { color: #2563eb; }

.title-math { border-left: 5px solid var(--gold); }
.title-math i { color: var(--gold); }

.title-other { border-left: 5px solid #475569; }
.title-other i { color: #475569; }

/* ── GRID LAYOUT ── */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.app-grid-item.hidden { display: none; }

/* ── NÚT XEM THÊM ── */
.view-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px auto;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    background: transparent;
    transition: var(--transition);
}
.view-more-btn:hover {
    background: var(--gold);
    color: var(--white);
}
.view-more-btn.hidden { display: none; }

/* ── TRẠNG THÁI TRỐNG ── */
.empty-state {
    text-align: center;
    padding: 40px;
    background: var(--navy-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
}

/* ── WRAPPER CHÍNH ── */
.app-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    width: 100%;
    background-color: var(--navy-bg);
    padding: calc(var(--nav-height) + 20px) 16px 60px;
}

.price {
    font-weight: 600;
    color: var(--gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    .hero-text {
        text-align: center;
    }
    .hero-badge-group, .hero-stats, .hero-actions {
        justify-content: center;
    }
    .hero-interactive {
        flex: 0 0 auto;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
    .card-score { top: -20px; left: -10px; }
    .card-review { bottom: -20px; left: -10px; }
    .card-badge { right: -10px; }
    .hero-banner { padding: 2.5rem 1.8rem; }
    .hero-text h1 { font-size: 2.2rem; }
}

@media (max-width: 576px) {
    .hero-banner { padding: 1.8rem 1.2rem; border-radius: 18px; }
    .hero-text h1 { font-size: 1.6rem; }
    .hero-text p { font-size: 0.9rem; }
    .hero-stats { gap: 0.8rem; flex-wrap: wrap; }
    .stat-item { flex-direction: column; text-align: center; gap: 4px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .card-score { top: -15px; left: 0px; padding: 6px 12px; }
    .card-review { bottom: -15px; left: 0px; padding: 6px 12px; }
    .card-badge { right: 0px; padding: 6px 12px; }
    .app-grid { grid-template-columns: 1fr; }
}