/*
Theme Name: Codes4Free Theme
Theme URI: https://codes4free.cc
Author: Codes4Free
Author URI: https://codes4free.cc
Description: A professional, modern dark-mode WordPress theme for showcasing digital products, WordPress themes, and development scripts.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: envato-showcase
Tags: dark-mode, custom-background, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Font Awesome Webfonts Configuration
   ============================================================ */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-regular-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-brands-400.woff2') format('woff2');
}

/* ============================================================
   Design System & CSS Custom Properties
   ============================================================ */
:root {
    /* Color Direction: Professional Modern Dark Design */
    --primary-bg: #0b1019;
    --secondary-bg: #172033;
    --surface-card: #172033;
    --surface-elevated: #1e2a44;
    --surface-inner: #0f1624;
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-focus: rgba(0, 182, 255, 0.5);

    /* Typography & Text */
    --text-color: #cbd5e1;
    --text-heading: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    /* Accents */
    --accent-primary: #00b6ff;
    --accent-blue: #00b6ff;
    --accent-blue-light: #38bdf8;
    --accent-blue-dark: #0284c7;
    --accent-green: #10b981;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    /* Modern System Sans-Serif Font Stack */
    --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 24px rgba(0, 182, 255, 0.25);
    --shadow-glow-green: 0 0 24px rgba(16, 185, 129, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Indices */
    --z-dropdown: 1000;
    --z-header: 1000;
    --z-modal: 9999;
}

/* ============================================================
   Base & Reset Styles
   ============================================================ */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(1.8rem, 3.5vw + 0.5rem, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.5vw + 0.4rem, 1.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw + 0.3rem, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue-light);
}

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

/* Accessible Skip Link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 20px;
    background: var(--accent-primary);
    color: #fff;
    padding: 10px 18px;
    z-index: 10001;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 20px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Visible Focus Indicator */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* Layout & Container Constraints */
#page,
.site {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: hidden;
}

.site-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.site-main {
    width: 100%;
    max-width: 100%;
    padding: 2rem 0 4rem;
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   Header & Sticky Navigation
   ============================================================ */
.site-header {
    background: rgba(11, 16, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    background: rgba(11, 16, 25, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
    padding: 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0.5rem 1.5rem;
    gap: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-title-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-heading);
    text-decoration: none;
}

.navbar-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 182, 255, 0.12);
    border: 1px solid rgba(0, 182, 255, 0.25);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow-blue);
}

.site-title-accent {
    color: var(--accent-primary);
}

/* Primary Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.navbar-nav > li {
    position: relative;
}

.navbar-nav > li > a {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.current-menu-item > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Submenus */
.navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 0;
    list-style: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

.navbar-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .sub-menu li a {
    display: block;
    padding: 8px 18px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.navbar-nav .sub-menu li a:hover {
    color: var(--accent-primary);
    background: rgba(0, 182, 255, 0.08);
}

/* Search Header Button */
.navbar-search-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.navbar-search-btn:hover {
    color: #ffffff;
    background: rgba(0, 182, 255, 0.12);
    border-color: rgba(0, 182, 255, 0.3);
}

/* Mobile Toggle (Desktop Default: Hidden) */
.navbar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    padding: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.navbar-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 182, 255, 0.4);
}

.navbar-toggle-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: background 0.2s ease;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: currentColor;
    left: 0;
    transition: transform 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

.navbar-toggle-icon::before { top: -7px; }
.navbar-toggle-icon::after { bottom: -7px; }

.navbar-toggle.active .navbar-toggle-icon {
    background: transparent;
}

.navbar-toggle.active .navbar-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile search and submenu toggles are hidden on desktop */
.mobile-menu-search {
    display: none;
}

.submenu-toggle {
    display: none;
}

