/* --- 1. CORE VARIABLES (ADD THIS TO TOP OF STYLE.CSS) --- */
:root {
    /* TYPOGRAPHY - CHANGED TO CLEANER FONTS */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    /* COLORS */
    --bg-main: #02040a;
    --bg-card: #0d1117;
    --neon-green: #00E676;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --border-color: #1e293b;
    
    /* SPACING */
    --container-width: 1200px;
}

/* === FORCE HIDE DEFAULT THEME ELEMENTS === */

/* Hide all default theme header icons and elements */
.site-header,
.site-branding,
header.header,
.header-icons,
.woocommerce-menu,
.account-icon,
.cart-icon,
.header-cart,
.header-account,
nav.primary-navigation,
.main-navigation,
.site-header-cart,
body > a[href*="account"],
body > a[href*="cart"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Force content to start from top */
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove admin bar space for logged-in users */
body.admin-bar {
    margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        margin-top: 46px !important;
    }
}

/* Make our plugin wrapper start from top */
.net6ix-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Force blank template pages to have no header/footer */
.page-template-blank-canvas header,
.page-template-blank-canvas footer,
.page-template-blank-canvas .site-header,
.page-template-blank-canvas .site-footer {
    display: none !important;
}

/* === DESKTOP LAYOUT FIX === */
@media (min-width: 768px) {
    .net6ix-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
    }
    
    .net6ix-section {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding: 30px 0;
    }
    
    .n6-hero,
    .shop-hero,
    .prod-hero {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Remove WordPress admin bar space */
html {
    margin-top: 0 !important;
}

body.admin-bar .net6ix-wrapper {
    padding-top: 0 !important;
}

/* Hide those mystery top icons */
.net6ix-wrapper > .icon-link:first-child,
body > .icon-link {
    display: none !important;
}

/* --- 2. THEME OVERRIDE (FORCE HIDE THEME ELEMENTS) --- */
/* This hides the default theme header, footer, and sidebars */
header.site-header,
footer.site-footer,
#colophon,
#masthead,
.wp-block-site-title,
.wp-block-navigation,
footer {
    display: none !important;
}

/* Force our plugin container to take full width */
.net6ix-wrapper, 
#net6ix-app-root {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: 20px;
}

/* Fix the white background issue */
body, html {
    background-color: var(--bg-main) !important;
    color: var(--text-white) !important;
    margin: 0 !important;
}

body, p, span, div, a, li, td, th, label, input, textarea, select {
    font-family: 'Space Grotesk', sans-serif !important;
}

body {
    background-color: var(--bg-main) !important;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    color: var(--text-white);
}

/* Keep headings bold and consistent */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700;
}

/* Headings get the "Cool" Tech Font */
h1, h2, h3, h4, h5, h6, 
.hero-title, 
.n6-logo {
    font-family: var(--font-heading);
    letter-spacing: -0.03em; /* Tighter tracking looks more premium */
}

/* Code windows use real code font */
.code-window, code, pre {
    font-family: var(--font-code);
}

/* --- 1. RESET SECTIONS (Fixes the layout breakage) --- 
.net6ix-section {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px; /* Tighter spacing */
    position: relative;
}

@media (min-width: 768px) {
    .net6ix-section {
        padding: 25px 40px;
    }
}

