/* Custom CSS cho NodeX Studio */
body.auth-bg {
    background-image: url('../media/banner.jpeg');
}

[data-bs-theme="dark"] body.auth-bg {
    background-image: url('../media/banner.jpeg');
}

body {
    font-family: 'Signika', sans-serif !important;
}

/* Fix Iconify lazy-load layout shift (Zero CLS) for square icons */
iconify-icon:not([icon^="logos:"]) {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* Hide spin buttons for number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}


#kt_header_menu .menu-item .menu-link.active .menu-title {
    color: var(--bs-primary) !important;
    font-weight: 700 !important;
}

#kt_header_menu .menu-item .menu-link.active .menu-icon iconify-icon,
#kt_header_menu .menu-item .menu-link.active .menu-icon {
    color: var(--bs-primary) !important;
}
#kt_header_menu .menu-item .menu-link:hover .menu-icon iconify-icon {
    color: var(--bs-primary) !important;
}

#kt_header_menu .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

/* --- SETTINGS PAGE STYLES --- */
.custom-tabs {
    background-color: var(--bs-gray-100);
    padding: 0.5rem;
    border-radius: 16px;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.custom-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.custom-tabs .nav-item {
    margin: 0;
}
.custom-tabs .nav-link {
    border-radius: 12px;
    padding: 12px 24px;
    color: var(--bs-gray-600);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none !important;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.custom-tabs .nav-link:hover {
    color: var(--bs-primary);
}
.custom-tabs .nav-link.active {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-primary) !important;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.custom-file-upload {
    position: relative;
    width: 100%;
}
.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
    border: 2px dashed var(--bs-gray-300);
    border-radius: 16px;
    cursor: pointer;
    background-color: var(--bs-body-bg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 20px;
}
.upload-zone:hover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.03);
}
.upload-zone-square {
    min-height: 200px;
    max-width: 250px;
}
.upload-zone-wide {
    min-height: 250px;
}
.upload-placeholder {
    text-align: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    opacity: 0;
    background-color: var(--bs-body-bg);
    padding: 10px;
    transition: opacity 0.3s ease;
}
.upload-zone.has-image .upload-placeholder {
    opacity: 0;
}
.upload-zone.has-image .upload-preview {
    opacity: 1;
}
.upload-zone.has-image:hover .upload-preview {
    opacity: 0.2;
}
.upload-zone.has-image:hover .upload-placeholder {
    opacity: 1;
}

/* --- HOME PAGE STYLES (THEME ADAPTIVE) --- */
.custom-hero-bg {
    background-color: var(--bs-body-bg);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(var(--bs-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(var(--bs-primary-rgb), 0.05) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* Thêm lưới (grid) mờ làm background cho Hero */
.custom-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(var(--bs-gray-400-rgb), 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--bs-gray-400-rgb), 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

[data-bs-theme="dark"] .custom-hero-bg::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.custom-hero-bg>* {
    z-index: 1;
    position: relative;
}

.logo-glow-box {
    width: 130px;
    height: 130px;
    border-radius: 30px;
    background: var(--bs-card-bg);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 0 40px rgba(var(--bs-primary-rgb), 0.15);
    border: 1px solid var(--bs-border-color);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-bs-theme="dark"] .logo-glow-box {
    background: linear-gradient(135deg, rgba(25, 25, 36, 0.8), rgba(12, 12, 18, 0.9));
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(var(--bs-primary-rgb), 0.2);
    border-color: rgba(var(--bs-primary-rgb), 0.2);
}

.logo-glow-box:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--bs-primary);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.1),
        0 0 60px rgba(var(--bs-primary-rgb), 0.3);
}