/* ============================================================
   Full-Screen Search Overlay
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 16, 25, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.search-overlay-inner {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

.search-overlay-hint {
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-overlay-form {
    display: flex;
    align-items: center;
    background: var(--surface-card);
    border: 2px solid rgba(0, 182, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: 8px 12px 8px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow-blue);
    gap: 12px;
}

.search-overlay-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.25rem;
    color: #ffffff;
    font-family: inherit;
    padding: 10px 0;
}

.search-overlay-form input[type="search"]::placeholder {
    color: var(--text-muted);
}

.search-overlay-submit {
    background: var(--accent-primary);
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-overlay-submit:hover {
    background: var(--accent-blue-light);
    transform: scale(1.05);
}

/* ============================================================
   Breadcrumbs Navigation
   ============================================================ */
.breadcrumbs {
    margin: 1.5rem 0 2rem 0;
    font-size: 0.9rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--border-color);
    font-weight: 300;
}

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

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

.breadcrumbs li:last-child {
    color: var(--text-heading);
    font-weight: 500;
}

/* ============================================================
   Hero Section (Homepage)
   ============================================================ */
.hero-section {
    background: radial-gradient(circle at 50% 0%, rgba(0, 182, 255, 0.12) 0%, rgba(23, 32, 51, 0.7) 45%, rgba(11, 16, 25, 0.95) 100%), #0e1524;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 4rem 2rem 3rem 2rem;
    margin: 2rem 0 3.5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 182, 255, 0.1);
    border: 1px solid rgba(0, 182, 255, 0.25);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section .site-title {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.hero-section .site-description {
    font-size: clamp(1rem, 1.2vw + 0.4rem, 1.15rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* Hero Search Bar */
.hero-search {
    max-width: 640px;
    margin: 0 auto 1.5rem auto;
}

.hero-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 6px 8px 6px 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.hero-search-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 182, 255, 0.25), var(--shadow-md);
}

.hero-search-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 12px;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    padding: 8px 0;
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.hero-search-button {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-blue-dark) 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-search-button:hover {
    background: var(--accent-primary);
    box-shadow: 0 4px 14px rgba(0, 182, 255, 0.35);
}

/* Hero Category Tags */
.hero-category-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.hero-tags-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-tags-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.hero-tag-pill:hover {
    color: #ffffff;
    background: rgba(0, 182, 255, 0.12);
    border-color: rgba(0, 182, 255, 0.3);
    transform: translateY(-1px);
}

.hero-tag-pill .tag-count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 999px;
}