/* --- 2. TIGHTEN SPACING (Fixes "gap is too much") --- */
.section-header { 
    text-align: center; 
    margin-bottom: 20px; /* Reduced */
    margin-top: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 3. CORRECT PRODUCT GRID --- */
/* Use this class for Featured Scripts and Shop */
.product-grid,
.n6-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .product-grid,
    .n6-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 4. FIX TECH STACK GRID --- */
.tech-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

/* --- HIDE DEFAULT PAGE TITLE --- */
/* This removes the "Home" text */
.wp-block-post-title, 
.entry-title,
.page-title {
    display: none !important;
}

/* --- REMOVE TOP GAP --- */
/* This pulls your content up to the very top */
.net6ix-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove standard WordPress admin bar gap if you are viewing as admin */
html {
    margin-top: 0 !important;
}

/* Make the buttons bold and geometric */
.btn, .btn-green, .btn-outline {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px; /* Slightly smaller but bolder looks more pro */
    font-weight: 700;
}

/* Fix mobile overflow globally */
img { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* --- NAV --- */
.n6-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.n6-logo {
    border: 1px solid var(--neon-green);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
}
.n6-logo i { color: var(--neon-green); margin-right: 5px; }
.n6-menu-icons a {
    color: white;
    font-size: 20px;
    margin-left: 15px;
    text-decoration: none;
    position: relative;
}
.badge {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--neon-green);
    color: black;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
}

/* --- HERO --- */
.n6-hero { text-align: left; margin-bottom: 40px; }
.hero-title { 
    font-size: 42px; 
    font-weight: 900; 
    margin: 0; 
    line-height: 1.1; 
    text-transform: uppercase;
}
.hero-subtitle { font-size: 18px; color: #fff; margin: 10px 0; }
.text-green { color: var(--neon-green); font-weight: bold; }
.hero-desc { color: var(--text-gray); font-size: 14px; line-height: 1.6; }

/* Code Window */
.code-window {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 15px;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
}
.window-dots span {
    height: 10px; width: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.code-content { margin-top: 15px; color: #fff; font-size: 13px; }
.purple { color: #c678dd; }
.green { color: var(--neon-green); }
.blue { color: #61afef; }
.cursor { animation: blink 1s infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* Buttons */
.hero-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
/* --- MODERN BUTTONS --- */
.btn, .btn-green, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    max-width: 100%;
    white-space: nowrap;
    border: 2px solid var(--neon-green); /* Added border */
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--neon-green);
}

/* Full width on mobile only */
@media (max-width: 768px) {
    .hero-btns {
        width: 100%;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Grid Features */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.grid-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.icon-box {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
}
.green-bg { background: var(--neon-green); color: black; }
.white-bg { background: white; color: black; }
.grid-item p { margin: 0; font-weight: bold; font-size: 14px; }
.grid-item p span { font-weight: normal; color: var(--text-gray); font-size: 12px; }

/* --- TECH STACK --- */
.section-header h3 { font-size: 24px; margin-bottom: 5px; }
.section-header p { color: var(--text-gray); font-size: 14px; margin-top: 0; }

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.tech-card i { font-size: 28px; margin-bottom: 10px; display: block; }
.text-orange { color: #e44d26; } .text-blue { color: #38bdf8; } 
.text-yellow { color: #f7df1e; } .text-purple { color: #777bb4; } .text-red { color: #f05340; }

/* --- MODERN PRODUCT GRID --- */
/* This container needs to wrap your product cards in the PHP loop */

/* Reset specific sections that shouldn't be grids */
.net6ix-section.footer-section, 
.shop-toolbar,
.shop-hero {
    display: block; 
}

.product-card {
    background: #0f1219;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 230, 118, 0.2);
    border-color: var(--neon-green);
}

.prod-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid #1e293b;
}

.prod-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prod-body h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.prod-body p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.prod-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1e293b;
    padding-top: 15px;
}

.price { color: var(--neon-green); font-size: 20px; font-weight: bold; }
.btn-sm {
    background: transparent;
    border: 1px solid #333;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

/* --- PHILOSOPHY SECTION --- */
.text-gradient {
    color: white;
}
.text-gradient span { color: var(--neon-green); }

.philosophy-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 1px solid #333; /* The timeline line */
    margin-left: 10px;
}

.philo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Connecting dots */
.philo-card::before {
    content: '';
    position: absolute;
    left: -26px; /* Align with border line */
    top: 30px;
    width: 10px; height: 10px;
    background: var(--bg-main);
    border: 2px solid var(--neon-green);
    border-radius: 50%;
}

.philo-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #444;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 15px;
    color: #fff;
}
.philo-icon.green { border-color: var(--neon-green); color: var(--neon-green); }

.philo-label {
    font-size: 10px; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-gray);
}

.philo-card h3 { margin: 5px 0 10px; font-size: 20px; }
.philo-card p { font-size: 14px; color: var(--text-gray); line-height: 1.5; }

.check-list { list-style: none; padding: 0; margin-top: 15px; }
.check-list li { margin-bottom: 8px; font-size: 13px; color: #ccc; }
.check-list li i { color: var(--neon-green); margin-right: 8px; }


/* --- SERVICES SECTION --- */
.service-highlight {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.icon-box.blue-bg { background: #38bdf8; color: black; margin: 0 auto 15px; }
.badge-blue { 
    background: rgba(56, 189, 248, 0.15); color: #38bdf8; 
    padding: 5px 10px; font-size: 11px; border-radius: 4px; 
    margin: 0 3px; font-weight: bold;
}

.services-list { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.service-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
    display: flex; align-items: center;
    transition: 0.3s;
}
.service-item:hover { background: rgba(255,255,255,0.05); }

.svc-icon {
    width: 30px; height: 30px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}
.svc-icon.green { background: rgba(0, 230, 118, 0.2); color: var(--neon-green); }
.svc-icon.blue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.svc-icon.purple { background: rgba(198, 120, 221, 0.2); color: #c678dd; }
.svc-icon.orange { background: rgba(240, 83, 64, 0.2); color: #f05340; }


/* --- TESTIMONIALS --- */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}
.avatar-area { display: flex; justify-content: center; margin-bottom: 15px; }
.avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background-size: cover;
    border: 2px solid var(--bg-main);
}
.stars { color: var(--neon-green); font-size: 12px; margin-bottom: 15px; }
.quote { font-style: italic; color: #ccc; font-size: 14px; margin-bottom: 20px; }
.author strong { display: block; color: white; }
.author span { font-size: 12px; color: var(--neon-green); }


/* --- FOOTER --- */
.footer-section { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid #222; margin-top: 40px;}
.newsletter-box { margin: 25px 0; }
.newsletter-box label { display: block; margin-bottom: 10px; font-size: 14px; color: #aaa; }
.input-group { display: flex; position: relative; }
.input-group input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    padding: 12px;
    border-radius: 6px;
    color: white;
}
.input-group button {
    position: absolute; right: 5px; top: 5px;
    background: transparent; border: none; color: white;
    cursor: pointer; padding: 8px;
}
.footer-links-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-bottom: 30px;
}
.footer-links-grid h4 { margin-bottom: 15px; font-size: 16px; }
.footer-links-grid ul { list-style: none; padding: 0; }
.footer-links-grid ul li { margin-bottom: 10px; }
.footer-links-grid ul li a { color: #888; text-decoration: none; font-size: 14px; }
.footer-links-grid ul li a:hover { color: var(--neon-green); }

.social-icons { display: flex; gap: 15px; margin-bottom: 20px; }
.social-icons a {
    width: 35px; height: 35px;
    background: #1e293b;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    color: white; text-decoration: none;
}
.copyright { font-size: 12px; color: #555; }

/* --- SHOP HEADER --- */
.shop-hero {
    text-align: center;
    padding: 40px 0;
    /* Simulating the earth background with a radial gradient */
    background: radial-gradient(circle at center bottom, #1a2c38 0%, var(--bg-main) 70%);
    margin-bottom: 30px;
}
.breadcrumbs {
    color: var(--text-gray);
    font-size: 12px;
    margin-bottom: 15px;
}
.breadcrumbs i { font-size: 10px; margin: 0 5px; }
.shop-hero h1 {
    font-size: 36px;
    margin: 0 0 15px;
    background: -webkit-linear-gradient(#fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.shop-hero p { font-size: 14px; color: var(--text-gray); line-height: 1.6; max-width: 90%; margin: 0 auto; }

/* --- TOOLBAR & FILTERS --- */
.shop-toolbar { margin-bottom: 30px; }
.search-box {
    position: relative;
    margin-bottom: 15px;
}
.search-box input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}
.search-box i {
    position: absolute;
    right: 15px; top: 14px;
    color: var(--text-gray);
}
.filter-row { display: flex; gap: 10px; }
.n6-select {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid #333;
    color: white;
    padding: 12px;
    border-radius: 8px;
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

/* --- CATEGORY GRID --- */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}
.cat-card {
    background: var(--bg-card);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: 0.3s;
}
.cat-card:hover { border-color: var(--neon-green); }
.cat-card i { font-size: 24px; color: var(--neon-green); margin-bottom: 10px; }
.cat-card h4 { margin: 5px 0; color: white; font-size: 15px; }
.cat-card span { font-size: 12px; color: var(--text-gray); }

/* --- PRODUCT CARD UPDATES --- */
.prod-img { position: relative; }
.featured-badge {
    position: absolute; top: 10px; left: 10px;
    background: #00b894; color: white;
    font-size: 10px; font-weight: bold; padding: 4px 8px; border-radius: 4px;
}
.codecanyon-badge {
    position: absolute; top: 10px; right: 10px;
    background: #00E676; color: black;
    font-size: 10px; font-weight: bold; padding: 4px 8px; border-radius: 4px;
}
.downloads { font-size: 11px; color: #666; margin-top: 3px; }
.btn-outline-sm {
    border: 1px solid #444; color: white;
    padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: 12px;
    transition: 0.2s;
}
.btn-outline-sm:hover { background: white; color: black; }

/* --- CTA SECTION --- */
.shop-cta-box {
    margin-top: 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,230,118,0.05) 100%);
    padding: 20px;
    border-radius: 16px;
}
.shop-cta-box h2 { font-size: 28px; line-height: 1.2; margin-bottom: 15px; }
.shop-cta-box p { color: var(--text-gray); font-size: 14px; margin-bottom: 25px; }
.shop-cta-box .btn-green { display: inline-block; margin-bottom: 40px; }

.cta-grid { display: flex; flex-direction: column; gap: 15px; }
.cta-item {
    background: rgba(255,255,255,0.05);
    padding: 20px; border-radius: 12px;
    border: 1px solid #333;
}
.cta-item h4 { margin: 0 0 5px; font-size: 18px; display: flex; justify-content: space-between; }
.cta-item p { margin: 0; font-size: 13px; }

/* --- PRODUCT HEADER --- */
.prod-hero {
    text-align: center;
    padding: 30px 0;
    background: radial-gradient(circle at center bottom, #102a43 0%, var(--bg-main) 70%);
}
.subtitle { color: #888; font-size: 16px; margin-top: -10px; margin-bottom: 20px; }

.prod-meta-row { margin-bottom: 20px; }
.badge-gold {
    background: #ff9f43; color: black;
    font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 4px;
    margin-right: 10px;
}
.badge-pill {
    background: #2d3436; color: #fff; border: 1px solid #555;
    font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}

.stats-row {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
    color: var(--text-gray); font-size: 13px;
}
.stats-row i { color: var(--neon-green); margin-right: 5px; }

/* --- GALLERY --- */
.gallery-section { margin-bottom: 30px; }
.main-image {
    width: 100%; height: 260px;
    background-size: cover; background-position: center;
    border-radius: 12px; margin-bottom: 10px;
    border: 1px solid #222;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    position: relative; overflow: hidden;
}
.main-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    border-radius: 12px;
    pointer-events: none;
}
.thumb-grid { display: flex; gap: 10px; }
.thumb {
    width: 60px; height: 60px;
    background-size: cover; border-radius: 8px;
    border: 1px solid #333; opacity: 0.6; cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
}
.thumb:hover { opacity: 0.9; }
.thumb.active { border-color: var(--neon-green); opacity: 1; }

/* --- TWO COLUMN LAYOUT --- */
.two-col-grid { display: grid; grid-template-columns: 1fr; gap: 30px; padding-bottom: 80px; }
@media (min-width: 768px) {
    .two-col-grid { grid-template-columns: 2fr 1fr; }
    .main-image { height: 460px; }
}

/* --- CONTENT BOXES --- */
.content-box {
    background: var(--bg-card);
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}
.content-box:hover { border-color: #2a2a2a; }
.box-title {
    font-size: 11px; color: var(--neon-green);
    letter-spacing: 2px; margin-top: 0; margin-bottom: 20px;
    text-transform: uppercase; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.box-title i { font-size: 12px; }
/* --- DESCRIPTION TEXT --- */
.description-text { font-size: 14px; color: #ccc; line-height: 1.8; }
.description-text p { color: #ccc; line-height: 1.8; font-size: 14px; margin-bottom: 16px; }
.description-text h1,
.description-text h2,
.description-text h3,
.description-text h4 {
    color: #fff; margin-top: 28px; margin-bottom: 12px; font-weight: 600; line-height: 1.3;
}
.description-text h2 { font-size: 18px; border-bottom: 1px solid #2a2a2a; padding-bottom: 8px; }
.description-text h3 { font-size: 15px; color: var(--neon-green); }
.description-text ul,
.description-text ol { padding-left: 20px; margin-bottom: 16px; color: #ccc; }
.description-text ul li,
.description-text ol li { margin-bottom: 6px; line-height: 1.7; }
.description-text a { color: var(--neon-green); text-decoration: underline; }
.description-text a:hover { opacity: 0.8; }
.description-text code {
    background: #1a1a2e; color: #00E676; padding: 2px 6px;
    border-radius: 4px; font-size: 13px; font-family: 'JetBrains Mono', monospace;
}
.description-text pre {
    background: #0d0d1a; border: 1px solid #2a2a2a; border-radius: 8px;
    padding: 16px; overflow-x: auto; margin-bottom: 16px;
}
.description-text pre code { background: none; padding: 0; color: #a8ff78; }
.description-text blockquote {
    border-left: 3px solid var(--neon-green); margin: 0 0 16px 0;
    padding: 10px 16px; background: rgba(0,230,118,0.05); border-radius: 0 8px 8px 0;
    color: #bbb; font-style: italic;
}
/* Images inside description — always full-width, never inline */
.description-text img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    margin: 20px 0 !important;
    float: none !important;
    clear: both;
    object-fit: cover;
}
/* WordPress alignment classes — override to always be full-width in dark context */
.description-text .alignleft,
.description-text .alignright,
.description-text .aligncenter {
    float: none !important;
    display: block !important;
    margin: 20px auto !important;
    max-width: 100% !important;
}
.description-text figure { margin: 20px 0; }
.description-text figcaption {
    text-align: center; font-size: 12px; color: #666;
    margin-top: -14px; margin-bottom: 16px; font-style: italic;
}

/* --- ADDONS --- */
.addon-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
}
.addon-info h4 { margin: 0 0 5px; font-size: 14px; color: white; }
.addon-info p { margin: 0; font-size: 11px; color: #888; }
.addon-action { text-align: right; }
.addon-price { display: block; color: var(--neon-green); font-weight: bold; font-size: 14px; margin-bottom: 5px; }
.btn-xs-outline { background: transparent; border: 1px solid #444; color: #ccc; padding: 4px 8px; font-size: 10px; border-radius: 4px; cursor: pointer;}
.btn-xs-green { background: var(--neon-green); border: none; color: black; padding: 4px 8px; font-size: 10px; border-radius: 4px; font-weight: bold; cursor: pointer;}

/* --- DETAILS TOGGLES --- */
.details-toggles { display: flex; flex-direction: column; gap: 10px; }
.toggle-btn {
    background: var(--bg-card); border: 1px solid #333;
    color: white; padding: 15px; border-radius: 10px;
    text-align: center; width: 100%; cursor: pointer;
    font-weight: 600; font-size: 14px;
}
.toggle-btn:hover { border-color: var(--neon-green); }

/* --- SPEC LIST & SUPPORT --- */
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid #222; font-size: 13px;
}
.spec-list li span:first-child { color: #888; text-transform: uppercase; font-size: 11px; }
.spec-list li span:last-child { color: white; font-weight: 600; }

.support-link { display: flex; align-items: center; margin-bottom: 15px; gap: 15px; }
.support-link i { font-size: 20px; color: var(--neon-green); }
.support-link strong { display: block; font-size: 13px; }
.support-link small { color: #888; font-size: 12px; }

/* --- PURCHASE BAR (Mobile) --- */
.mobile-purchase-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #0d1117;
    border-top: 1px solid var(--neon-green);
    padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 99;
}
.price-display { font-size: 24px; font-weight: bold; color: var(--neon-green); }
.action-btns { display: flex; gap: 10px; }
@media (min-width: 768px) { .mobile-purchase-bar { display: none; } }

/* --- DESKTOP BUY BOX --- */
.desktop-only { display: none; }
@media (min-width: 768px) {
    .desktop-only { display: block; }
    .buy-box {
        background: var(--bg-card); border: 1px solid var(--neon-green);
        padding: 25px; border-radius: 16px; margin-bottom: 20px; text-align: center;
    }
    .price-tag { font-size: 32px; font-weight: bold; color: var(--neon-green); margin-bottom: 20px; }
    .full-width { width: 100%; margin-bottom: 10px; }
}

/* --- MODAL --- */
.n6-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 1000;
    justify-content: center; align-items: center;
}
.modal-content {
    background: #1a1f2e; padding: 30px; border-radius: 16px;
    width: 90%; max-width: 400px; position: relative;
    border: 1px solid var(--neon-green);
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #fff; }
.license-form label { display: block; margin-top: 15px; font-size: 13px; color: #ccc; margin-bottom: 5px;}
.license-form input { 
    width: 100%; padding: 10px; background: rgba(0,0,0,0.3); 
    border: 1px solid #444; color: white; border-radius: 6px; 
}
.license-form small { color: #666; font-size: 11px; display: block; margin-top: 5px; }
.total-row { display: flex; justify-content: space-between; margin: 20px 0; font-size: 18px; font-weight: bold; border-top: 1px solid #333; padding-top: 15px; }

/* ===================================
   CART PAGE STYLES
   =================================== */
.cart-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.item-image {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.item-details h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.item-addons {
    font-size: 13px;
    color: var(--text-gray);
}

.addon-tag {
    display: inline-block;
    background: rgba(0, 230, 118, 0.1);
    color: var(--neon-green);
    padding: 3px 8px;
    border-radius: 4px;
    margin: 5px 5px 0 0;
    font-size: 11px;
}

.item-price strong {
    font-size: 20px;
    color: var(--neon-green);
}

.btn-remove {
    background: transparent;
    border: 1px solid #e53e3e;
    color: #e53e3e;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-remove:hover {
    background: #e53e3e;
    color: white;
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    max-width: 400px;
    margin-left: auto;
}

.cart-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-row.total {
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: var(--neon-green);
}

/* ===================================
   CHECKOUT PAGE STYLES
   =================================== */
.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .checkout-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.checkout-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--neon-green);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.form-group input,
.form-group select,
.gateway-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus,
.gateway-select:focus {
    outline: none;
    border-color: var(--neon-green);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.gateway-notice {
    background: rgba(56, 189, 248, 0.1);
    border-left: 3px solid #38bdf8;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    color: #ccc;
}

.gateway-notice i {
    color: #38bdf8;
    margin-right: 8px;
}

.order-summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.order-summary-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-gray);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
    font-size: 18px;
    color: var(--neon-green);
}

/* ===================================
   MOBILE MENU SIDEBAR
   =================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.close-menu {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-content {
    padding: 20px;
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--neon-green);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 16px;
    margin-bottom: 3px;
}

.user-info span {
    font-size: 12px;
    color: var(--text-gray);
}

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

.mobile-menu-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list li a {
    display: block;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.mobile-menu-list li a:hover {
    color: var(--neon-green);
    padding-left: 15px;
}

.mobile-menu-list li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

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

/* ===================================
   MY ACCOUNT PAGE STYLES
   =================================== */
.account-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

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

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 15px 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.3s;
}

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

.tab-btn.active {
    color: var(--neon-green);
    border-bottom-color: var(--neon-green);
}

.tab-content {
    display: none;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.licenses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .licenses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.license-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: 0.3s;
}

.license-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-2px);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.license-header h3 {
    margin: 0;
    font-size: 18px;
}

.version-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-gray);
}

.license-key-display {
    margin-bottom: 20px;
}

.license-key-display label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.key-copy-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.key-copy-box code {
    flex: 1;
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-copy:hover {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: black;
}

.license-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-row span:first-child {
    color: var(--text-gray);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: rgba(0, 230, 118, 0.2);
    color: var(--neon-green);
}

.status-inactive {
    background: rgba(229, 62, 62, 0.2);
    color: #e53e3e;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-completed {
    background: rgba(0, 230, 118, 0.2);
    color: var(--neon-green);
}

.orders-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.orders-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.orders-table th,
.orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

.profile-form {
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
}

.profile-form .form-group {
    margin-bottom: 25px;
}

.profile-form button,
.profile-form a {
    margin-right: 10px;
}

/* ===================================
   AUTH MODAL UPDATES
   =================================== */
#authModal .modal-content {
    max-width: 450px;
}

#authModal form {
    margin-top: 20px;
}

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

#authModal label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

#authModal input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 15px;
}

#authModal input:focus {
    outline: none;
    border-color: var(--neon-green);
}

/* ===================================
   RESPONSIVE UPDATES
   =================================== */
@media (max-width: 767px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .item-price,
    .item-actions {
        grid-column: span 2;
    }
    
    .item-price {
        text-align: left;
        margin-top: 10px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary-box {
        position: static;
    }
    
    .account-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 12px 20px;
    }
}

/* ===================================
   CART BADGE VISIBILITY
   =================================== */
.cart-badge {
    display: none;
}

.cart-badge:not(:empty) {
    display: inline-block;
}

/* ===================================
   BUTTON DISABLED STATE
   =================================== */
.btn:disabled,
.btn-green:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================================
   PAYMENT CALLBACK PAGE
   =================================== */
.payment-callback-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

/* Hide default page title on shortcode pages */
.page .entry-header,
.single .entry-header {
    display: none !important;
}

/* Featured Products Grid */
.featured-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .featured-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Shop Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .shop-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- FORCE 2-COLUMN GRID ON DESKTOP --- */
@media (min-width: 768px) {
    .featured-products-grid,
    .shop-products-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .featured-products-grid,
    .shop-products-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Ensure the hero grid matches if desired */
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(4, 1fr); /* Keep hero icons as 4 */
    }
}

/* --- FIX: FORCE 2 COLUMN GRID --- */
@media (min-width: 768px) {
    .featured-products-grid,
    .shop-products-grid,
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

/* Ensure images fit the new grid size */
.product-card .prod-img {
    height: 220px !important;
}

/* --- FIX HOMEPAGE GAP --- */
.net6ix-wrapper {
    min-height: auto !important; /* This closes the huge gap */
    padding-bottom: 40px;
}

/* Ensure the background stays black even with auto height */
html, body {
    background-color: #02040a !important;
    min-height: 100vh;
}

/* --- FIX PRODUCT GRID (2 Columns) --- */
@media (min-width: 768px) {
    .featured-products-grid,
    .shop-products-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- FIX MOBILE PADDING & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Sora:wght@400;500;600;700&display=swap');

/* --- UNIVERSAL MOBILE FIX --- */
@media (max-width: 768px) {
    /* Apply padding to BOTH the wrapper and individual sections */
    .net6ix-wrapper,
    .net6ix-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevents side-scroll */
    }

    /* Fix Tech Stack Grid for Mobile */
    .tech-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
        gap: 15px !important;
        width: 100% !important;
    }

    /* Prevent Tech Cards from overflowing */
    .tech-card {
        width: 100% !important;
        min-width: 0 !important; /* Flexbox safety */
    }

    /* Fix Giant Hero Text */
    .n6-hero .hero-title {
        font-size: 32px !important;
        word-wrap: break-word !important;
    }
}

/* Ensure global box-sizing to prevent padding from adding width */
* {
    box-sizing: border-box;
}

/* Hide Theme Icons (User/Cart) */
.header-icons, 
.site-header-cart, 
.account-icon, 
.cart-icon,
body > a[href*="cart"], 
body > a[href*="my-account"] {
    display: none !important;
}

/* --- UNIFY PRODUCT CARD WIDTHS --- */
.shop-products-grid,
.featured-products-grid {
    display: grid !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Mobile: 1 Column */
    grid-template-columns: 100% !important; 
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure images are consistent height */
.shop-products-grid .prod-img,
.featured-products-grid .prod-img {
    height: 200px !important;
    width: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Desktop Override: 2 Columns */
@media (min-width: 768px) {
    .shop-products-grid,
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =========================================
   FINAL LAYOUT & WIDTH FIXES (CORRECTED)
   ========================================= */

/* 1. MOBILE DEFAULTS (Wide cards, single column) */
.shop-products-grid,
.featured-products-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* 1 Column on Mobile */
    gap: 20px !important;
    width: 100% !important;
    padding: 0 !important;
}

.product-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. DESKTOP GRID RESTORATION (The Fix) */
@media (min-width: 769px) {
    /* Restore the grid columns on larger screens */
    .shop-products-grid,
    .featured-products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Columns on Desktop */
        gap: 25px !important;
    }

    /* Fix the "width out" issue on desktop */
    .net6ix-section, 
    .net6ix-wrapper {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* --- FORCE STORE WIDTH TO MATCH HOMEPAGE --- */
.shop-wrapper .net6ix-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.shop-products-grid {
    display: grid !important;
    width: 100% !important;
    margin: 0 !important;
    /* Mobile: 1 Column, Full Width */
    grid-template-columns: 1fr !important; 
    gap: 20px !important;
}

/* Force the card to fill the grid cell */
.shop-products-grid .product-card {
    width: 100% !important;
    margin: 0 !important;
}

/* Restore Desktop 2-Column Grid */
@media (min-width: 768px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    /* Restore padding on desktop so it's not touching the screen edges */
    .shop-wrapper .net6ix-section {
        padding-left: 40px !important;
        padding-right: 40px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
}

/* --- FIX BUY NOW BUTTON VISIBILITY --- */
#purchaseModal .btn-buy-now {
    color: #ffffff !important;         /* Bright White Text */
    border: 1px solid #00E676 !important; /* Neon Green Border */
    background: transparent !important;
    font-weight: 700 !important;
}

#purchaseModal .btn-buy-now:hover {
    background: #00E676 !important;    /* Green background on hover */
    color: #000000 !important;         /* Black text on hover */
}

/* FIX: Force Auth Modal to be above everything */
#authModal {
    z-index: 9999 !important;
}

/* Ensure Purchase Modal is below it */
#purchaseModal {
    z-index: 1000 !important;
}

/* --- FIX: BUTTON VISIBILITY & CONTRAST --- */

/* 1. Fix "Complete Purchase" & All Green Buttons */
.btn-green, 
button[type="submit"].btn-green {
    background-color: #00E676 !important; /* Neon Green */
    color: #000000 !important;             /* Black Text (High Contrast) */
    border: 1px solid #00E676 !important;
    font-weight: 700 !important;
}

/* Hover Effect for Green Buttons */
.btn-green:hover,
button[type="submit"].btn-green:hover {
    background-color: #00c853 !important; /* Slightly darker green */
    color: #000000 !important;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4); /* Glow effect */
}

/* 2. Fix "Buy Now" (Instant Checkout) Button in Modal */
.btn-instant-checkout,
.btn-buy-now {
    background-color: transparent !important;
    color: #ffffff !important;             /* Bright White Text */
    border: 2px solid #00E676 !important;  /* Neon Green Border */
    font-weight: 700 !important;
}

/* Hover Effect for Buy Now */
.btn-instant-checkout:hover,
.btn-buy-now:hover {
    background-color: #00E676 !important;
    color: #000000 !important;             /* Black Text on Hover */
}

/* 3. Fix "Add to Cart" Button (White Button) */
.btn-add-cart {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
}

.btn-add-cart:hover {
    background-color: #e0e0e0 !important;
}

/* =========================================
   PREMIUM "CYBER-SAAS" UPGRADE (ADD TO BOTTOM)
   ========================================= */

/* 1. CYBER-GRID BACKGROUND */
/* Adds a subtle grid pattern to the background for a technical feel */
body {
    background-color: #02040a !important; /* Ensure base is dark */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 50px 50px !important;
    background-position: center top !important;
}

/* Adds a radial fade so the grid isn't too overwhelming at the bottom */
.net6ix-wrapper {
    background: radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.05) 0%, transparent 60%) !important;
}

/* 2. GLASSMORPHISM NAVIGATION */
/* Makes the nav bar sticky, blurry, and premium */
.n6-nav {
    position: sticky !important;
    top: 20px !important;
    z-index: 100 !important;
    background: rgba(13, 17, 23, 0.7) !important; /* Semi-transparent */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important; /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 15px 30px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

/* 3. PRODUCT CARDS GLOW & ZOOM */
/* Adds a glow effect and subtle zoom when you hover over a product */
.product-card {
    background: linear-gradient(145deg, #0f1219, #0a0c10) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 15px 30px -10px rgba(0, 230, 118, 0.15),
                0 0 10px rgba(0, 230, 118, 0.1) inset !important;
}

.product-card .prod-img {
    overflow: hidden !important;
    transition: background-size 0.5s ease !important;
}

/* Note: This zoom effect works best if the image is set as background-image, which your code does */
.product-card:hover .prod-img {
    background-size: 110% !important; 
}

/* 4. BUTTON SHINE ANIMATION */
/* Adds a passing light reflection effect on hover */
.btn-green {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.btn-green::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent) !important;
    transition: 0.5s !important;
    z-index: -1 !important;
}

.btn-green:hover::after {
    left: 100% !important;
    transition: 0.5s ease-in-out !important;
}

/* 5. TYPOGRAPHY GRADIENTS */
/* Makes the main hero text look metallic/premium instead of plain white */
.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.text-green {
    background: linear-gradient(135deg, #00E676 0%, #00b050 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* --- DARK MODE CODECANYON CARDS --- */
.n6-cc-card {
    background: #0d1117 !important;     /* Dark Background */
    border: 1px solid #30363d !important; /* Visible Border */
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.n6-cc-card:hover {
    transform: translateY(-3px);
    border-color: var(--neon-green) !important; /* Green border on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.n6-cc-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid #30363d;
}

.n6-cc-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Fix Text Visibility */
.n6-cc-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff !important; /* Bright White Text */
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.n6-cc-meta {
    font-size: 13px;
    color: #8b949e !important; /* Light Gray Text */
    margin-bottom: 15px;
}

.n6-cc-price {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important; /* Bright White Price */
    margin-bottom: 10px;
}

.n6-cc-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #8b949e !important; /* Light Gray Stats */
}

.n6-stars {
    color: #ffc107; /* Gold Stars */
    font-size: 13px;
}

.n6-cc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #30363d; /* Dark Separator */
}

/* Button Fixes */
.n6-btn-cart {
    width: 36px;
    height: 36px;
    border: 1px solid #30363d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9d1d9; /* Light Icon */
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
}

.n6-btn-cart:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.n6-btn-preview {
    padding: 6px 15px;
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-green);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}

.n6-btn-preview:hover {
    background: var(--neon-green);
    color: #000; /* Black text on hover for contrast */
}

/* ============================================================
   Google Sign-In Button & Divider
   ============================================================ */

.btn-google-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 4px;
    background: #fff;
    color: #3c4043;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #dadce0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.btn-google-signin:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    border-color: #bbb;
}

.btn-google-signin:active {
    background: #efefef;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #666;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.12);
}
