/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
   :root {
    /* Color Palette - Premium Dark Theme */
    --bg-main: #0a0a0f;
    --bg-secondary: #13141c;
    --bg-glass: rgba(19, 20, 28, 0.6);
    --bg-glass-hover: rgba(30, 32, 45, 0.8);
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-inverse: #0a0a0f;
    
    /* Brand Accents - Vibrant Cyan to Purple Gradient */
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-glow: rgba(0, 242, 254, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Borders & Effects */
    --border-radius: 12px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   DESKTOP VS MOBILE SEPARATE LAYOUT HELPERS (SOLUTION 2)
   ========================================================================== */
.desktop-only {
    display: block;
}
div.hero-container.desktop-only {
    display: flex !important;
}
div.values-grid.desktop-only {
    display: grid !important;
}

.mobile-only {
    display: none !important;
}

/* ==========================================================================
   UTILITY CLASSES (Glassmorphism, Animations)
   ========================================================================== */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition-smooth), background var(--transition-smooth);
}

.glass-panel:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   HEADER (I. THANH ĐIỀU HƯỚNG)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-fast), padding var(--transition-fast);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Header Contact CTA Button Distinct Styling */
#header-contact-btn {
    padding: 0 18px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: 20px;
    color: #00f2fe;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
    margin-left: 6px;
    box-sizing: border-box;
}

#header-contact-btn::after {
    display: none !important;
}

#header-contact-btn:hover {
    background: var(--accent-gradient);
    color: #08080c;
    border-color: #00f2fe;
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.lang-switcher {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.lang-switcher .active {
    color: var(--text-main);
}

.cta-button {
    background: var(--accent-gradient);
    color: var(--text-inverse);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.cta-button.full-width {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.dropdown {
    position: relative;
}

/* Hover bridge to prevent dropdown from closing when cursor moves over the gap */
.dropdown::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    display: none;
    z-index: 999;
}
.dropdown:hover::after {
    display: block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-toggle .arrow {
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle .arrow, .dropdown.open .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 280px;
    padding: 10px 0;
    margin-top: 12px;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

.dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    clear: both;
    font-weight: 500;
    color: var(--text-muted);
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: background var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.dropdown-item:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 25px;
}

.dropdown-menu-modern {
    width: 390px;
    min-width: 390px;
    padding: 10px;
    border-color: rgba(0, 242, 254, .16);
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 0%, rgba(0, 242, 254, .09), transparent 38%),
        rgba(9, 11, 17, .98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .035);
}

.dropdown-menu-compact {
    width: 290px;
    min-width: 290px;
    padding: 7px;
}

.dropdown-menu-compact .dropdown-item + .dropdown-item {
    margin-top: 5px;
}

.dropdown-menu-compact .dropdown-item-copy {
    flex: 1;
}

.dropdown-menu-compact .dropdown-item-copy strong {
    font-size: .82rem;
}

.product-dropdown {
    left: 50%;
    transform: translate(-50%, 10px);
}

@media (min-width: 769px) {
    .dropdown:hover .product-dropdown {
        transform: translate(-50%, 0);
    }
}

.dropdown.open .product-dropdown {
    transform: translate(-50%, 0);
}

.resource-dropdown {
    left: auto;
    right: 0;
}

.dropdown-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 9px 12px;
}

.dropdown-panel-heading span {
    color: #f4f7fb;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dropdown-panel-heading small {
    color: #647086;
    font-size: .65rem;
}

.dropdown-menu-modern .dropdown-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    white-space: normal;
}

.dropdown-menu-modern .dropdown-item:hover {
    padding-left: 11px;
    border-color: rgba(0, 242, 254, .22);
    background: rgba(0, 242, 254, .065);
}

.dropdown-item-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    font-size: 1rem;
}

.dropdown-item-copy {
    min-width: 0;
}

.dropdown-item-copy strong,
.dropdown-item-copy small {
    display: block;
}