/* Hero Feature Cards */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.hero-feature-card {
    background: rgba(23, 32, 51, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: all var(--transition-fast);
}

.hero-feature-card:hover {
    border-color: rgba(0, 182, 255, 0.3);
    transform: translateY(-2px);
}

.hero-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 182, 255, 0.1);
    border: 1px solid rgba(0, 182, 255, 0.2);
    color: var(--accent-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-feature-title {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.hero-feature-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================================
   Category Archive Banner
   ============================================================ */
.category-hero-banner {
    background: radial-gradient(circle at 50% 0%, rgba(0, 182, 255, 0.1) 0%, rgba(23, 32, 51, 0.8) 50%, rgba(11, 16, 25, 0.95) 100%), #0e1524;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.category-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 182, 255, 0.1);
    border: 1px solid rgba(0, 182, 255, 0.25);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.archive-title {
    font-size: clamp(1.8rem, 3vw + 0.4rem, 2.4rem);
    color: #ffffff;
    margin-bottom: 0.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.archive-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 720px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.category-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.category-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-md);
}

.category-meta-item i {
    color: var(--accent-primary);
}

.archive-sibling-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.sibling-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sibling-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.sibling-pill {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sibling-pill:hover {
    color: #ffffff;
    border-color: var(--accent-primary);
    background: rgba(0, 182, 255, 0.1);
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0;
}

.section-title i {
    color: var(--accent-primary);
}

/* ============================================================
   Post Grid & Product Cards
   ============================================================ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.post-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 182, 255, 0.2);
    border-color: rgba(0, 182, 255, 0.3);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

/* Consistent 16:9 Thumbnail */
.post-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: var(--surface-inner);
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Card Badges */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-badge-trending {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.card-badge-bonus {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Card Content */
.post-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Two-Line Title Clamping */
.post-card-content .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
    min-height: 2.7em;
}

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

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

.card-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-badge-free {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.post-card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.post-card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-subtle);
}

.post-sales i {
    color: var(--accent-green);
    margin-right: 4px;
}

.post-rating i {
    color: var(--accent-warning);
    margin-right: 4px;
}

.post-date i {
    margin-right: 4px;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination-wrapper {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    margin: 0 4px;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 182, 255, 0.3);
}

.pagination-wrapper .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ============================================================
   Single Post Layout & Typography
   ============================================================ */
.single-post-main {
    padding-bottom: 4rem;
}

.single-post-article {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 3.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.single-main-content {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}

.single-featured-image-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.75rem;
    background: var(--surface-inner);
    border: 1px solid var(--border-subtle);
}

.single-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-title {
    font-size: clamp(1.8rem, 3vw + 0.3rem, 2.4rem);
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Single Meta */
.single-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.single-entry-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-badge {
    background: rgba(0, 182, 255, 0.12);
    border: 1px solid rgba(0, 182, 255, 0.25);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    margin-right: 4px;
    transition: all var(--transition-fast);
}

.category-badge:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

.rating-stars {
    color: var(--accent-warning);
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.rating-value {
    color: var(--text-heading);
    font-weight: 600;
    margin-left: 4px;
}

/* Entry Content */
.single-entry-content {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.single-entry-content p {
    margin-bottom: 1.5rem;
}

.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.single-entry-content ul,
.single-entry-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-entry-content li {
    margin-bottom: 0.5rem;
}

.single-entry-content blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 12px 20px;
    background: var(--surface-inner);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.single-entry-content pre,
.single-entry-content code {
    font-family: var(--font-mono);
    background: var(--surface-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    max-width: 100%;
    box-sizing: border-box;
}

.single-entry-content code {
    padding: 2px 6px;
    font-size: 0.9em;
    color: var(--accent-blue-light);
    word-break: break-word;
}

.single-entry-content pre {
    padding: 16px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.single-entry-content pre code {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-color);
    word-break: normal;
}

/* Responsive Embeds, Tables & Gutenberg Media */
.single-entry-content img,
.entry-content img,
.single-entry-content iframe,
.entry-content iframe,
.single-entry-content embed,
.entry-content embed,
.single-entry-content object,
.entry-content object,
.single-entry-content video,
.entry-content video,
.wp-block-embed,
.wp-block-image {
    max-width: 100% !important;
    height: auto;
    box-sizing: border-box;
}

.single-entry-content table,
.entry-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
    box-sizing: border-box;
    margin: 1.5rem 0;
}

.single-entry-content table th,
.single-entry-content table td,
.entry-content table th,
.entry-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

/* Prevent Gutenberg alignfull & alignwide blowout */
.single-entry-content .alignwide,
.entry-content .alignwide,
.single-entry-content .alignfull,
.entry-content .alignfull {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Post Tags */
.single-entry-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.post-tags-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tags-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.8rem;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.tag-pill:hover {
    color: #ffffff;
    border-color: var(--accent-primary);
    background: rgba(0, 182, 255, 0.1);
}

/* ============================================================
   Previous & Next Post Navigation Cards
   ============================================================ */
.single-post-navigation {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-card {
    background: var(--surface-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all var(--transition-base);
}

.post-nav-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.post-nav-meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-next .post-nav-meta {
    justify-content: flex-end;
}

.post-nav-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-nav-next .post-nav-body {
    justify-content: flex-end;
    text-align: right;
}

.post-nav-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-card);
}

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

.post-nav-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.post-nav-card:hover .post-nav-title {
    color: var(--accent-primary);
}

.post-nav-empty {
    visibility: hidden;
}

/* ============================================================
   Single Post Sidebar
   ============================================================ */
.single-sidebar {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
    margin-bottom: 18px;
}

.sidebar-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0;
}

.sidebar-card-title i {
    color: var(--accent-primary);
}

/* Download Section Card */
.download-section .price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.download-section .original-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: line-through;
}

.download-section .free-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--accent-green);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.sidebar-actions-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.download-button {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-blue-dark) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0, 182, 255, 0.35);
}

.download-button:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 182, 255, 0.45);
}