[data-bs-theme="dark"] .logo-glow-box:hover {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        0 0 80px rgba(var(--bs-primary-rgb), 0.4);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.logo-glow-icon {
    filter: drop-shadow(0 0 15px rgba(var(--bs-primary-rgb), 0.5));
}

[data-bs-theme="dark"] .logo-glow-icon {
    filter: drop-shadow(0 0 20px rgba(var(--bs-primary-rgb), 0.9));
}

.custom-btn-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #9059ff 100%);
    border: none !important;
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.custom-btn-primary:hover {
    box-shadow: 0 15px 30px rgba(var(--bs-primary-rgb), 0.5);
    transform: translateY(-3px);
}

/* Đường sọc Laser (Divider) mượt mà hơn */
.custom-divider {
    height: 1px;
    width: 100%;
    background: radial-gradient(circle, var(--bs-primary) 0%, transparent 70%);
    margin: 0;
    opacity: 0.5;
}

[data-bs-theme="dark"] .custom-divider {
    height: 2px;
    background: radial-gradient(circle, rgba(var(--bs-primary-rgb), 0.8) 0%, transparent 70%);
    box-shadow: 0 0 20px rgba(var(--bs-primary-rgb), 0.5);
    opacity: 0.7;
}

/* Background cho Core Values */
.core-values-section {
    background-color: var(--bs-body-bg);
    background-image: radial-gradient(circle at 50% 100%, rgba(var(--bs-primary-rgb), 0.05) 0%, transparent 60%);
    transition: background-color 0.3s ease;
}

.core-value-card {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .core-value-card {
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.6), rgba(15, 15, 20, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.core-value-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .core-value-card:hover {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 30, 0.8));
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.icon-glow-primary {
    filter: drop-shadow(0 0 15px rgba(var(--bs-primary-rgb), 0.5));
}

.icon-glow-success {
    filter: drop-shadow(0 0 15px rgba(var(--bs-success-rgb), 0.5));
}

.icon-glow-info {
    filter: drop-shadow(0 0 15px rgba(var(--bs-info-rgb), 0.5));
}

[data-bs-theme="dark"] .icon-glow-primary {
    filter: drop-shadow(0 0 15px rgba(var(--bs-primary-rgb), 0.8));
}

[data-bs-theme="dark"] .icon-glow-success {
    filter: drop-shadow(0 0 15px rgba(var(--bs-success-rgb), 0.8));
}

[data-bs-theme="dark"] .icon-glow-info {
    filter: drop-shadow(0 0 15px rgba(var(--bs-info-rgb), 0.8));
}

/* --- DICHVURIGHT CLONE STYLES --- */
.screen {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.center {
    width: 100%;
}

.background-teamplate2 {
    background: var(--bs-body-bg);
    border-radius: 8px;
}

.title-index {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.title-index h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bs-gray-900);
}

.title-index h2 img {
    width: 24px;
    height: 24px;
}

.title-index a {
    color: var(--bs-primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-container-index {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.items-content-index {
    display: block;
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.items-content-index:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .items-content-index:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.items-content-index img {
    width: 100%;
    border-radius: 6px;
    height: 120px;
    object-fit: cover;
}

.items-content-index h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
    color: var(--bs-gray-900);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.account-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--bs-gray-600);
}

.account-info p {
    margin: 0;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    flex: 1;
    padding: 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

.btn-outline:hover {
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.button-group button:not(.btn-outline) {
    background: var(--bs-primary);
    color: #fff;
}

.button-group button:not(.btn-outline):hover {
    filter: brightness(1.1);
}

.rotation-notify {
    background: var(--bs-card-bg);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--bs-border-color);
    margin-bottom: 20px;
}

.rotation-marquee-item {
    display: flex;
    align-items: center;
}

.rotation-marquee-item span {
    margin-right: 30px;
    font-size: 14px;
    color: var(--bs-gray-800);
    display: flex;
    align-items: center;
}

.rotation-marquee-item img {
    margin-right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.username {
    font-weight: 700;
    color: var(--bs-primary);
    margin-right: 5px;
}

#section-linklienket {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    text-align: center;
    margin: 20px 0;
}

#section-linklienket a {
    flex: 1;
    text-decoration: none;
    color: var(--bs-gray-900);
    background: var(--bs-card-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    transition: all 0.3s;
}

#section-linklienket a:hover {
    transform: translateY(-3px);
    border-color: var(--bs-primary);
}

#section-linklienket h5 {
    font-size: 14px;
    margin-top: 10px;
    font-weight: 600;
    margin-bottom: 0;
}

/* News section */
.news-link {
    text-decoration: none;
    color: inherit;
}

.news-thumb-image {
    width: 100%;
    border-radius: 8px;
    height: 150px;
    object-fit: cover;
}

.news-title {
    font-weight: 600;
    font-size: 14px;
    margin: 10px 0;
    color: var(--bs-gray-900);
    line-height: 1.4;
}

.datetime {
    font-size: 12px;
    color: var(--bs-gray-600);
}

.card-service {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.card-service:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

[data-bs-theme="dark"] .card-service:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.card-body {
    padding: 10px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    margin-bottom: 15px;
    background: var(--bs-card-bg);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
}

.news-article {
    display: flex;
    gap: 15px;
}

.article-thumb-wrap {
    width: 100px;
    flex-shrink: 0;
}

.article-thumb-wrap .news-thumb-image {
    height: 70px;
}

.news-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Reviews section */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.review-card {
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

.review-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.review-content {
    flex: 1;
}

.review-content .username {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--bs-gray-900);
    font-size: 14px;
}

.ratings {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 5px;
}

.review-info {
    color: var(--bs-gray-500);
    font-size: 12px;
    margin-left: 5px;
}

.comment {
    color: var(--bs-gray-700);
    font-size: 13px;
    margin: 0;
}

/* About section */
.noidung-gioithieu {
    color: var(--bs-gray-700);
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
}

.noidung-gioithieu h1,
.noidung-gioithieu h2 {
    color: var(--bs-gray-900);
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.noidung-gioithieu ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.noidung-gioithieu a {
    color: var(--bs-primary);
    text-decoration: none;
}


/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-opacity:hover {
    opacity: 0.8;
}

/* Ẩn scrollbar siêu triệt để nhưng vẫn cho phép scroll toàn trang */
html::-webkit-scrollbar, 
body::-webkit-scrollbar,
body#kt_body::-webkit-scrollbar,
#kt_app_root::-webkit-scrollbar,
#kt_body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html, body, #kt_body {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
* {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* --- TITLE MARKER (Thanh đánh dấu trang) --- */
.section-title {
    position: relative;
    padding-left: 1.25rem !important;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 6px;
    background: var(--bs-primary);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(var(--bs-primary-rgb), 0.6);
}

/* --- RIBBON HOT (Hiệu ứng Mã nguồn nổi bật) --- */
.ribbon-hot {
    position: absolute;
    top: 15px;
    left: -5px;
    background: linear-gradient(45deg, #f8285c, #ff5e62);
    color: white;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 5px 15px rgba(248, 40, 92, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulseHot 2s infinite;
}
.ribbon-hot::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border-top: 6px solid #b5153a;
    border-left: 5px solid transparent;
}
@keyframes pulseHot {
    0% { box-shadow: 0 0 0 0 rgba(248, 40, 92, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(248, 40, 92, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 40, 92, 0); }
}

.premium-card.hot-item:hover {
    box-shadow: 0 15px 35px rgba(248, 40, 92, 0.2);
    border-color: rgba(248, 40, 92, 0.5);
}
[data-bs-theme="dark"] .premium-card.hot-item:hover {
    box-shadow: 0 15px 35px rgba(248, 40, 92, 0.4);
    border-color: rgba(248, 40, 92, 0.5);
}

/* Fix banner display */
.banner-wrapper {
    border-radius: 16px;
    transform: translateZ(0); /* Force hardware clipping for scale effect */
    overflow: hidden;
}
.banner-mobile-cover {
    border-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
    transform: translateZ(0); /* Prevent pixelation during scaling */
    backface-visibility: hidden;
}
@media (max-width: 767.98px) {
    .banner-wrapper,
    .banner-mobile-cover {
        border-radius: 12px;
    }
}

/* --- ADMIN DASHBOARD STATS CARDS --- */
.premium-stat-card {
    transition: all 0.3s ease;
    border-radius: 20px;
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color) !important;
}
.premium-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
[data-bs-theme="dark"] .premium-stat-card:hover {
    box-shadow: 0 15px 30px rgba(255,255,255,0.02) !important;
}
.stat-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

/* --- PROFILE PAGE STYLES --- */
.profile-cover {
    margin-top: -30px;
}
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline-item {
    position: relative;
}
.timeline-line {
    position: absolute;
    left: -24px;
    top: 28px;
    bottom: -16px;
    width: 2px;
    background: var(--bs-gray-200);
}
.timeline-item:last-child .timeline-line {
    display: none;
}
.timeline-icon {
    position: absolute;
    left: -34px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bs-body-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-password {
    cursor: pointer;
}
.toggle-password:hover iconify-icon {
    color: var(--bs-primary) !important;
}

/* Custom Profile Tab Buttons */
.custom-tab-btn {
    color: #009ef7 !important;
    border: 1px dashed #009ef7 !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}
.custom-tab-btn iconify-icon {
    color: #009ef7 !important;
    transition: all 0.3s ease;
}
.custom-tab-btn:hover,
.custom-tab-btn.active {
    background-color: #009ef7 !important;
    color: #ffffff !important;
    border: 1px solid #009ef7 !important;
}
.custom-tab-btn:hover iconify-icon,
.custom-tab-btn.active iconify-icon {
    color: #ffffff !important;
}

/* Custom Fixed Header Styles */
.header-spacer {
    height: 180px;
    display: flow-root;
}
@media (max-width: 991px) {
    .header-spacer {
        height: 90px !important;
    }
}
/* --- Fix Theme Core CSS cho Header --- */
/* --- Fix Client Header Logo Responsive --- */
.header-logo-img {
    height: 42px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
}

@media (max-width: 767.98px) {
    .header-logo-img {
        height: 28px !important;
        max-height: 32px !important;
        max-width: 120px !important;
    }
}

/* --- Fix Theme Core CSS cho Header --- */
.custom-fixed-header-final {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    z-index: 112 !important;
    height: 70px !important; /* Force explicit height for top bar */
}
.custom-fixed-header-menu {
    position: fixed !important;
    top: 70px !important; /* Start exactly below the top bar */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    z-index: 111 !important;
    height: 75px !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* Ensure the actual menu inside the container is visible */
.custom-fixed-header-menu .header-menu {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.custom-header-spacer-final {
    height: 145px !important; /* logo bar (~70px) + menu bar (~75px) */
    width: 100%;
    display: block;
}
@media (max-width: 991px) {
    .custom-fixed-header-menu {
        position: static !important;
        height: 0 !important;
        z-index: auto !important;
    }
    .custom-fixed-header-menu .header-menu {
        padding-top: 75px !important;
        padding-bottom: 20px !important;
    }
    .custom-header-spacer-final {
        height: 70px !important; /* On mobile, only logo bar exists (~70px) */
    }
}

/* Profile Page - Premium Panel */
.premium-panel {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
}
.premium-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
    border-radius: 4px 4px 0 0;
    z-index: 10;
}

/* Profile Page - Select2 with Solar icons */
.select2-selection__rendered iconify-icon,
.select2-results__option iconify-icon {
    vertical-align: middle;
    margin-right: 8px;
    font-size: 1.25rem;
    color: var(--bs-primary);
}

/* File Manager Custom Styles */
.fm-item {
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
    cursor: pointer;
}
.fm-item:hover {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary-light);
    transform: translateY(-2px);
}
.fm-item.selected {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}
.fm-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 12px;
    background: #f4f6fa;
}
.fm-icon.image-preview {
    background-size: cover;
    background-position: center;
}

/* File Manager Tree */
.fm-tree-item {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--bs-gray-700);
    display: flex;
    align-items: center;
}
.fm-tree-item:hover {
    background-color: var(--bs-gray-100);
    color: var(--bs-primary);
}
.fm-tree-item.active {
    background-color: var(--bs-primary-light);
    color: var(--bs-primary);
    font-weight: 600;
}
.fm-tree-item iconify-icon {
    font-size: 1.25rem;
    margin-right: 8px;
    color: inherit;
}
.fm-tree-children {
    padding-left: 20px;
    border-left: 1px dashed var(--bs-gray-300);
    margin-left: 10px;
}

/* File Manager: Select Overlay (checkbox indicator) */
.fm-select-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.fm-item:hover .fm-select-overlay,
.fm-item.selected .fm-select-overlay {
    opacity: 1;
}
.fm-item.selected {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
}
.fm-checkbox iconify-icon {
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.8));
}

/* =============================================
   Error 404 Page
   ============================================= */
.error-404-number {
    font-size: clamp(5.5rem, 18vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -5px;
    display: block;
    animation: error-float 4s ease-in-out infinite;
}
@keyframes error-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
.error-404-icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.6);
    animation: error-ring-spin 18s linear infinite;
    background: transparent;
}
@keyframes error-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.error-404-icon-ring iconify-icon {
    animation: error-ring-counter 18s linear infinite;
    font-size: 4rem;
}
@keyframes error-ring-counter {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}
.error-404-features {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
}

/* --- Utilities --- */
.hidden-scrollbar::-webkit-scrollbar {
    display: none;
}
.hidden-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Tech Stack Active State */
.tech-item.border-primary {
    position: relative;
    background-color: var(--bs-primary-light) !important;
    border: 2px solid var(--bs-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(var(--bs-primary-rgb), 0.2);
}
.tech-item.border-primary::after {
    content: '\2714'; /* Checkmark */
    font-family: Arial, sans-serif;
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}