.dropdown-item-copy strong {
    color: #e8edf5;
    font-size: .8rem;
    line-height: 1.3;
}

.dropdown-item-copy small {
    margin-top: 3px;
    color: #79859a;
    font-size: .67rem;
    line-height: 1.35;
}

.dropdown-item-arrow {
    margin-left: auto;
    color: #00f2fe;
    font-size: 1rem;
}

.dropdown-menu-modern .dropdown-featured {
    margin-bottom: 7px;
    border-color: rgba(0, 242, 254, .18);
    background: linear-gradient(110deg, rgba(0, 242, 254, .09), rgba(79, 172, 254, .025));
}

.dropdown-menu-modern .dropdown-featured .dropdown-item-icon {
    color: #061015;
    border-color: transparent;
    background: #00f2fe;
}

.dropdown-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.dropdown-item-grid .dropdown-item {
    align-items: flex-start;
}

.dropdown-coming-soon,
.dropdown-framework-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 10px 11px;
    color: #758095;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: .7rem;
    font-weight: 700;
}

.dropdown-coming-soon em {
    padding: 3px 7px;
    color: #f4a261;
    border: 1px solid rgba(244, 162, 97, .25);
    border-radius: 999px;
    background: rgba(244, 162, 97, .08);
    font-size: .57rem;
    font-style: normal;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dropdown-framework-link {
    color: #8793a8;
    transition: color .2s ease;
}

.dropdown-framework-link span:last-child {
    color: #00f2fe;
}

.dropdown-framework-link:hover {
    color: #e8edf5;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   BLOCK 1: HERO & PORTFOLIO
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Avoid header overlap */
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0f 100%);
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Blend with background */
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,15,0.2) 0%, rgba(10,10,15,1) 100%);
}

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    border-color: #f35919;
    color: #f35919;
}

.product-package-filter {
    max-width: 900px;
    margin: 26px auto 0;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(18, 21, 31, 0.88), rgba(8, 10, 16, 0.88));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
}

.filter-eyebrow {
    display: block;
    color: #7f8a9e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-package-filter .category-tabs {
    margin: 10px 0 0;
}

.product-package-filter .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    text-transform: none;
    letter-spacing: 0;
}

.product-package-filter .tab-btn.active {
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.55);
    background: rgba(0, 242, 254, 0.09);
    box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.08);
}

.package-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7f8a9e;
}

.package-dot-1 { background: #4facfe; }
.package-dot-2 { background: #00f2fe; }
.package-dot-3 { background: #f35919; }

.product-service-filter {
    max-width: 1080px;
    margin: 30px auto 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(17, 20, 29, 0.96), rgba(8, 10, 16, 0.96));
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.service-group-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.service-group-btn {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 11px;
    min-height: 78px;
    padding: 14px 16px;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.service-group-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(0, 242, 254, 0.38);
}

.service-group-btn.active {
    border-color: rgba(0, 242, 254, 0.72);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.13), rgba(79, 172, 254, 0.05));
    box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.06);
}

.service-group-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px;
    background: rgba(0, 242, 254, 0.09);
    font-size: 1.15rem;
}

.service-group-btn strong,
.service-group-btn small {
    display: block;
}

.service-group-btn strong {
    margin-bottom: 4px;
    font-size: .92rem;
}

.service-group-btn small {
    color: #8792a6;
    font-size: .72rem;
    line-height: 1.4;
}

.service-group-btn.coming-soon {
    opacity: .5;
    cursor: not-allowed;
}

.service-group-btn.coming-soon em {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 3px 7px;
    color: #9aa5b8;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: .58rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-package-panel {
    display: none;
    padding: 15px 4px 3px;
}

.service-package-panel.active {
    display: block;
    animation: filterPanelIn .22s ease;
}

@keyframes filterPanelIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.package-panel-label {
    display: block;
    margin: 0 0 9px 3px;
    color: #7f8a9e;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-package-buttons {
    display: grid;
    grid-template-columns: .72fr repeat(3, 1fr);
    gap: 8px;
}