.preview-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.preview-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    border-color: rgba(0, 182, 255, 0.3);
}

.sidebar-guarantee-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.8rem;
    color: var(--text-color);
    line-height: 1.45;
}

.sidebar-guarantee-note i {
    color: var(--accent-green);
    margin-top: 2px;
}

/* ============================================================
   Product Specifications (Green Left-Accent Divider Requirement)
   ============================================================ */
.product-details-card .specs-header {
    /* Restore green left-accent divider */
    border-left: 3px solid var(--accent-green);
    padding-left: 12px;
    margin-bottom: 18px;
}

.specs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    gap: 12px;
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 110px;
}

.spec-label i {
    color: var(--accent-green);
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.spec-label strong {
    color: var(--text-muted);
    font-weight: 600;
}

.spec-value {
    color: #ffffff;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Widgets in sidebar */
.sidebar-widgets-area section {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widgets-area .widget-title {
    font-size: 1.15rem;
    color: #ffffff;
    border-left: 3px solid var(--accent-primary);
    padding-left: 10px;
    margin-bottom: 16px;
}

/* ============================================================
   Related Posts Section
   ============================================================ */
.related-posts-section {
    margin-top: 4rem;
}

.related-post-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================================
   Download Modal Styles (3-Step Workflow)
   ============================================================ */
.download-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 25, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.modal-inner {
    position: relative;
    z-index: 2;
    background: var(--surface-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow-blue);
    animation: modal-enter 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.modal-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 182, 255, 0.12);
    border: 1px solid rgba(0, 182, 255, 0.25);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.modal-step-badge .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.7rem;
}

.modal-step-badge-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.modal-title {
    font-size: 1.45rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.modal-title-success {
    color: var(--accent-green);
    text-align: center;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

#modalStep3 .modal-subtitle {
    text-align: center;
}

/* Step 1: Info Grid & Safety */
.modal-file-info-grid {
    background: var(--surface-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-info-item .info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info-item .info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-info-item .info-value i {
    color: var(--accent-primary);
}

.modal-info-item .info-value-verified i {
    color: var(--accent-green);
}

.modal-safety-notice {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.safety-icon-wrapper {
    color: var(--accent-green);
    font-size: 1.3rem;
    margin-top: 2px;
}

.safety-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.safety-text p {
    color: var(--text-color);
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0;
}

/* Modal Buttons */
.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all var(--transition-fast);
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-blue-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 182, 255, 0.35);
}

.modal-btn-primary:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 182, 255, 0.45);
}

.modal-btn-success {
    background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.modal-btn-success:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #ffffff;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px;
}

.modal-btn-ghost:hover {
    color: #ffffff;
}

/* Progress Track */
.modal-progress-section {
    padding: 10px 0;
}

.modal-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.modal-progress-status {
    color: #ffffff;
    font-weight: 600;
}

.modal-progress-percent {
    color: var(--accent-primary);
    font-weight: 700;
}

.modal-progress-bar-track {
    background: var(--surface-inner);
    border: 1px solid var(--border-color);
    height: 10px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 10px;
}

.modal-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-green) 100%);
    border-radius: var(--radius-pill);
    transition: width 0.1s linear;
}

.modal-progress-substatus {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Step 2: Verification Status Banner */
.verification-status-banner {
    background: rgba(0, 182, 255, 0.1);
    border: 1px solid rgba(0, 182, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
    transition: all var(--transition-base);
}

.verification-status-banner.is-waiting {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--accent-warning);
}

.pulse-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 0 0 rgba(0, 182, 255, 0.7);
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}

.is-waiting .pulse-indicator {
    background: var(--accent-warning);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

@keyframes pulse-dot {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 182, 255, 0.7); }
    70%  { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 182, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 182, 255, 0); }
}

