@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --secondary-color: #64748b;
    --accent-color: #06b6d4;

    --bg-body: #020617;
    /* Very Dark Blue/Black */
    --bg-card: #0f172a;
    /* Slate 900 */
    --bg-card-hover: #1e293b;
    /* Slate 800 */

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border-color: #1e293b;

    --container-width: 1100px;
    --header-height: 80px;

    /* Custom Cursor Colors */
    --cursor-dot-color: #3b82f6;
    --cursor-outline-color: rgba(59, 130, 246, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: logoFadeIn 0.9s ease-out;
}

.logo i {
    color: var(--primary-color);
    -webkit-text-fill-color: currentColor;
    background: none;
    animation: logoPulse 2.5s ease-in-out infinite;
    transform-origin: center;
}

.logo:hover {
    text-shadow: 0 0 18px rgba(96, 165, 250, 0.8);
    transform: translateY(-1px);
}

.logo img {
    height: 52px;
    /* Increased from 42px */
    width: auto;
    display: block;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoPulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.08) rotate(-3deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 3px 10px;
    max-width: 120px;
    width: 100%;
    margin: 0 5px;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 0.8rem;
    outline: none;
}

.search-bar button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.search-bar button:hover {
    color: var(--primary-color);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(59, 130, 246, 0.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(59,130,246,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(139,92,246,0.1)"/><circle cx="60" cy="80" r="1" fill="rgba(6,182,212,0.1)"/><circle cx="30" cy="70" r="1.5" fill="rgba(59,130,246,0.1)"/><circle cx="90" cy="10" r="1" fill="rgba(139,92,246,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
    animation: bounceIn 1.5s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stats */
.stats-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    display: inline-block;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.product-thumb {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .product-thumb img {
    transform: scale(1.1);
}

.badge-hot {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.8rem;
    color: #60a5fa;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.btn-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-cart:hover {
    background: var(--primary-color);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
}

.blog-thumb {
    height: 200px;
    overflow: hidden;
}

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

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: white;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Testimonials */
.testimonials-section {
    background: var(--bg-card);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-content p {
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.testimonial-author h5 {
    color: var(--text-main);
    margin: 0;
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.newsletter-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-content h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px 0 0 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 0 25px 25px 0;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0 20px;
    color: white;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(59,130,246,0.05)"/><circle cx="90" cy="20" r="0.8" fill="rgba(139,92,246,0.05)"/><circle cx="70" cy="90" r="0.6" fill="rgba(6,182,212,0.05)"/><circle cx="20" cy="80" r="0.8" fill="rgba(59,130,246,0.05)"/><circle cx="95" cy="5" r="0.5" fill="rgba(139,92,246,0.05)"/><circle cx="50" cy="50" r="0.7" fill="rgba(6,182,212,0.05)"/></svg>');
    animation: float 25s ease-in-out infinite;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--primary-color);
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-extra {
    display: flex;
    gap: 20px;
}

.footer-extra a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-extra a:hover {
    color: var(--primary-color);
}

/* Chat Widget Dummy */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #be185d;
    /* Zalo colorish or blue */
    background: linear-gradient(135deg, #0068ff, #0041a3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-body);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu-content a {
    color: var(--text-main);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-menu-content a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .search-toggle {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-extra {
        justify-content: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(59, 130, 246, 0.2);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.search-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-color);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.search-dropdown-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

.search-dropdown-content input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

.search-dropdown-content button {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.search-dropdown-content button:hover {
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-body);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu-content a {
    color: var(--text-main);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-menu-content a:hover {
    color: var(--primary-color);
}

/* ---------------- PRODUCT DETAIL PAGE ---------------- */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 8px;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Gallery - FIXED: Constrain height and center image */
.product-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
    background: #0f172a;
    /* Darker bg */
    height: 450px;
    /* Limit height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.thumb-item {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    background: var(--bg-card);
    aspect-ratio: 1/1;
    /* Square */
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* Info Right */
.product-tags {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.tag-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-version {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.product-title-large {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f59e0b;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.rating-count {
    color: var(--text-muted);
    margin-left: 8px;
}

.price-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-right: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.discount-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
    font-weight: 600;
}

.btn-buy-now {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
}

.secure-text {
    font-size: 0.8rem;
    color: #10b981;
    margin-top: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-list li i {
    color: #6366f1;
    margin-top: 4px;
}

/* Tabs */
.tabs-container {
    margin-top: 60px;
    margin-bottom: 60px;
}

.tabs-header {
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
    color: #cbd5e1;
    line-height: 1.8;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.feature-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-box h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .feature-box-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(90deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}

/* ---------------- AUTH PAGES ---------------- */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 70%);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    /* Stronger shadow */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.auth-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    padding: 14px 16px 14px 45px;
    /* Padding left for icon */
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 1);
}

.input-icon-group {
    position: relative;
}

.input-icon-group i:first-child {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.show-pass {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-social {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

.btn-social.google i {
    color: #ea4335;
}

.btn-social.facebook i {
    color: #1877f2;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 5px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* =========================================
   BLOG PAGE STYLES
   ========================================= */

/* Blog Header */
.blog-header-section {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

/* Blog Page Header Title */
.blog-header-section .blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Blog Card Title (Homepage & Lists) */
.blog-card .blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Filter Pills */
.blog-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.filter-pill:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Featured Post Card */
.featured-post-card {
    background: #1e293b;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 4rem;
    transition: transform 0.3s;
}

.featured-post-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-img {
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-post-card:hover .featured-img img {
    transform: scale(1.05);
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-featured {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.featured-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 10px;
}

.featured-content h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: white;
}

.featured-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #475569;
}

.author-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Standard Blog Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.post-card-alt {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card-alt:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-thumb-alt {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-thumb-alt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card-alt:hover .post-thumb-alt img {
    transform: scale(1.1);
}

.post-body-alt {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cat-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.post-title-alt {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-title-alt a {
    color: var(--text-main);
}

.post-title-alt a:hover {
    color: var(--primary-color);
}

.post-desc-alt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer-alt {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    font-size: 0.9rem;
}

.read-more {
    color: #60a5fa;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-time {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Newsletter Section */
.newsletter-section {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 4rem;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.newsletter-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    background: #020617;
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.newsletter-input:focus {
    border-color: var(--primary-color);
}

@media (max-width: 1024px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .featured-img {
        min-height: 250px;
        height: 250px;
    }

    .posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 3rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Resource Page Styles */
.resource-header {
    background: #0b1221;
    padding: 6rem 0 3rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.resource-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.resource-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.resource-section {
    padding: 8rem 0 4rem;
    background: #0b1221;
}

.resource-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

/* Sidebar & Filters */
.resource-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.reset-filter {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Custom Checkbox/Radio */
.checkbox-container.loop-item {
    display: none !important;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    user-select: none;
    transition: color 0.2s;
}

.checkbox-container:hover {
    color: var(--primary-color);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Toolbar */
.resource-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2.5rem;
}

.toolbar-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.toolbar-search i {
    color: var(--text-muted);
}

.toolbar-search input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 1rem;
}

.toolbar-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    outline: none;
    font-size: 0.9rem;
}

.btn-compare {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.res-card {
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: var(--transition);
}

.res-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.res-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #0f172a;
}

.res-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.res-card:hover .res-thumb img {
    transform: scale(1.05);
}

.res-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.res-badge.hot {
    background: #ef4444;
    color: white;
}

.res-version {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    color: #94a3b8;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.res-body {
    padding: 1rem;
}

.res-type {
    font-size: 0.65rem;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.res-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0px;
}

.res-title a {
    color: white;
}

.res-card:hover .res-title a {
    color: var(--primary-color);
}

.res-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-free {
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1rem;
}

.price-val {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1rem;
}

.res-btn-download {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: 0.2s;
}

.res-card:hover .res-btn-download {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 5rem 0;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mobile-only {
    display: none;
}

/* 1200px Container for Products Page to support 4-columns */
.resource-section .container {
    max-width: 1200px !important;
}

/* Mobile Filter Trigger */
.mobile-filter-trigger {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    z-index: 1000;
    cursor: pointer;
    border: none;
    transition: transform 0.3s;
}

.mobile-filter-trigger:active {
    transform: scale(0.9);
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 998;
}

.filter-overlay.active {
    display: block;
}

/* Responsive Header & Resource Layout Fixes */
@media (max-width: 1200px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-layout {
        display: block;
    }

    .resource-sidebar {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-body);
        z-index: 1001;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem;
        overflow-y: auto;
    }

    .resource-sidebar.active {
        right: 0;
    }

    .filter-card {
        background: transparent;
        border: none;
        padding: 0;
    }

    .mobile-filter-trigger {
        display: flex;
    }

    .filter-header {
        display: flex;
        margin-bottom: 2rem;
    }

    .filter-group label {
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 0.85rem;
    }

    /* Button Style Options for Mobile */
    .filter-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .checkbox-container {
        padding: 12px !important;
        text-align: center;
        background: rgba(30, 41, 59, 0.7) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
        transition: 0.2s;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .checkbox-container .checkmark {
        display: none !important;
    }

    .checkbox-container input:checked+span+font,
    .checkbox-container input:checked~span,
    .checkbox-container:has(input:checked) {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: white !important;
    }

    .checkbox-container.loop-item {
        display: none !important;
        /* Remove loop items, no marquee needed */
    }

    .category-filter-group .filter-options {
        animation: none !important;
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .resource-grid {
        gap: 10px;
    }

    .resource-toolbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Modal System --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
    /* Show when active class is added */
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* User Dropdown */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 0.95rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    padding: 8px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.user-dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.user-name {
    display: block;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.user-role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
    transition: 0.2s;
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-item.text-danger:hover i {
    color: #ef4444;
}

/* Marquee Section */
.marquee-section {
    padding: 20px 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.marquee-wrapper {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
}

.marquee-item {
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.marquee-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.marquee-item:hover {
    color: white;
    transform: scale(1.05);
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.marquee-section:hover .marquee-wrapper {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Header User Actions & Balance */
.btn-deposit-quick {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-cart-header:hover,
.search-toggle:hover i {
    color: white !important;
    transform: translateY(-1px);
}

.btn-deposit-quick:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

.avatar-circle-sm {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}



/* Header Actions Styling & Alignment */
.mobile-right-actions {
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
    transition: 0.3s;
}

.balance-pill i {
    color: #34d399;
    font-size: 0.8rem;
    display: inline-block;
    /* Ensure visible globally if needed */
}

.balance-pill span {
    font-weight: 600;
    color: #34d399;
    font-size: 0.85rem;
    line-height: 1;
}

.btn-deposit-compact {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
    transition: 0.3s;
}

.btn-deposit-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(16, 185, 129, 0.4);
}

.btn-login-header {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 15px;
    transition: 0.3s;
}

.btn-login-header:hover {
    color: white;
}

.user-dropdown-container .dropdown-toggle {
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    cursor: pointer;
}

.user-dropdown-container .dropdown-toggle span {
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
}

.user-dropdown-container .dropdown-toggle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    padding-top: 10px;
}

.logout-link {
    color: #ef4444 !important;
}


/* Mobile Responsive Header Fixes */
@media (max-width: 991px) {

    /* HYPER-STRICT: Force single row layout */
    .navbar .container {
        display: flex !important;
        flex-direction: row !important;
        /* Force row orientation */
        flex-wrap: nowrap !important;
        /* ABSOLUTELY NO WRAP */
        justify-content: space-between !important;
        /* Logo left, actions right */
        align-items: center !important;
        width: 100% !important;
        padding: 0 10px !important;
        /* Maximize side room */
        height: 60px !important;
        overflow: visible !important;
    }

    .nav-links {
        display: none !important;
    }

    /* Logo - Strict sizing to avoid pushing actions */
    .logo {
        flex: 0 0 auto !important;
        /* Don't grow, don't shrink */
        width: auto !important;
        max-width: 160px !important;
        /* Increased from 132px */
        margin-right: 8px !important;
        display: flex !important;
        align-items: center !important;
        height: 100%;
        overflow: hidden;
    }

    .logo img {
        display: block !important;
        max-height: 38px !important;
        /* Increased from 31px */
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
    }

    /* Grouped Header Actions - Force them to stay together */
    .mobile-right-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        /* Extremely tight gap to save space */
        flex: 0 0 auto !important;
        /* Don't allow this group to shrink */
        height: 100%;
    }

    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .header-user-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 4px !important;
    }

    /* Minimize button sizes and hide icons to ensure fit */
    .balance-pill {
        display: flex !important;
        padding: 2px 6px !important;
        gap: 0 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 50px !important;
        white-space: nowrap !important;
    }

    .balance-pill i {
        display: none !important;
        /* Hide icon on mobile to save space */
    }

    .balance-pill span {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }

    .btn-deposit-compact {
        display: flex !important;
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        border-radius: 50px !important;
        gap: 0 !important;
    }

    .btn-deposit-compact .desktop-text {
        display: none !important;
    }

    .btn-deposit-compact i {
        font-size: 0.75rem !important;
    }

    .user-dropdown-container .dropdown-toggle {
        width: 28px !important;
        height: 28px !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .user-dropdown-container .dropdown-toggle span {
        font-size: 0.75rem !important;
    }

    /* Hide search on mobile */
    .search-toggle {
        display: none !important;
    }

    /* Hamburger */
    .hamburger {
        display: block !important;
        margin-left: 4px !important;
        width: 22px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        margin-bottom: 3px;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .hamburger span:last-child {
        margin-bottom: 0;
    }
}


/* Hero Mobile Fixes */
@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        /* Image on top, Text on bottom */
        gap: 30px;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 0.95rem;
        padding: 0 10px;
        /* Prevent text touching edges */
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        padding: 0 20px;
        /* Add some side padding for buttons */
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image img {
        max-height: 250px;
        /* Restrict image height so it fits well */
        object-fit: cover;
        width: 100%;
    }
}
/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cursor-dot-color);
    box-shadow: 0 0 10px var(--cursor-dot-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--cursor-outline-color);
}

.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
}

.cursor-hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: var(--cursor-outline-color);
    border-color: transparent;
}

@media (max-width: 1024px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    body {
        cursor: auto;
    }
}