.service-package-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 9px 12px;
    color: #aeb7c7;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 11px;
    background: rgba(255, 255, 255, .02);
    font-family: inherit;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.service-package-btn b {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #7e8ba1;
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    font-size: .64rem;
}

.service-package-btn:hover,
.service-package-btn.active {
    color: #eafcff;
    border-color: rgba(0, 242, 254, .52);
    background: rgba(0, 242, 254, .09);
}

.service-package-btn.active b {
    color: #061015;
    background: #00f2fe;
}

@media (max-width: 800px) {
    .service-group-tabs,
    .service-package-buttons {
        grid-template-columns: 1fr;
    }

    .service-group-btn {
        min-height: 68px;
    }

    .service-package-btn {
        justify-content: flex-start;
    }
}

.solution-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    min-height: 60px; /* Prevent layout shift */
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
    gap: var(--spacing-lg);
    max-width: var(--max-width);
    margin: 0 auto;
    justify-content: start;
}

/* Card Container */
.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(180deg, #080a0f 0%, #050608 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
}
.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(243, 89, 25, 0.2);
}

/* Image Box */
.img-box {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 45%, rgba(0, 242, 254, 0.12), transparent 58%),
        #05070b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.35s ease;
}
.game-card:hover .game-image {
    transform: scale(1.04);
    filter: brightness(0.38) saturate(0.8) blur(5px);
}

/* Card Inline Video Hover Preview */
.card-inline-video {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: contain !important;
    object-position: center center;
    display: block;
    border-radius: 9px;
    background: rgba(3, 5, 9, 0.96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.28s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(0.985);
}

.game-card:hover .card-inline-video,
.fp-card:hover .card-inline-video,
.game-card.active .card-inline-video {
    opacity: 1;
    transform: scale(1);
}

.video-preview-badge {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(5, 8, 14, 0.72);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-preview-icon {
    color: #00f2fe;
    font-size: 0.62rem;
}

.game-card:hover .video-preview-badge {
    opacity: 0;
    transform: translateY(5px);
}

/* Overlay */
.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5,5,5,0.9) 100%);
    opacity: 0.55;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.game-card:hover .img-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 20%, rgba(243, 89, 25, 0.4) 100%);
}

