* {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
}
body {
    font-family: "Inter", sans-serif;
    background: #f5f9fd;
    color: #132e3a;
    line-height: 1.5;
    background-repeat: no-repeat;
}

.header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(130deg, #166353, #0e8b72);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.footer {
    background: linear-gradient(180deg, #178066 0%, #126b56 100%);

    color: rgba(255, 255, 255, 0.78);

    padding: 48px 0 24px;

    border-radius: 32px 32px 0 0;

    margin-top: 40px;

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

    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.footer-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 40px;
}

.footer-col h4 {
    color: #ffffff;

    margin-bottom: 20px;

    font-weight: 700;
}

.footer-col a {
    display: block;

    color: rgba(255, 255, 255, 0.72);

    text-decoration: none;

    margin-bottom: 12px;

    cursor: pointer;

    transition: all 0.25s ease;
}

.footer-col a:hover {
    color: #ffffff;

    transform: translateX(4px);
}

.copyright {
    text-align: center;

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

    padding-top: 24px;

    margin-top: 40px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 48px 0 28px;
}
.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    border-left: 5px solid #2a9d8f;
    padding-left: 20px;
}

.testimonials {
    background: linear-gradient(135deg, #e8f5f0, #ffffff);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.testimonial-card {
    background: white;
    padding: 28px;
    border-radius: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.stars {
    color: #ffc107;
    margin-bottom: 16px;
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #2c5a68;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    background: #f5f9fd;
}
.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s;
}
.blog-card:hover {
    transform: translateY(-4px);
}
.blog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-content {
    padding: 20px;
}
.blog-date {
    font-size: 0.75rem;
    color: #8ba0ac;
    margin-bottom: 8px;
}
.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
/* Glassmorphism nâng cao */
.glass-premium {
    background: rgba(12, 18, 34, 0.6);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.glass-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}
.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.6);
}
/* Gradient nút chính: Xanh cho Nạp / Cam cho Mua hàng */
.btn-primary {
    background: linear-gradient(105deg, #2563eb, #1e40af);
    transition: all 0.2s;
    box-shadow: 0 2px 8px #2563eb50;
}
.btn-primary:hover {
    background: linear-gradient(105deg, #3b82f6, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -4px #2563eb;
}
.btn-buy {
    background: linear-gradient(105deg, #f97316, #ea580c);
    box-shadow: 0 4px 12px #f9731640;
}
.btn-buy:hover {
    background: linear-gradient(105deg, #fb923c, #ea580c);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -2px #f97316;
}
.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}
/* Marquee chuyên nghiệp */
@keyframes smoothMarquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: smoothMarquee 32s linear infinite;
}
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}
/* Custom scroll */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 10px;
}
/* Toast animation */
.toast-notify {
    animation: slideUpFade 0.4s ease forwards;
}
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
    }
}
.badge-hot {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 2px 6px #dc262650;
}
.badge-vip {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.progress-bar {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.ck-editor__editable {
    min-height: 400px !important;
}

.ck-content figure.image {
    position: relative;
    display: inline-block;
}

.ck-content figure.image .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    display: none;
    z-index: 10;
}

.ck-content figure.image:hover .remove-btn {
    display: block;
}

figure {
    margin: 10px 0 !important;
}

.c-my-10 {
    margin: 20px 0 !important;
}

.bg-system {
    background: linear-gradient(135deg, #106a9e 0%, #1e7bb8 100%);
}

.border-color-system {
    position: relative;
    border: 2px solid transparent;
    border-radius: 12px;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #106a9e, #1e7bb8) border-box;
    transition: all 0.5s ease;
    overflow: hidden;
    z-index: 0;
}

.color-system {
    background: linear-gradient(135deg, #106a9e 0%, #1e7bb8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.4s ease;
}

/* Tạo lớp nền động khi hover */
.border-color-system::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #106a9e, #1e7bb8);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
    border-radius: 12px;
}

/* Hover: nền chạy từ trái sang phải */
.border-color-system:hover::before {
    transform: translateX(0);
}

/* Khi hover: đổi màu chữ/icon thành trắng */
.border-color-system:hover .color-system {
    -webkit-text-fill-color: white;
}

.btn-active {
    background: linear-gradient(135deg, #106a9e, #1e7bb8) border-box;
}

.btn-active > .color-system {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: color 0.4s ease;
}

/* TOAST */
.custom-toast {
    border-radius: 18px !important;
    padding: 14px 16px !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(23, 128, 102, 0.15);
    min-width: 280px;
}

.custom-toast-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    margin: 0 !important;
}

.custom-toast-icon {
    margin: 0 10px 0 0 !important;
    border: none !important;
}

.custom-toast .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.35) !important;
    height: 3px !important;
}