/* Offers Task Cards (Exactly 3 Offers Maximum) */
.offers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.offer-task-card {
    background: var(--surface-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    position: relative;
    transition: all var(--transition-fast);
}

.offer-task-card:hover {
    border-color: rgba(0, 182, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.offer-task-card.is-clicked {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.04);
}

.offer-task-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0, 182, 255, 0.12);
    border: 1px solid rgba(0, 182, 255, 0.25);
    color: var(--accent-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.offer-task-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-right: 80px;
}

.offer-task-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.offer-task-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.3;
}

.offer-task-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

.offer-task-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: rgba(0, 182, 255, 0.12);
    border: 1px solid rgba(0, 182, 255, 0.25);
    border-radius: var(--radius-sm);
    color: var(--accent-blue-light);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.offer-task-action:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 182, 255, 0.35);
}

.is-clicked .offer-task-action {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--accent-warning);
}

/* Loading, Empty, Error States */
.offers-state-loading,
.offers-state-empty,
.offers-state-error {
    text-align: center;
    padding: 30px 20px;
    background: var(--surface-inner);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.offers-state-empty i,
.offers-state-error i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.offers-state-error i {
    color: var(--accent-danger);
}

.modal-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 14px auto;
}

.verification-helper-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
    justify-content: center;
}

/* Step 3: Success Screen */
.success-icon-container {
    text-align: center;
    margin-bottom: 16px;
}