/* Info Section */
.game-info {
    height: 112px;
    padding: 12px 14px 13px;
    text-align: left;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.game-info h4 {
    margin: 0 0 5px;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.game-card:hover .game-info h4 {
    color: var(--accent-primary);
}
.game-tags-inline {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-info .card-details-btn {
    margin-top: auto;
    width: fit-content;
    font-size: 0.8rem;
    line-height: 1;
}

/* ==========================================================================
   BLOCK 1: HERO SECTION
   ========================================================================== */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1360px;
    width: 92%;
    margin: 0 auto;
}

.hero-content-col {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    text-align: left;
    z-index: 2;
    padding-right: 15px;
}

.hero-cards-col {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 2;
}

.hero-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 18px;
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   BLOCK 2: CORE VALUES
   ========================================================================== */
.core-values-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.value-card {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.val-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-xs);
}

.metrics-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.val-desc {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.action-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   BLOCK 3: FAQ & CONTACT
   ========================================================================== */
.faq-contact-section {
    padding: var(--spacing-xl) 0;
}

.faq-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-header:hover, .accordion-header.active {
    color: var(--accent-primary);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    color: var(--text-muted);
    padding-bottom: 15px;
}

/* Contact Form */
.contact-wrapper {
    padding: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group select option {
    background: #0b0b12;
    color: var(--text-main);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: #050508;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.contact-list a {
    color: var(--text-muted);
}
.contact-list a:hover {
    color: var(--accent-primary);
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
}

.footer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--spacing-sm);
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-hero {
    position: relative;
    padding: 150px 0 80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 50vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-info-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 60px;
}

.product-main-col {
    display: flex;
    flex-direction: column;
}

.product-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-meta-card, .pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(243, 89, 25, 0.15) 0%, rgba(243, 89, 25, 0.05) 100%);
    border-color: rgba(243, 89, 25, 0.3);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 1.05rem;
}
.meta-item strong {
    color: #fff;
}
.meta-item .tech-stack {
    color: #f35919;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

.pricing-card .label {
    display: block;
    color: #f35919;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}
.pricing-card .pricing-note {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.gallery-item img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0 15px;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px var(--spacing-md) var(--spacing-md) var(--spacing-md);
        gap: 20px;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 999;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle.open .hamburger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.open .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.open .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-left: 2px solid var(--accent-primary);
        border-radius: 0;
        box-shadow: none;
        margin-top: 10px;
        padding: 5px 0;
        opacity: 1;
        transform: none;
    }
    .dropdown-menu-modern {
        min-width: 0;
        width: 100%;
        padding: 8px;
        border: 1px solid rgba(0, 242, 254, .12);
        border-radius: 13px;
    }
    .product-dropdown,
    .dropdown.open .product-dropdown {
        transform: none;
    }
    .dropdown-panel-heading {
        display: none;
    }
    .dropdown-item-grid {
        grid-template-columns: 1fr;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .dropdown-item {
        padding: 10px 15px;
        white-space: normal;
    }
    .dropdown-item:hover {
        padding-left: 20px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .faq-contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .product-info-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        border-radius: 12px !important;
        width: 100% !important;
    }
    .product-hero {
        padding-top: 95px !important;
        min-height: 40vh;
    }

    #case-study-media-container {
        height: 250px !important;
    }

    .product-info-grid > div:last-child {
        padding: 20px 15px !important;
    }

    .product-info-grid h4 {
        font-size: 1.15rem !important;
        margin-bottom: 16px !important;
    }

    .product-info-grid div[style*="justify-content: space-between"] {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .product-info-grid div[style*="justify-content: space-between"] > span:first-child {
        flex: 0 0 38% !important;
        max-width: 38% !important;
        font-size: 0.82rem !important;
        line-height: 1.3 !important;
    }

    .product-info-grid div[style*="justify-content: space-between"] > span:last-child {
        flex: 0 0 60% !important;
        max-width: 60% !important;
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
        text-align: right !important;
        word-break: break-word !important;
    }

    /* All Service Pages Mobile Refactor */
    .service-page-wrapper {
        padding-top: 85px !important;
        padding-bottom: 30px !important;
    }

    .service-page-wrapper section:first-child {
        padding: 20px 0 30px 0 !important;
    }

    .service-page-wrapper h1 {
        font-size: 1.55rem !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
        word-break: break-word !important;
    }

    .service-page-wrapper h1 span {
        display: inline-block !important;
    }

    .service-page-wrapper p {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
    }

    .service-page-wrapper h3 {
        font-size: 1.25rem !important;
        line-height: 1.35 !important;
        margin-bottom: 14px !important;
        word-break: break-word !important;
    }

    .service-page-wrapper div[style*="grid-template-columns: 1.8fr 1fr"],
    .service-page-wrapper div[style*="grid-template-columns:1.8fr 1fr"],
    .service-page-wrapper div[style*="grid-template-columns: 2fr 1fr"],
    .service-page-wrapper div[style*="grid-template-columns:2fr 1fr"],
    .service-page-wrapper div[style*="grid-template-columns: 1.5fr 1fr"],
    .service-page-wrapper div[style*="grid-template-columns:1.5fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        width: 100% !important;
    }

    .feature-grid-2col,
    .service-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .info-block-card {
        padding: 16px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .info-block-card h4 {
        font-size: 1.05rem !important;
        margin-bottom: 6px !important;
        word-break: break-word !important;
    }

    .summary-card {
        position: static !important;
        padding: 20px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Separate Layout Toggle (Solution 2) */
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    div.mobile-only[style*="display: flex"],
    div.mobile-only[style*="display:flex"] {
        display: flex !important;
    }

    /* Homepage Hero Section Mobile Refactor */
    .hero-section {
        min-height: auto !important;
        padding-top: 85px !important;
        padding-bottom: 25px !important;
    }

    /* Mobile Grid & Layout Refactor */
    .portfolio-grid, .showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }
    
    .game-card, .showcase-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .showcase-img-box, .game-card .img-box {
        height: 220px !important;
    }

    .steam-showcase-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 12px !important;
    }

    .steam-active-wrap {
        height: 220px !important;
    }

    /* 2-Level Resource Control Center on Mobile */
    .resource-control-wrapper {
        margin: 15px 0 25px 0 !important;
        padding: 0 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .resource-main-tabs {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        border-radius: 30px !important;
        padding: 4px !important;
    }

    .main-tab-btn {
        flex: 1 !important;
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
    }

    .resource-search-box {
        max-width: 100% !important;
        width: 100% !important;
    }

    .resource-search-box input {
        font-size: 16px !important; /* Prevents iOS auto-zoom */
        padding: 12px 16px 12px 42px !important;
    }

    .pill-group {
        gap: 6px !important;
    }

    .pill-btn {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    /* Mobile Bottom Sheet Popover */
    #portfolio-popover.mobile-bottom-sheet {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
        border: 1px solid rgba(0, 242, 254, 0.3) !important;
        border-bottom: none !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        padding: 20px 20px 25px 20px !important;
        background: rgba(12, 14, 22, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        z-index: 10000 !important;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    #portfolio-popover.mobile-bottom-sheet.active {
        transform: translateY(0) !important;
    }
}

@media (max-width: 900px) {
    .steam-showcase-container {
        grid-template-columns: 1fr;
    }
    .steam-active-wrap {
        height: 280px;
    }
}

/* ==========================================================================
   PORTFOLIO OUTSOURCING POPOVER (STEAM-LIKE HOVER PREVIEW)
   ========================================================================== */
#portfolio-popover {
    position: fixed;
    width: 340px;
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 242, 254, 0.15);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px) scale(0.97);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    padding: 16px;
    font-family: var(--font-body);
    max-height: 90vh;
    overflow-y: auto;
}

#portfolio-popover.template-popover {
    width: 390px;
    padding: 18px;
}