.custom-toast .swal2-html-container {
    margin: 0 !important;
}

.custom-toast .swal2-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    margin: 0 !important;
}

.custom-toast .swal2-success-ring,
.custom-toast .swal2-success-fix,
.custom-toast .swal2-success-circular-line-left,
.custom-toast .swal2-success-circular-line-right {
    background: transparent !important;
}

.custom-toast.swal2-show {
    animation: toastShow 0.25s ease;
}

@keyframes toastShow {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tùy chọn: giảm khoảng cách icon và text */
.swal2-icon {
    margin: 0 8px 0 0 !important;
}

.table-container {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.table-row:hover {
    background-color: #f9fafb;
}
.pagination-btn.active {
    background-color: #3b82f6;
    color: white;
}
.loading {
    display: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;

    background: #f3f4f6;
    color: #111827;

    padding: 12px 16px;
    border-radius: 12px;

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

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    color: white;

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

    font-size: 14px;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    color: #6b7280;
    font-size: 18px;
    transition: 0.2s;
}

.toast-close:hover {
    color: #111827;
}

/* 👉 sidebar thu nhỏ */
.sidebar-collapsed {
    width: 80px !important;
}

/* 👉 main co theo sidebar */
.main-collapsed {
    margin-left: 80px !important;
}

/* 👉 ẩn text sidebar */
.sidebar-collapsed span {
    display: none;
}

/* 👉 icon nằm giữa */
.sidebar-collapsed .menu-item {
    justify-content: center;
}

.sidebar-collapsed .sidebar-user div:not(:first-child) {
    display: none;
}

.sidebar-collapsed .logo span {
    display: none;
}

.sidebar-collapsed .menu-item {
    justify-content: center !important;
}

.sidebar-collapsed .menu-item > div {
    justify-content: center;
}

.sidebar-collapsed .menu-item .fa-chevron-down {
    display: none;
}

.sidebar-collapsed:hover span {
    opacity: 1;
    width: auto;
}

/* 👉 sidebar thu nhỏ */
.sidebar-collapsed {
    width: 80px !important;
}

/* 👉 text mượt, không vỡ */
.sidebar-collapsed span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* 👉 giữ layout icon chuẩn */
.sidebar-collapsed .menu-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

/* 👉 fix icon luôn nằm giữa */
.sidebar-collapsed .menu-item i {
    margin: 0 auto;
}

/* 👉 ẩn submenu luôn khi collapse */
.sidebar-collapsed .submenu {
    display: none;
}

.handle {
    cursor: move;
    font-size: 18px;
}

/* */

/* TOAST */
.modern-toast {
    width: 340px !important;

    border-radius: 20px !important;

    padding: 14px 16px !important;

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        0 2px 10px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    animation: toastShow 0.25s ease;
}

/* CONTENT */
.toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* MESSAGE */
.toast-message {
    flex: 1;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;

    letter-spacing: 0.2px;
}

/* ICON */
.toast-icon {
    width: 42px;
    height: 42px;

    border-radius: 14px;

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

    flex-shrink: 0;

    font-size: 20px;

    color: white;

    position: relative;
}

/* SUCCESS */
.toast-icon.success {
    background: linear-gradient(135deg, #14b8a6, #0f766e);

    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35);
}

/* ERROR */
.toast-icon.error {
    background: linear-gradient(135deg, #ef4444, #b91c1c);

    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

/* WARNING */
.toast-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #b45309);

    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* INFO */
.toast-icon.info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);

    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

/* PROGRESS */
.modern-toast .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.25) !important;
    height: 3px !important;
}

/* REMOVE DEFAULT */
.modern-toast .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
}

/* ANIMATION */
@keyframes toastShow {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