.success-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 1.8rem;
    box-shadow: var(--shadow-glow-green);
    animation: scale-in 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.download-unlocked-card {
    background: var(--surface-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.download-product-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 14px;
}

.download-product-meta i {
    color: var(--accent-primary);
}

.download-countdown-row {
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.countdown-text strong {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.download-unavailable-msg {
    color: var(--accent-warning);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================================
   Static Pages & 404 Layouts
   ============================================================ */
.page-main,
.error-page-main {
    padding: 2rem 0 4rem 0;
}

.page-container {
    max-width: 960px;
}

.static-page-card,
.error-404-card,
.no-results-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.page-title {
    font-size: clamp(2rem, 3.5vw + 0.5rem, 2.8rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.error-404-card,
.no-results-card {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.error-404-icon,
.no-results-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.error-title,
.no-results-title {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.error-message,
.no-results-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-form-input-group {
    display: flex;
    align-items: center;
    background: var(--surface-inner);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 1.5rem;
}

.search-form-input-group .search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
}

.search-form-input-group .search-submit {
    background: var(--accent-primary);
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.search-form-input-group .search-submit:hover {
    background: var(--accent-blue-light);
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.back-home-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}

/* ============================================================
   Footer Styles
   ============================================================ */
.footer-main-section {
    background: #070b12;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(0, 182, 255, 0.12);
    border: 1px solid rgba(0, 182, 255, 0.25);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-size: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 360px;
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.2rem;
    border-left: 2px solid var(--accent-primary);
    padding-left: 10px;
}

.footer-links,
.footer-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent-primary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-heart {
    color: #ef4444;
}

/* ============================================================
   Keyframes & Micro-Animations
   ============================================================ */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive Media Queries (360px Mobile to Desktop)
   ============================================================ */
@media (max-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .single-post-article {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .single-sidebar {
        order: -1;
        width: 100%;
        position: relative;
        top: 0;
    }
    .single-main-content {
        order: 1;
        width: 100%;
    }
    .hero-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Navbar Bar Header & Hamburger Alignment */
    .navbar {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
    }

    .navbar-search-btn {
        display: none !important; /* Replaced by search bar inside mobile menu drawer at the top */
    }

    .navbar-toggle {
        display: inline-flex;
        margin-left: auto; /* Aligns hamburger cleanly on the far right */
        align-self: center;
        flex-shrink: 0;
    }

    /* Mobile Menu Drawer Container */
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #0d1424;
        border-bottom: 1px solid var(--border-color);
        padding: 18px 20px 40px;
        flex-direction: column;
        display: none;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
        z-index: 9999;
    }

    .navbar-menu.active {
        display: flex;
    }

    /* Search Bar at the Top of Mobile Menu */
    .mobile-menu-search {
        display: block;
        width: 100%;
        margin-bottom: 18px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .mobile-search-input-wrap {
        display: flex;
        align-items: center;
        background: var(--surface-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 4px 8px 4px 14px;
        transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-search-input-wrap:focus-within {
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px rgba(0, 182, 255, 0.15);
    }

    .mobile-search-icon {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-right: 10px;
        display: flex;
        align-items: center;
    }

    .mobile-search-input {
        flex: 1;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 0.95rem;
        padding: 8px 0;
        outline: none;
        width: 100%;
    }

    .mobile-search-input::placeholder {
        color: var(--text-muted);
    }

    .mobile-search-submit {
        background: var(--accent-primary);
        border: none;
        color: #ffffff;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-sm);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background var(--transition-fast);
    }

    .mobile-search-submit:hover {
        background: var(--accent-blue-light);
    }

    /* Mobile Nav List & Links */
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 4px;
        padding: 0;
        margin: 0;
    }

    .navbar-nav > li {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-radius: var(--radius-md);
        transition: background var(--transition-fast);
        border: 1px solid transparent;
        box-sizing: border-box;
    }

    .navbar-nav > li:hover,
    .navbar-nav > li.current-menu-item {
        background: rgba(255, 255, 255, 0.03);
    }

    /* Nav Link takes remaining width on line */
    .navbar-nav > li > a {
        flex: 1 1 auto;
        min-width: 0;
        padding: 12px 14px;
        color: var(--text-heading);
        font-size: 1rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    /* Submenu Toggle sits horizontally next to nav link */
    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 0.85rem;
        cursor: pointer;
        transition: transform var(--transition-fast), color var(--transition-fast);
        flex-shrink: 0;
        border-radius: var(--radius-sm);
        margin-right: 4px;
    }

    .submenu-toggle:hover,
    .submenu-toggle:focus-visible {
        color: var(--accent-primary);
        background: rgba(0, 182, 255, 0.08);
    }

    .submenu-toggle i {
        transition: transform 0.25s ease;
    }

    .submenu-toggle.open i {
        transform: rotate(180deg);
        color: var(--accent-primary);
    }

    /* Mobile Submenu Expansion */
    .navbar-nav .sub-menu {
        position: static;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-left: 2px solid rgba(0, 182, 255, 0.35);
        margin: 2px 0 8px 16px;
        padding: 4px 0 4px 10px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-sizing: border-box;
    }

    .navbar-nav .sub-menu.active {
        display: block;
    }

    .navbar-nav .sub-menu li {
        width: 100%;
    }

    .navbar-nav .sub-menu li a {
        padding: 10px 14px;
        font-size: 0.92rem;
        color: var(--text-color);
        display: block;
        border-radius: var(--radius-sm);
    }

    .navbar-nav .sub-menu li a:hover,
    .navbar-nav .sub-menu li.current-menu-item a {
        color: var(--accent-primary);
        background: rgba(0, 182, 255, 0.08);
    }

    /* Grid & Layout Adjustments on Mobile */
    .container {
        padding: 0 1rem;
    }

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

    .related-post-grid {
        grid-template-columns: 1fr;
    }

    .post-nav-grid {
        grid-template-columns: 1fr;
    }

    .single-post-article {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .single-sidebar {
        order: -1;
        width: 100%;
        position: relative;
        top: 0;
        gap: 20px;
    }

    .single-main-content {
        order: 1;
        width: 100%;
        padding: 24px 18px;
    }

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

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

    .modal-inner {
        padding: 28px 20px;
    }

    .modal-file-info-grid {
        grid-template-columns: 1fr;
    }

    .offer-task-main {
        padding-right: 0;
    }

    .offer-task-badge {
        position: static;
        margin-bottom: 8px;
        display: inline-block;
    }
}

/* ============================================================
   WordPress Admin Bar Sticky Header Integration
   ============================================================ */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
    .admin-bar .navbar-menu {
        top: 116px;
        max-height: calc(100vh - 116px);
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
    .admin-bar .navbar-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2.5rem 1.25rem;
    }

    .hero-search-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .hero-search-button {
        width: 100%;
    }

    .hero-search-input {
        width: 100%;
        text-align: center;
    }

    .single-entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