#portfolio-popover.template-popover .popover-meta {
    gap: 10px;
}

#portfolio-popover.template-popover .popover-meta-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding-bottom: 9px !important;
}

#portfolio-popover.template-popover .popover-value {
    max-width: 100% !important;
    text-align: left !important;
    line-height: 1.45;
}

#portfolio-popover.template-popover .popover-tech-tags {
    max-width: 100%;
    justify-content: flex-start;
    margin-top: 2px;
}

#portfolio-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.popover-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    font-family: var(--font-title);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.popover-media {
    width: 100%;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    background: #0b0f19;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popover-media img, .popover-media video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Universal Responsive Media Preview Container (Cách 1) */
.responsive-media-container {
    width: fit-content;
    height: fit-content;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f19;
    border-radius: 8px;
    overflow: hidden;
}

.responsive-media-container img,
.responsive-media-container video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.popover-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.popover-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.popover-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popover-label {
    color: var(--text-muted);
    font-weight: 500;
}

.popover-value {
    color: #fff;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

.popover-value.accent {
    color: #00f2fe;
}

.popover-value.price {
    color: #f35919;
    font-weight: 700;
}

.popover-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    justify-content: flex-end;
    max-width: 70%;
}

.popover-tech-pill {
    background: rgba(79, 172, 254, 0.15);
    color: #4facfe;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Hide on mobile screens to avoid layout breaking */
@media (max-width: 768px) {
    #portfolio-popover {
        display: none !important;
        opacity: 0 !important;
    }
}

/* ==========================================================================
   FEATURED PRODUCTS GRID (Homepage) - Fixed card width, no stretching
   ========================================================================== */
#featured-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (max-width: 900px) {
    #featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #featured-products-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Featured Product Card (fp-card) --- */
.fp-card {
    background: rgba(19, 20, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.fp-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 16px 40px rgba(0, 242, 254, 0.12);
}

/* Thumbnail */
.fp-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.fp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.fp-card:hover .fp-thumb img {
    transform: scale(1.06);
}

.fp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    backdrop-filter: blur(6px);
}

/* Body */
.fp-body {
    padding: 18px 20px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.fp-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}

.fp-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.fp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.fp-tag {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    border: 1px solid rgba(79, 172, 254, 0.2);
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Footer */
.fp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.fp-price {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.fp-cta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4facfe;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: gap 0.2s ease;
}

.fp-card:hover .fp-cta {
    gap: 8px;
}

/* ==========================================================================
   FLOATING CONTACT WIDGET (Zalo, Messenger, Phone)
   ========================================================================== */
#floating-contact {
    position: fixed;
    bottom: 30px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.float-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    animation: float-pulse 3s ease-in-out infinite;
}

.float-btn:hover {
    transform: scale(1.18) translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
    animation: none;
}

.float-btn img,
.float-btn svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* Tooltip label */
.float-btn::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,15,0.92);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: var(--font-body);
}

.float-btn:hover::before {
    opacity: 1;
}

/* Zalo */
.float-btn.zalo {
    background: #0068FF;
}

/* Messenger */
.float-btn.messenger {
    background: linear-gradient(135deg, #0099FF 0%, #A033FF 60%, #FF5C87 100%);
}

/* Phone */
.float-btn.phone {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Ripple ping animation */
.float-btn.phone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(56, 239, 125, 0.6);
    animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes float-pulse {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

@media (max-width: 480px) {
    #floating-contact {
        bottom: 20px;
        right: 14px;
        gap: 10px;
    }
    .float-btn {
        width: 46px;
        height: 46px;
    }
    .float-btn img, .float-btn svg {
        width: 24px;
        height: 24px;
    }
    .float-btn::before {
        display: none;
    }
}

/* --- 2-LEVEL RESOURCE CONTROL CENTER (Tài Nguyên Có Sẵn) --- */
.resource-control-wrapper {
    margin: 28px auto 38px;
    max-width: 980px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: radial-gradient(circle at 8% 0%, rgba(0, 242, 254, 0.09), transparent 34%), linear-gradient(145deg, rgba(17, 20, 30, 0.92), rgba(8, 10, 16, 0.9));
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
}

.filter-heading h2 {
    margin: 5px 0 0;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
}

.filter-heading p {
    max-width: 430px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* Level 1: Main Type Switcher */
.resource-main-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(3, 5, 9, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 5px;
    gap: 5px;
}

.main-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.main-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.main-tab-btn.active {
    background: rgba(0, 242, 254, 0.11);
    color: #00f2fe;
    box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.38);
}

/* Level 2: Secondary Control Panels */
.sub-filter-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

/* Search Box */
.resource-search-box {
    position: relative;
    width: 100%;
    max-width: none;
}

.resource-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: rgba(20, 24, 38, 0.7);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 11px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.resource-search-box input:focus {
    border-color: #00f2fe;
    background: rgba(20, 24, 38, 0.95);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.resource-search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #00f2fe;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Pill Filter Buttons */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pill-btn:hover {
    color: #fff;
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.08);
}

.pill-btn.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: #00f2fe;
    color: #00f2fe;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.08);
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.filter-label {
    color: #8f9bad;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .resource-control-wrapper {
        padding: 18px;
    }

    .filter-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .resource-main-tabs {
        grid-template-columns: 1fr;
    }
}

