/*
Theme Name: WPForge Rebuild
Theme URI: 
Author: WPForge
Author URI: 
Description: Completely new rebuild for WPForge - Premium Agency Theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpforge-rebuild
*/


:root {
    /* Color Palette — True Black + Vibrant Violet */
    --color-bg-base: #000000;
    --color-bg-surface: #111111;
    --color-bg-elevated: #1a1a1a;
    --color-bg-card: #0d0d0d;
    --color-bg-light-section: #f5f3ff;
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    
    --color-accent: #8b5cf6;
    --color-accent-hover: #7c3aed;
    --color-accent-glow: rgba(139, 92, 246, 0.4);
    --color-accent-subtle: rgba(139, 92, 246, 0.1);
    
    --color-success: #34d399;
    --color-warning: #fbbf24;
    --color-danger: #f87171;

    /* Checkout / DL page compatibility */
    --color-surface: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-accent-muted: rgba(139, 92, 246, 0.15);
    --radius-lg: var(--border-radius-lg);
    --radius-md: var(--border-radius-md);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 7rem;

    /* Borders & Shadows — Majjane-inspired large radii */
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;
    --border-radius-pill: 100px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--color-accent-glow);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.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;
}

.screen-reader-text:focus {
    background-color: var(--color-bg-surface);
    border-radius: 4px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--color-accent);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 12px 20px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

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

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

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER — Sticky Glassmorphism
   ======================================== */
.site-header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    border-bottom: 1px solid transparent;
    padding: 0.8rem 0;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.6rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.site-branding a {
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Unified header icon button ── */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.header-icon-btn:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
}

.header-icon-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.header-icon-btn svg,
.header-icon-btn .lucide {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Lucide icon defaults */
.lucide {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Language switcher overrides */
.wpforge-ls__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .wpforge-ls__trigger:hover {
        background: var(--color-bg-elevated);
        color: var(--color-text-primary);
    }
}

.wpforge-ls__trigger[aria-expanded="true"] {
    background: var(--color-bg-elevated);
    color: var(--color-accent);
}

.wpforge-ls__globe {
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .wpforge-ls__trigger {
        width: 32px;
        height: 32px;
    }

    .wpforge-ls__globe {
        width: 18px;
        height: 18px;
    }
}

#page {
    position: relative;
}

.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    z-index: 201;
    pointer-events: none;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    white-space: nowrap;
    pointer-events: auto;
}

.main-navigation li {
    display: inline-block;
    margin: 0 var(--spacing-xs);
}

.main-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.3em 0;
    white-space: nowrap;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.main-navigation a svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.main-navigation a:hover svg {
    opacity: 1;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.main-navigation a:hover {
    color: var(--color-text-primary);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Dropdown arrow */
.main-navigation .sub-menu-arrow {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform var(--transition-fast);
}

.main-navigation .menu-item-has-children:hover > a .sub-menu-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Sub-menu dropdown */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    padding: 0.5rem 0;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 300;
}

[data-theme="light"] .main-navigation .sub-menu {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.main-navigation .sub-menu li {
    display: block;
    margin: 0;
}

.main-navigation .sub-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.main-navigation .sub-menu a svg {
    width: 14px;
    height: 14px;
    opacity: 0.4;
}

.main-navigation .sub-menu a::after {
    display: none;
}

.main-navigation .sub-menu a:hover {
    color: var(--color-accent);
    background: var(--color-bg-surface-hover);
}

[data-theme="light"] .main-navigation .sub-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ========================================
   BUTTONS — Pill shaped like Majjane
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-xs);
}

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

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.05rem;
}

/* Eyebrow badge (like Majjane's "MAJJANE AGENCY" tags) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius-pill);
    background: var(--color-accent-subtle);
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ========================================
   CARDS — Large rounded containers like Majjane
   ======================================== */
.card {
    background-color: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

/* Footer CTA Strip */
.footer-cta {
    background: var(--color-accent);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.footer-cta-text h3 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: var(--spacing-xs);
}

.footer-cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 0;
}

.footer-cta-actions .btn-primary {
    background: #fff;
    color: var(--color-accent);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.footer-cta-actions .btn-primary:hover {
    background: #f0eef5;
    color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-surface);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-widget h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.6rem;
}

.footer-widget ul a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-widget ul a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.footer-logo-link:hover .footer-logo-text {
    color: var(--color-accent);
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 0.6rem;
    margin-top: var(--spacing-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    color: #fff;
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: var(--spacing-lg);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-tagline {
    opacity: 0.7;
}

/* ========================================
   THEME TOGGLE (inside nav menu)
   ======================================== */
.theme-toggle-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
    font-family: inherit;
}

.theme-toggle-nav svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.theme-toggle-nav:hover {
    color: var(--color-text-primary);
}

.theme-toggle-nav:hover svg {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .mobile-menu-toggle:hover {
        background: var(--color-bg-elevated);
        color: var(--color-text-primary);
    }
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.mobile-menu-toggle svg,
.mobile-menu-toggle .lucide {
    width: 20px;
    height: 20px;
}

/* ========================================
   ACCOUNT DRAWER — matches hamburger drawer
   ======================================== */
.account-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.account-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

[data-theme="light"] .account-drawer-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.account-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg-base);
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.account-drawer.is-open {
    transform: translateX(0);
}

@media (min-width: 1025px) {
    .account-drawer {
        width: 40%;
        max-width: 560px;
    }
}

[data-theme="light"] .account-drawer {
    background: #ffffff;
}

.account-drawer__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 6rem 2rem 2rem;
}

/* Navigation (logged in) — matches hamburger nav link styling */
.account-drawer__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-drawer__nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.account-drawer__nav-link:hover {
    color: var(--color-accent);
}

.account-drawer__nav-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    flex-shrink: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.account-drawer__nav-link:hover svg {
    transform: scale(1.1);
    opacity: 1;
}

/* Footer buttons (logged in) */
.account-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.account-drawer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.account-drawer__btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.account-drawer__btn--primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.account-drawer__btn--outline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.account-drawer__btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    transform: translateY(-1px);
}

[data-theme="light"] .account-drawer__btn--outline {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Forms (logged out) */
.account-drawer__forms {
    flex: 1;
}

.account-drawer__tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.25rem;
    gap: 0;
}

[data-theme="light"] .account-drawer__tabs {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.account-drawer__tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.account-drawer__tab:hover {
    color: var(--color-text-secondary);
}

.account-drawer__tab.is-active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.account-drawer__tab svg {
    flex-shrink: 0;
}

.account-drawer__panel {
    display: none;
}

.account-drawer__panel.is-active {
    display: block;
}

.account-drawer__forms .ac-form {
    gap: 0.85rem;
}

.account-drawer__forms .ac-form__input {
    font-size: 0.88rem;
}

.account-drawer__forms .ac-divider {
    margin: 1rem 0;
}

.account-drawer__forms .ac-form__terms {
    font-size: 0.72rem;
}

.account-drawer__forms .ac-form__submit {
    margin-top: 0.25rem;
}

.account-drawer__forms .ac-social {
    gap: 0.5rem;
}

.account-drawer__forms .ac-social-btn {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    justify-content: center;
}

.account-drawer__forms .ac-social-btn span {
    flex: 1;
    text-align: center;
}

.account-drawer__forms .ac-social-btn.ac-social-btn--google {
    padding: 0.65rem 1rem;
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .account-drawer__forms .ac-social-btn.ac-social-btn--google {
    background: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.account-drawer__forms .ac-form__row {
    font-size: 0.8rem;
}

/* ========================================
   LANGUAGE DRAWER — mirrors account drawer
   ======================================== */
.lang-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lang-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

[data-theme="light"] .lang-drawer-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.lang-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg-base);
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.lang-drawer.is-open {
    transform: translateX(0);
}

@media (min-width: 1025px) {
    .lang-drawer {
        width: 40%;
        max-width: 560px;
    }
}

[data-theme="light"] .lang-drawer {
    background: #ffffff;
}

.lang-drawer__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 6rem 2rem 2rem;
}

.lang-drawer__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 1.5rem;
}

.lang-drawer__options {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lang-drawer__option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.15s ease;
}

.lang-drawer__option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
}

[data-theme="light"] .lang-drawer__option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.lang-drawer__option--active {
    font-weight: 700;
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.lang-drawer__flag {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.lang-drawer__name {
    flex: 1;
}

.lang-drawer__check {
    color: var(--color-accent);
    flex-shrink: 0;
}

.lang-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.lang-drawer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.lang-drawer__btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.lang-drawer__btn--primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.lang-drawer__btn--outline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.lang-drawer__btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    transform: translateY(-1px);
}

[data-theme="light"] .lang-drawer__btn--outline {
    border-color: rgba(0, 0, 0, 0.1);
}

/* ========================================
   HEADER ACCOUNT LINK
   ======================================== */
.header-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: 40px;
    padding: 0 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.header-account-link[aria-expanded="true"] {
    background: var(--color-bg-elevated);
    color: var(--color-accent);
}

@media (hover: hover) {
    .header-account-link:hover {
        background: var(--color-bg-elevated);
        color: var(--color-text-primary);
    }
}

.header-account-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}

.header-account-link svg,
.header-account-link .lucide {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .header-account-link {
        width: 40px;
        padding: 0;
    }

    .header-account-link .header-account-label {
        display: none;
    }
}

/* ========================================
   LIGHT MODE
   ======================================== */
[data-theme="light"] {
    --color-bg-base: #ffffff;
    --color-bg-surface: #f8f7fc;
    --color-bg-elevated: #f0eef5;
    --color-bg-card: #ffffff;
    
    --color-text-primary: #0a0a0a;
    --color-text-secondary: #52525b;
    --color-text-muted: #71717a;
    
    --color-accent: #7c3aed;
    --color-accent-hover: #6d28d9;
    --color-accent-glow: rgba(124, 58, 237, 0.25);
    --color-accent-subtle: rgba(124, 58, 237, 0.06);

    --color-surface: #ffffff;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-accent-muted: rgba(139, 92, 246, 0.1);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .site-header {
    background-color: #ffffff;
}

[data-theme="light"] .site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-primary {
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    color: #ffffff;
}

[data-theme="light"] .footer-cta-actions .btn-primary {
    color: var(--color-accent);
}

[data-theme="light"] .footer-cta-actions .btn-primary:hover {
    color: var(--color-accent-hover);
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--color-text-primary);
}

[data-theme="light"] .btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

[data-theme="light"] .card {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .social-icon {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .main-navigation a {
    color: var(--color-text-secondary);
}

[data-theme="light"] .main-navigation a:hover {
    color: var(--color-text-primary);
}


/* ========================================
   THEMES PAGE — Marketplace Grid
   ======================================== */
.th-hero {
    padding: calc(var(--spacing-lg) + 70px) 0 var(--spacing-md);
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-surface) 100%);
}

.th-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.th-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.th-hero__title span {
    background: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.th-hero__subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.th-toolbar {
    padding: var(--spacing-sm) 0 var(--spacing-xs);
    position: relative;
}

.th-toolbar__search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-pill);
    transition: border-color 0.2s ease;
}

.th-toolbar__search:focus-within {
    border-color: var(--color-accent);
}

.th-toolbar__search > svg {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 1;
    width: 15px;
    height: 15px;
}

.th-toolbar__search-input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 2.8rem 0.6rem 2.5rem;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}

.th-toolbar__search-input::placeholder {
    color: var(--color-text-muted);
}

/* Filter toggle button */
.th-toolbar__filter-btn {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.th-toolbar__filter-btn:hover,
.th-toolbar__filter-btn[aria-expanded="true"] {
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

/* Filter dropdown */
.th-toolbar__dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: calc(100% - var(--spacing-md) * 2);
    max-width: 420px;
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 50;
    pointer-events: none;
    overflow: hidden;
}

.th-toolbar__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.th-toolbar__dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.th-toolbar__dropdown-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.th-toolbar__dropdown-body {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.th-toolbar__filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.th-toolbar__filter-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

.th-toolbar__filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Larger pills inside dropdown */
.th-filter--lg {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    border-radius: var(--border-radius-sm);
    background: var(--color-bg-base);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.th-filter--lg:hover {
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--color-text-primary);
}

.th-filter--lg.is-active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.th-toolbar__dropdown-foot {
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.th-toolbar__dropdown-reset {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    transition: color 0.2s ease;
}

.th-toolbar__dropdown-reset:hover {
    color: var(--color-accent);
}

/* Light mode */
[data-theme="light"] .th-toolbar__dropdown {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .th-toolbar__dropdown-head,
[data-theme="light"] .th-toolbar__dropdown-foot {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .th-filter--lg {
    background: var(--color-bg-light-section);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-secondary);
}

[data-theme="light"] .th-filter--lg:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .th-filter--lg.is-active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.th-grid {
    padding: var(--spacing-sm) 0 var(--spacing-lg);
}

.th-grid__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.th-grid__count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.th-grid__count span {
    color: var(--color-text-primary);
    font-weight: 600;
}

.th-grid__filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.th-filter {
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.th-filter:hover {
    border-color: var(--color-accent);
    color: var(--color-text-primary);
}

.th-filter.is-active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

/* Light-mode: toolbar search + dropdown */
[data-theme="light"] .th-toolbar__search {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .th-toolbar__search:focus-within {
    border-color: var(--color-accent);
}

.th-grid__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    position: relative;
}

/* Loading spinner overlay */
.th-grid__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: var(--color-accent);
    pointer-events: none;
}

.th-grid__loading svg {
    width: 36px;
    height: 36px;
}

.th-card {
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.th-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 4px 24px -6px rgba(139, 92, 246, 0.15), 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.th-card.is-hidden {
    display: none;
}

.th-card__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-base);
}

.th-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.th-card:hover .th-card__img {
    transform: scale(1.05);
}

.th-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-card__badge {
    position: relative;
    top: auto;
    left: auto;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0.12rem 0.4rem;
    border-radius: var(--border-radius-pill);
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-accent);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.th-card__free-badge {
    position: relative;
    top: auto;
    right: auto;
    font-size: 0.56rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: var(--border-radius-pill);
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.th-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.th-card__body {
    padding: 0.45rem;
}

.th-card__title {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(0.75rem * 1.35 * 2);
}

.th-card__title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.th-card__title a:hover {
    color: var(--color-accent);
}

.th-card__actions {
    display: flex;
    gap: 0.3rem;
}

.th-card__actions .th-card__demo,
.th-card__actions .th-card__buy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.32rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.th-card__actions .th-card__demo {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.th-card__actions .th-card__demo:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.th-card__actions .th-card__buy {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.th-card__actions .th-card__buy:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.th-card__price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-accent);
}

.th-card__desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
}

.th-card__tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.th-card__tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--border-radius-pill);
    background: var(--color-accent-subtle);
    color: var(--color-accent);
}

/* CTA card — "View All Themes" */
.th-card--cta {
    border: 1px dashed rgba(139, 92, 246, 0.25);
    background: var(--color-accent-subtle);
}

.th-card--cta:hover {
    border-color: var(--color-accent);
}

.th-card__placeholder--cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
    color: var(--color-accent);
}

.th-card__body--cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-sm);
}

.th-card__cta-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.2rem;
}

.th-card__cta-sub {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.th-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-muted);
    font-size: 1rem;
}

.th-grid__empty--filter {
    display: none;
}

.th-grid__empty--filter.is-visible {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
}

.th-grid__empty-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    margin: 0 auto var(--spacing-sm);
}

.th-grid__empty-icon svg {
    width: 32px;
    height: 32px;
}

.th-grid__empty-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.3rem;
}

.th-grid__empty-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.th-cta {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.th-cta__inner {
    max-width: 520px;
    margin: 0 auto;
}

.th-cta__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: var(--spacing-xs);
}

.th-cta__desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   FEATURES PAGE
   ======================================== */
.ft-hero {
    padding: calc(var(--spacing-xl) + 90px) 0 var(--spacing-lg);
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-surface) 100%);
}

.ft-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.ft-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.ft-hero__title span {
    background: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ft-hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.ft-grid {
    padding: 0 0 var(--spacing-xl);
}

.ft-grid__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.ft-card {
    padding: var(--spacing-md);
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.ft-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.ft-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: var(--border-radius-md);
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.ft-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.ft-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   PRICING PAGE
   ======================================== */
.pr-hero {
    padding: calc(var(--spacing-xl) + 90px) 0 var(--spacing-lg);
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-surface) 100%);
}

.pr-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.pr-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.pr-hero__title span {
    background: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pr-hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.pr-cards {
    padding: 0 0 var(--spacing-lg);
}

.pr-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    align-items: start;
}

.pr-card {
    position: relative;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
}

.pr-card--featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), 0 20px 50px -10px rgba(139, 92, 246, 0.25);
    transform: scale(1.03);
}

.pr-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pr-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), #f472b6);
    padding: 0.3rem 1rem;
    border-radius: var(--border-radius-pill);
    white-space: nowrap;
}

.pr-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.pr-card__tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.pr-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    margin-bottom: 0.2rem;
}

.pr-card__currency {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    align-self: flex-start;
    margin-top: 0.4rem;
}

.pr-card__amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.pr-card__period {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.pr-card__billing {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.pr-card__cta {
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding: 0.85rem 1.5rem;
}

.pr-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pr-card__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

.pr-card__features li svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.pr-compare {
    padding: 0 0 var(--spacing-xl);
}

.pr-compare__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.pr-compare__title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: var(--spacing-xs);
}

.pr-compare__desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.pr-compare__table {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
}

.pr-compare__table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.pr-compare__table th,
.pr-compare__table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pr-compare__table th {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    background: var(--color-bg-base);
}

.pr-compare__table th:first-child,
.pr-compare__table td:first-child {
    font-weight: 600;
    color: var(--color-text-primary);
}

.pr-compare__table .col-featured {
    background: rgba(139, 92, 246, 0.03);
}

.pr-check {
    color: var(--color-accent);
    font-weight: 700;
}

.pr-cross {
    color: var(--color-text-muted);
    opacity: 0.4;
}

/* ========================================
   SUPPORT PAGE
   ======================================== */
.sp-hero {
    padding: calc(var(--spacing-xl) + 90px) 0 var(--spacing-lg);
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-surface) 100%);
}

.sp-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.sp-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.sp-hero__title span {
    background: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.sp-faq {
    padding: 0 0 var(--spacing-lg);
}

.sp-faq__inner {
    max-width: 720px;
    margin: 0 auto;
}

.sp-faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.sp-faq__item {
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-normal), background var(--transition-normal);
}

.sp-faq__item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.sp-faq__item.is-active {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.02);
}

.sp-faq__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.sp-faq__trigger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
    border-radius: var(--border-radius-lg);
}

.sp-faq__trigger-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary);
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.sp-faq__item.is-active .sp-faq__trigger-text {
    color: var(--color-accent);
}

.sp-faq__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sp-faq__chevron svg {
    width: 18px;
    height: 18px;
}

.sp-faq__item.is-active .sp-faq__chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.sp-faq__content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sp-faq__body {
    padding: 0 1.25rem 0.85rem 1.25rem;
}

.sp-faq__body p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

.sp-cta {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.sp-cta__inner {
    max-width: 480px;
    margin: 0 auto;
}

.sp-cta__title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
}

.sp-cta__desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

/* ========================================
   THEME DETAIL PAGE — Single Product View
   ======================================== */

/* Breadcrumb */
.td-breadcrumb {
    grid-area: breadcrumb;
    padding: 20px 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent 80%) 1;
    animation: td-fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.td-breadcrumb .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.td-breadcrumb__trail {
    display: flex;
    align-items: center;
}

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

.td-breadcrumb a:hover {
    color: var(--color-accent);
}

.td-breadcrumb svg {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.4rem;
}

.td-breadcrumb span {
    color: var(--color-text-secondary);
}

.td-breadcrumb__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #eab308;
}

.td-breadcrumb__rating span {
    color: var(--color-text-secondary);
}

/* Hero */
.td-hero {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.td-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.td-hero__visual {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.td-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.td-hero__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.td-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.td-hero__badge {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-pill);
    background: var(--color-accent-subtle);
}

.td-hero__badge-wrap {
    margin-bottom: 1rem;
}

.td-hero__badge--membership {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success, #059669);
    border: 1px solid rgba(5, 150, 105, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: var(--border-radius-pill);
    background: rgba(5, 150, 105, 0.08);
}

.td-hero__badge--free {
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.td-hero__badge--premium {
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.td-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f59e0b;
}

.td-hero__rating span {
    color: var(--color-text-secondary);
}

.td-hero__sales {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-left: auto;
}

.td-hero__sales svg {
    color: var(--color-accent);
}

.td-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
    line-height: 1.1;
}

.td-hero__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.td-hero__price-amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    letter-spacing: -1px;
    line-height: 1;
}

.td-hero__price-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.td-hero__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.td-hero__desc p {
    margin: 0;
}

.td-hero__actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    padding-top: var(--spacing-xs);
}

/* Subscription Upsell */
.td-hero__upsell {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.td-hero__upsell-divider {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.td-hero__upsell-divider::before,
.td-hero__upsell-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.td-hero__upsell-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.td-hero__upsell-text strong {
    color: var(--color-accent);
    font-weight: 700;
}

.td-hero__upsell-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Stats Highlights */
.td-stats {
    padding: 0 0 var(--spacing-lg);
}

.td-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.td-stats__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: var(--spacing-md) var(--spacing-sm);
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.td-stats__value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.td-stats__value--star {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.td-stats__value--star svg {
    color: #f59e0b;
}

.td-stats__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.td-stats__card--sold {
    justify-self: end;
    width: auto;
    padding-left: var(--spacing-lg);
    align-items: flex-end;
    text-align: right;
}

/* Overview */
.td-overview {
    padding: 0 0 var(--spacing-xl);
}

.td-overview__inner {
    max-width: 780px;
    margin: 0 auto;
}

.td-overview__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: var(--spacing-sm);
}

.td-overview__content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.td-overview__content p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0.15rem;
}

.td-overview__content--truncated {
    max-height: 16em;
    overflow: hidden;
    position: relative;
}

.td-overview__content--truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(transparent, var(--color-bg-base));
    pointer-events: none;
}

.td-overview__content--expanded {
    max-height: none;
    overflow: visible;
}

.td-overview__content--expanded::after {
    display: none;
}

.td-overview__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: var(--spacing-sm) auto 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    outline: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.td-overview__toggle:hover {
    color: var(--color-accent-hover);
    background: transparent;
    transform: none;
}

.td-overview__toggle svg {
    display: block;
    transition: transform var(--transition-fast);
}

.td-overview__toggle.is-open svg {
    transform: rotate(180deg);
}

/* Features */
/* Tabs (Features / Tech Specs) */
.td-tabs {
    padding: var(--spacing-lg) 0;
}

.td-tabs__nav {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--spacing-lg);
}

.td-tabs__btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    margin-bottom: -1px;
}

.td-tabs__btn:hover {
    color: var(--color-text-primary);
}

.td-tabs__btn--active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.td-tabs__panel {
    display: none;
}

.td-tabs__panel--active {
    display: block;
}

/* Sidebar tab overrides */
.td-sidebar .td-tabs {
    padding: var(--spacing-md) 0;
}

.td-sidebar .td-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: var(--spacing-sm);
}

.td-sidebar .td-tabs__btn {
    flex: 1;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-bottom: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    margin-bottom: 0;
    text-align: center;
}

.td-sidebar .td-tabs__btn:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.td-sidebar .td-tabs__btn--active {
    color: #fff;
    background: var(--color-accent);
    border-bottom: none;
}

.td-sidebar .td-tabs__btn--active:hover {
    color: #fff;
    background: var(--color-accent);
}

.td-sidebar .td-features__grid {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
    gap: 2px;
}

.td-sidebar .td-features__item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.55rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.td-sidebar .td-features__item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(139, 92, 246, 0.1);
    transform: none;
    box-shadow: none;
}

.td-sidebar .td-features__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    margin-top: 1px;
}

.td-sidebar .td-features__icon svg {
    width: 12px;
    height: 12px;
}

.td-sidebar .td-features__text {
    flex: 1;
    padding-top: 2px;
}

.td-sidebar .td-specs__table {
    max-width: none;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.td-sidebar .td-specs__row {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 0.35rem;
}

.td-sidebar .td-specs__row:last-child {
    border-bottom: none;
}

.td-sidebar .td-specs__row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.td-sidebar .td-specs__label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.76rem;
    flex-shrink: 0;
}

.td-sidebar .td-specs__value {
    color: var(--color-text-secondary);
    font-size: 0.76rem;
    text-align: right;
}

/* Compact mobile: include sidebar overrides in flow */
@media (max-width: 768px) {
    .td-sidebar .td-tabs {
        padding: var(--spacing-sm) 0;
    }

    .td-sidebar .td-tabs__nav {
        border-radius: 7px;
        padding: 2px;
        margin-bottom: 0.5rem;
    }

    .td-sidebar .td-tabs__btn {
        padding: 0.3rem 0.35rem;
        font-size: 0.65rem;
        border-radius: 5px;
    }

    .td-sidebar .td-features__grid {
        gap: 1px;
    }

    .td-sidebar .td-features__item {
        padding: 0.3rem 0.35rem;
        font-size: 0.72rem;
        gap: 0.4rem;
        border-radius: 6px;
    }

    .td-sidebar .td-features__icon {
        width: 18px;
        height: 18px;
        border-radius: 4px;
    }

    .td-sidebar .td-features__icon svg {
        width: 9px;
        height: 9px;
    }

    .td-sidebar .td-features__text {
        padding-top: 1px;
    }

    .td-sidebar .td-specs__table {
        border-radius: 8px;
    }

    .td-sidebar .td-specs__row {
        padding: 0.3rem 0.45rem;
    }

    .td-sidebar .td-specs__label,
    .td-sidebar .td-specs__value {
        font-size: 0.68rem;
    }
}

.td-features {
    padding: 0;
}

.td-features__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.td-features__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: var(--spacing-xs);
}

.td-features__desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.td-features__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 780px;
    margin: 0 auto;
}

.td-features__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-pill);
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.td-features__item:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.05);
}

.td-features__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
}

.td-features__icon svg {
    width: 12px;
    height: 12px;
}

.td-features__text {
    padding-top: 0;
}

/* Tech Specs */
.td-specs {
    padding: var(--spacing-lg) 0;
}

.td-specs__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.td-specs__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: var(--spacing-xs);
}

.td-specs__table {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.td-specs__row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: var(--spacing-sm);
}

.td-specs__row:last-child {
    border-bottom: none;
}

.td-specs__label {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.td-specs__value {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-align: right;
}

/* Pricing Upsell */
.td-pricing-upsell {
    padding: 0 0 var(--spacing-xl);
}

.td-pricing-upsell__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-accent-subtle), transparent 60%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    overflow: hidden;
    position: relative;
}

.td-pricing-upsell__content {
    flex: 1;
}

.td-pricing-upsell__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.td-pricing-upsell__title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: var(--spacing-xs);
}

.td-pricing-upsell__desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    max-width: 480px;
}

.td-pricing-upsell__actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.td-pricing-upsell__visual {
    flex-shrink: 0;
    opacity: 0.15;
}

/* Related Themes */
.td-related {
    padding: 0 0 var(--spacing-md);
}

.td-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.td-related__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.td-related__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.td-related__title::before {
    content: '';
    width: 4px;
    height: 1.1em;
    background: var(--color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .td-related__grid {
        grid-auto-flow: column;
        grid-auto-columns: 62vw;
        grid-template-columns: none;
        gap: var(--spacing-sm);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .td-related__grid .th-card {
        scroll-snap-align: start;
    }
}

    .td-cta {
        padding: var(--spacing-md) 0;
    }

    .th-cta__title {
        font-size: 1.3rem;
    }

    .th-cta__desc {
        font-size: 0.9rem;
    }

@media (max-width: 480px) {
    .th-grid__items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }

    .th-card__title {
        font-size: 0.7rem;
    }

    .th-card__badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.35rem;
    }

    .th-card__free-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.35rem;
    }

    .th-card__actions .th-card__demo,
    .th-card__actions .th-card__buy {
        font-size: 0.64rem;
        padding: 0.3rem 0.2rem;
    }

    .th-card__desc {
        font-size: 0.78rem;
    }

    .th-hero__title {
        font-size: clamp(1.5rem, 7vw, 1.8rem);
    }

    .th-hero__subtitle {
        font-size: 0.88rem;
    }

    .th-card__actions .th-card__demo,
    .th-card__actions .th-card__buy {
        font-size: 0.72rem;
        padding: 0.4rem 0.35rem;
    }
}

/* Hide mobile menu drawer & overlay by default on desktop viewports */
.fp-fade-menu,
.mobile-menu-overlay {
    display: none;
}

/* ========================================
   CORE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide old desktop nav on mobile — replaced by fade-menu */
    .main-navigation {
        display: none;
    }

    /* ========================================
       FADE MENU — view-based sliding drawer
       ======================================== */

    /* Container */
    .fp-fade-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg-base);
        z-index: 100;
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.3s ease,
                    visibility 0.3s ease,
                    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .fp-fade-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    [data-theme="light"] .fp-fade-menu {
        background: #ffffff;
    }

    .fp-fade-menu__inner {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    /* Views */
    .fp-fade-view {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        overflow-y: auto;
        padding: 1rem 1.5rem 3rem;
        background: var(--color-bg-base);
        opacity: 0;
        pointer-events: none;
        transform: translateX(40px);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.25s ease;
    }

    [data-theme="light"] .fp-fade-view {
        background: #ffffff;
    }

    .fp-fade-view--active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        z-index: 2;
    }

    .fp-fade-view--exit-left {
        transform: translateX(-40px);
        opacity: 0;
        z-index: 1;
    }

    /* List */
    .fp-fade-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .fp-fade-list li {
        margin-bottom: 4px;
    }

    /* Link */
    .fp-fade-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 0.75rem;
        border-radius: 10px;
        text-decoration: none;
        color: var(--color-text-primary);
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 600;
        transition: background 0.2s ease;
    }

    .fp-fade-link:hover,
    .fp-fade-link:active {
        background: var(--color-bg-surface-hover);
    }

    [data-theme="light"] .fp-fade-link:hover,
    [data-theme="light"] .fp-fade-link:active {
        background: rgba(0, 0, 0, 0.04);
    }

    .fp-fade-link__inner {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .fp-fade-link__icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        opacity: 0.55;
        color: var(--color-text-secondary);
    }

    /* Split Row (link + arrow toggle) */
    .fp-fade-list__split {
        display: flex;
        align-items: stretch;
    }

    .fp-fade-link--split {
        flex: 1;
        border-radius: 10px 0 0 10px;
    }

    .fp-fade-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        background: transparent;
        border: none;
        border-left: 1px solid var(--color-border);
        border-radius: 0 10px 10px 0;
        cursor: pointer;
        color: var(--color-text-secondary);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .fp-fade-toggle:hover {
        background: var(--color-bg-surface-hover);
        color: var(--color-accent);
    }

    [data-theme="light"] .fp-fade-toggle:hover {
        background: rgba(0, 0, 0, 0.04);
    }

    .fp-fade-toggle__arrow {
        transition: transform 0.25s ease;
    }

    .fp-fade-toggle:hover .fp-fade-toggle__arrow {
        transform: translateX(2px);
    }

    /* Back Row */
    .fp-fade-back {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-border);
    }

    .fp-fade-back__btn {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        background: none;
        border: none;
        padding: 0.4rem 0;
        font-family: var(--font-heading);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--color-text-secondary);
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .fp-fade-back__btn:hover {
        color: var(--color-accent);
    }

    .fp-fade-back__icon {
        flex-shrink: 0;
    }

    .fp-fade-back__title {
        font-family: var(--font-heading);
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--color-text-primary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-left: auto;
    }

    /* Overlay */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        cursor: pointer;
    }

    [data-theme="light"] .mobile-menu-overlay {
        background: rgba(0, 0, 0, 0.4);
    }

    .mobile-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .footer-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
}

/* ========================================
    THEME DETAIL — NEW SIDEBAR LAYOUT (v2)
    ======================================== */

.page-theme-detail .container {
    padding: 0 3rem;
}

.td-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas:
        "breadcrumb ."
        "title ."
        "meta sidebar"
        "preview sidebar"
        "content sidebar";
    gap: 0 var(--spacing-md);
    max-width: 100%;
}

.td-main__header { display: contents; }
.td-main__top { grid-area: title; min-width: 0; animation: td-fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.td-main__meta { grid-area: meta; min-width: 0; animation: td-fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
.td-preview { grid-area: preview; min-width: 0; max-width: 100%; animation: td-fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.td-main-body { grid-area: content; min-width: 0; margin-top: var(--spacing-md); animation: td-fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }

.td-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: sticky;
    top: 70px;
    align-self: start;
    min-width: 0;
    animation: td-fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.td-sidebar .co-upsell {
    margin-top: -0.75rem;
}

.td-sidebar__excerpt {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.td-sidebar .co-upsell__heading {
    color: var(--color-text-primary) !important;
    flex-shrink: 0 !important;
    white-space: normal !important;
}

/* Main Header */
.td-main__header {
    margin: 0;
    padding: 0;
}

.td-main__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

.td-price-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem 0.85rem 1.1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    background: #6366f1;
    border-radius: 1px;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    transition: background var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.td-price-btn:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.td-price-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.td-price-btn__amount {
    letter-spacing: -0.5px;
}

.td-main__top {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.td-main__title {
    flex: 1;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin: 0;
    line-height: 1.1;
    min-width: 0;
    background: linear-gradient(90deg, #fff 0%, #fff 40%, rgba(139, 92, 246, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: td-titleShimmer 6s ease-in-out infinite;
}

.td-main__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #eab308;
}

.td-main__rating span {
    color: var(--color-text-secondary);
}

.td-main__sales {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.td-main__sales svg {
    color: var(--color-accent);
}

.td-main__stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Preview */
.td-preview {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.12);
    background: var(--color-bg-surface);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(139, 92, 246, 0);
}

.td-preview__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: var(--border-radius-pill);
    pointer-events: none;
}

.td-preview__badge--free {
    color: #fff;
    background: rgba(16, 185, 129, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.td-preview__badge--premium {
    color: #fff;
    background: rgba(245, 158, 11, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.td-preview:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(139, 92, 246, 0.1);
    transform: scale(1.008);
}

.td-preview__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.td-preview:hover .td-preview__img {
    transform: scale(1.02);
}

.td-preview__placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    aspect-ratio: 16 / 9;
}

.td-preview__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.td-preview:hover .td-preview__overlay {
    opacity: 1;
}

.td-preview__demo {
    padding: 0.7rem 1.75rem;
    font-size: 0.95rem;
}

/* Social Share */
.td-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.td-share__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.td-share__icons {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.td-share__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-size: 0;
}

.td-share__link:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Branded social share hover colors */
.td-share__link--copy:hover {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.td-share__link--facebook:hover {
    border-color: #1877f2;
    background: #1877f2;
}

.td-share__link--x:hover {
    border-color: #000;
    background: #14171a;
}

.td-share__link--whatsapp:hover {
    border-color: #25d366;
    background: #25d366;
}

.td-share__link--linkedin:hover {
    border-color: #0a66c2;
    background: #0a66c2;
}

.td-share__link svg {
    width: 14px;
    height: 14px;
}

.td-share__rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-left: auto;
}

.td-share__rating svg {
    width: 14px;
    height: 14px;
}

/* Info Box */
.td-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
}

.td-info-box__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: var(--spacing-sm) var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.td-info-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-pill);
    background: var(--color-accent-subtle);
    color: var(--color-accent);
}

.td-info-box__card--created .td-info-box__icon {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.td-info-box__card--updated .td-info-box__icon {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.td-info-box__label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.td-info-box__value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Membership Plans */
.td-plans-section {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm);
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.td-plans-section__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.td-plans {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.td-plan__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.td-plan__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem var(--spacing-sm);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
}

.td-plan__label:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.td-plan__input:checked + .td-plan__label {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.td-plan--featured .td-plan__label {
    border-color: rgba(139, 92, 246, 0.3);
}

.td-plan--featured .td-plan__input:checked + .td-plan__label {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.td-plan__info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.td-plan__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.td-plan__badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: var(--color-accent);
    color: #fff;
    line-height: 1.2;
}

.td-plan__tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    cursor: help;
    position: relative;
}

.td-plan__tooltip:hover,
.td-plan__tooltip:focus {
    color: var(--color-accent);
}

.td-plan__tooltip::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 10;
}

.td-plan__tooltip:hover::after,
.td-plan__tooltip:focus::after {
    opacity: 1;
    visibility: visible;
}

.td-plan__price {
    display: flex;
    align-items: baseline;
    gap: 0;
    flex-shrink: 0;
}

.td-plan__currency {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    align-self: flex-start;
    margin-top: 0.1rem;
}

.td-plan__amount {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.td-plan__period {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-left: 0.1rem;
}

/* Membership Perks */
.td-perks-section {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm);
    background: var(--color-bg-surface);
}

.td-perks-section__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xs);
}

.td-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.td-perks__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.td-perks__icon {
    flex-shrink: 0;
    color: var(--color-accent);
}

/* Add to Your Order */


/* Sidebar CTA */
.td-sidebar-cta-section {
    text-align: center;
}

.td-sidebar-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.td-sidebar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1 1 0;
    min-width: 0;
    padding: 0.75rem 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--border-radius-pill);
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Shimmer sweep animation */
.td-sidebar-cta--buy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: td-ctaShimmer 3s ease-in-out infinite;
    z-index: -1;
}

.td-sidebar-cta__text {
    white-space: nowrap;
}

.td-sidebar-cta:hover {
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45), 0 0 20px rgba(139, 92, 246, 0.2);
    color: #fff;
}

.td-sidebar-cta svg {
    flex-shrink: 0;
}

.td-sidebar-cta--preview {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    color: var(--color-text-secondary);
}

.td-sidebar-cta--preview::after {
    display: none;
}

.td-sidebar-cta--preview:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    color: #fff;
}

.td-sidebar-cta-section__footnote {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}

/* Checkout Badge (sidebar) */
.td-checkout-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(52, 211, 153, 0.12);
    border-radius: var(--border-radius-pill);
    background: rgba(52, 211, 153, 0.04);
}

.td-checkout-badge svg {
    flex-shrink: 0;
    color: var(--color-success);
    animation: td-lockPulse 2.5s ease-in-out infinite;
}

/* Light Mode Overrides */
[data-theme="light"] .td-preview {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .td-preview:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(139, 92, 246, 0.06);
}

[data-theme="light"] .td-main__title {
    background: linear-gradient(90deg, #18181b 0%, #18181b 40%, rgba(139, 92, 246, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
}

[data-theme="light"] .td-breadcrumb {
    border-image: linear-gradient(90deg, rgba(139, 92, 246, 0.12), transparent 80%) 1;
}

[data-theme="light"] .td-info-box__card {
    background: var(--color-bg-card);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .td-info-box__card--created .td-info-box__icon {
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .td-info-box__card--updated .td-info-box__icon {
    background: rgba(52, 211, 153, 0.08);
}

[data-theme="light"] .td-plans-section {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .td-plan__label {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .td-plan__label:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .td-plan__input:checked + .td-plan__label {
    border-color: var(--color-accent);
}

[data-theme="light"] .td-perks-section {
    border-color: rgba(0, 0, 0, 0.06);
    background: var(--color-bg-card);
}

[data-theme="light"] .td-share__link {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .td-share__link:hover {
    color: #fff;
}

[data-theme="light"] .td-share__link--x:hover {
    background: #14171a;
}

[data-theme="light"] .td-sidebar-cta--preview {
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--color-text-secondary);
}

[data-theme="light"] .td-sidebar-cta--preview:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.24);
    color: var(--color-text-primary);
}

[data-theme="light"] .co-upsell__heading {
    color: var(--color-text-primary);
}

[data-theme="light"] .co-upsell__name {
    color: var(--color-text-secondary);
}

[data-theme="light"] .co-upsell__header::after {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .td-related__grid .th-card:hover {
    border-color: rgba(139, 92, 246, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .td-related__title {
    border-bottom-color: rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .th-card--cta {
    background: rgba(139, 92, 246, 0.03);
    border-color: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .th-card--cta:hover {
    border-color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .td-layout {
        grid-template-columns: 1fr 300px;
        gap: var(--spacing-md);
    }

    .td-main-body {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .page-theme-detail .container {
        padding-inline: 1.5rem;
    }

    .td-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "breadcrumb"
            "header"
            "preview"
            "sidebar"
            "content";
        gap: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        max-width: 100%;
    }

    .td-main__header {
        display: block;
    }

    .td-main-col {
        gap: var(--spacing-sm);
    }

    .td-sidebar {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .td-main__top {
        gap: 0.5rem;
        flex-wrap: wrap;
        padding-right: 0.5rem;
    }

    .td-preview {
        border-radius: var(--border-radius-sm);
    }

    .td-main-body {
        margin-top: 0;
    }

    .td-info-box {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .td-info-box__card {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.4rem;
        padding: 0.4rem 0.6rem;
    }

    .td-info-box__icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .td-info-box__icon svg {
        width: 11px;
        height: 11px;
    }

    .td-info-box__label {
        font-size: 0.65rem;
        flex-shrink: 0;
    }

    .td-info-box__label::after {
        content: ':';
        margin-right: 0.15rem;
        font-weight: 400;
        color: var(--color-text-muted);
    }

    .td-info-box__value {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .td-sidebar-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Compact sidebar sections */
    .td-sidebar {
        gap: 0.6rem;
    }

    .td-sidebar .co-upsell__header::after {
        display: none !important;
    }

    .td-sidebar .co-upsell {
        margin-top: 1.5rem !important;
    }

    .td-sidebar .co-upsell__heading {
        display: block !important;
        color: var(--color-text-primary) !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        flex: none !important;
        width: auto !important;
        white-space: normal !important;
    }

    .td-share {
        gap: 0.4rem;
    }

    .td-share__link {
        width: 28px;
        height: 28px;
    }

    .td-share__link svg {
        width: 12px;
        height: 12px;
    }

    .td-share__label {
        font-size: 0.65rem;
    }

    .td-plans-section {
        padding: 0.5rem;
    }

    .td-plans-section__title {
        font-size: 0.78rem;
        margin-bottom: 0.4rem;
    }

    .td-plans {
        gap: 0.3rem;
    }

    .td-plan__label {
        padding: 0.5rem 0.5rem;
    }

    .td-plan__name {
        font-size: 0.78rem;
    }

    .td-plan__amount {
        font-size: 0.95rem;
    }

    .td-plan__currency {
        font-size: 0.7rem;
    }

    .td-plan__period {
        font-size: 0.6rem;
    }

    .td-plan__badge {
        font-size: 0.55rem;
        padding: 0.08rem 0.35rem;
    }

    .td-plan__tooltip {
        width: 14px;
        height: 14px;
    }

    .td-plan__tooltip svg {
        width: 10px;
        height: 10px;
    }

    .td-perks-section {
        padding: 0.5rem;
    }

    .td-perks-section__title {
        font-size: 0.68rem;
        margin-bottom: 0.3rem;
    }

    .td-perks {
        gap: 0.3rem;
    }

    .td-perks__item {
        font-size: 0.75rem;
        gap: 0.35rem;
    }

    .td-perks__icon {
        width: 12px;
        height: 12px;
    }

    .td-perks__icon svg {
        width: 12px;
        height: 12px;
    }

    .td-sidebar-cta-section {
        margin-top: 0;
    }

    .td-sidebar-cta-section__footnote {
        font-size: 0.6rem;
        margin-top: 0.3rem;
    }

    .td-checkout-badge {
        font-size: 0.55rem;
        gap: 0.25rem;
        padding: 0.25rem 0.4rem;
    }

    .td-checkout-badge svg {
        width: 11px;
        height: 11px;
    }

    /* Compact main body sections */
    .td-main__header {
        margin-bottom: 0;
    }

    .td-main__meta {
        gap: 0.4rem;
        font-size: 0.7rem;
    }

    .td-price-btn {
        font-size: 1.15rem;
        padding: 0.65rem 1.15rem 0.65rem 0.85rem;
        gap: 0.5rem;
    }

    .td-price-btn svg {
        width: 18px;
        height: 18px;
    }

    .td-hero__badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.35rem;
    }

    .td-overview {
        padding: 0 0 0.75rem;
    }

    .td-overview__title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .td-overview__content p {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .td-overview__content p:first-of-type::first-letter {
        font-size: 1.4rem;
        margin-right: 0.3rem;
        margin-top: 0.1rem;
    }

    .td-overview__toggle {
        font-size: 0.72rem;
    }

    .td-features {
        padding: 0.5rem 0;
    }

    .td-features__header {
        margin-bottom: 0.5rem;
    }

    .td-features__title {
        font-size: 1.1rem;
    }

    .td-features__desc {
        font-size: 0.8rem;
    }

    .td-features__grid {
        gap: 0.35rem;
    }

    .td-features__item {
        padding: 0.4rem 0.4rem;
        gap: 0.4rem;
        font-size: 0.82rem;
    }

    .td-features__icon {
        width: 20px;
        height: 20px;
    }

    .td-features__icon svg {
        width: 10px;
        height: 10px;
    }

    .td-features__text {
        padding-top: 3px;
    }

    .td-specs {
        padding: 0.5rem 0;
    }

    .td-specs__header {
        margin-bottom: 0.5rem;
    }

    .td-specs__title {
        font-size: 1.1rem;
    }

    .td-specs__row {
        padding: 0.35rem 0.5rem;
    }

    .td-specs__label,
    .td-specs__value {
        font-size: 0.78rem;
    }

    .td-related {
        padding: 0 0 0.5rem;
    }

    .td-related__header {
        margin-bottom: 0.4rem;
    }

    .td-related__title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .td-breadcrumb {
        padding: 10px 0 0;
        font-size: 0.65rem;
    }

    .td-hero {
        padding: 8px 0 16px;
    }

    .td-hero__grid {
        gap: 16px;
    }

    .td-hero__info {
        gap: 10px;
    }

    .td-hero__title {
        font-size: 1.1rem;
    }

    .td-hero__meta {
        gap: 0.75rem;
    }

    .td-hero__badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.35rem;
        letter-spacing: 1px;
    }

    .td-hero__rating {
        font-size: 0.7rem;
    }

    .td-hero__rating svg {
        width: 12px;
        height: 12px;
    }

    .td-hero__sales {
        font-size: 0.7rem;
    }

    .td-hero__visual {
        aspect-ratio: 4 / 3;
        border-radius: 6px;
    }

    .td-hero__price-amount {
        font-size: 1.1rem;
    }

    .td-hero__price-label {
        font-size: 0.75rem;
    }

    .td-hero__desc p {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .td-hero__actions .btn {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .td-stats__grid {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .td-stats__card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.3rem 0.5rem;
    }

    .td-stats__value {
        font-size: 0.8rem;
    }

    .td-stats__value--star svg {
        width: 12px;
        height: 12px;
    }

    .td-stats__label {
        font-size: 0.55rem;
        text-align: right;
    }

    .td-features__grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
    THEME DETAIL — UI ENHANCEMENTS (v3)
   ======================================== */

/* ---- Keyframes ---- */
@keyframes td-fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes td-titleShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes td-ctaShimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

@keyframes td-lockPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}/* ---- Sidebar Feature Items — Left Accent on Hover ---- */
.td-sidebar .td-features__item {
    border-left: 2px solid transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast), border-left-color var(--transition-fast);
}

.td-sidebar .td-features__item:hover {
    border-left-color: var(--color-accent);
    background: rgba(139, 92, 246, 0.04);
    border-color: rgba(139, 92, 246, 0.1);
}

/* ---- Sidebar Tabs — Enhanced Active State ---- */
.td-sidebar .td-tabs__nav {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.td-sidebar .td-tabs__btn--active {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ---- Badge Glow ---- */
.td-hero__badge {
    position: relative;
    transition: box-shadow var(--transition-fast);
}

.td-hero__badge:hover {
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

/* ---- Overview Subtle Background ---- */
.td-overview {
    position: relative;
}

.td-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Accessibility: Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .td-breadcrumb,
    .td-main__header,
    .td-preview,
    .td-main-body,
    .td-sidebar {
        animation: none !important;
    }

    .td-main__title {
        animation: none !important;
        background-size: 100% 100% !important;
    }

    .td-sidebar-cta--buy::after {
        animation: none !important;
        display: none !important;
    }

    .td-checkout-badge svg {
        animation: none !important;
    }

    .td-preview:hover,
    .td-preview:hover .td-preview__img,
    .td-related__grid .th-card:hover,
    .td-overview__toggle:hover,
    .td-share__link:hover {
        transform: none !important;
    }

    /* Mobile sub-menu — no animations */
    .main-navigation .sub-menu {
        transition: none !important;
    }

    .main-navigation .sub-menu.is-open li {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .main-navigation .sub-menu-arrow {
        transition: none !important;
    }

    /* Fade menu — no animations */
    .fp-fade-menu {
        transition: none !important;
    }

    .fp-fade-view {
        transition: none !important;
    }

    .fp-fade-view--active {
        opacity: 1 !important;
        transform: none !important;
    }

    .fp-fade-toggle__arrow {
        transition: none !important;
    }
}

/* ========================================
   THANK YOU PAGE
   ======================================== */
.ty-section {
    padding: var(--spacing-xl) 0;
}

.ty-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem 1.5rem;
}

.ty-icon {
    margin-bottom: 1.25rem;
}

.ty-icon--success svg {
    color: #10b981;
}

.ty-icon--error svg {
    color: #ef4444;
}

.ty-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-text-primary);
}

.ty-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.ty-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.ty-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ty-download-btn,
.ty-browse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.ty-link {
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.ty-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ty-section {
        padding: var(--spacing-lg) 0;
    }

    .ty-card {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .ty-title {
        font-size: 1.15rem;
    }

    .ty-subtitle {
        font-size: 0.88rem;
    }

    .ty-download-btn,
    .ty-browse-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.2rem;
    }
}

/* Thank You — Order Summary */
.ty-order {
    text-align: left;
    background: var(--color-bg-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ty-order__header {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.65rem;
}

.ty-order__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    padding: 0.3rem 0;
}

.ty-order__price {
    font-weight: 600;
    color: var(--color-text-primary);
    flex-shrink: 0;
    margin-left: 1rem;
}

.ty-order__total {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.55rem;
    margin-top: 0.4rem;
}

@media (max-width: 768px) {
    .ty-order {
        padding: 0.75rem;
    }
}

/* ========================================
   GENERIC PAGE TEMPLATE
   ======================================== */

.pg-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.pg-article {
    max-width: 780px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow-lg);
}

.pg-article__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.pg-article__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 0.35rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pg-article__updated {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
    font-style: italic;
}

/* ---- Content Typography ---- */

.pg-article__content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text-primary);
}

.pg-article__content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
}

.pg-article__content h2:first-child {
    margin-top: 0;
}

.pg-article__content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.pg-article__content p {
    margin: 0 0 1rem;
}

.pg-article__content ul,
.pg-article__content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.pg-article__content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.pg-article__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pg-article__content a:hover {
    color: var(--color-accent-hover, #6d28d9);
}

.pg-article__content strong {
    font-weight: 600;
    color: var(--color-text-primary);
}

.pg-article__content em {
    font-style: italic;
}

@media (max-width: 768px) {
    .pg-article {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .pg-article__content {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.page-contact .co-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.co-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.co-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.co-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 2rem;
}

/* Info Cards */

.co-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.co-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.co-info-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.08);
}

.co-info-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--color-accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.co-info-card__icon svg {
    color: var(--color-accent);
}

.co-info-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.co-info-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.co-info-card__value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

a.co-info-card__value {
    color: var(--color-accent);
    text-decoration: none;
}

a.co-info-card__value:hover {
    text-decoration: underline;
}

/* Form Card */

.co-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.co-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.co-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.co-form__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.co-form__input,
.co-form__textarea {
    width: 100%;
    padding: 0.7rem 0.875rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.co-form__input::placeholder,
.co-form__textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.co-form__input:focus,
.co-form__textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.co-form__textarea {
    resize: vertical;
    min-height: 140px;
}

.co-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Form States */

.co-form-errors {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
}

.co-form-error {
    font-size: 0.82rem;
    color: #dc2626;
    margin: 0;
}

.co-form-error + .co-form-error {
    margin-top: 0.4rem;
}

.co-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1rem;
    text-align: center;
}

.co-form-success__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-form-success__icon svg {
    color: #16a34a;
}

.co-form-success__text {
    font-size: 0.95rem;
    color: var(--color-text-primary);
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

@media (max-width: 768px) {
    .co-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .co-form-card {
        padding: 1.25rem;
    }
}

/* ========================================
   COMMENTS — cm- prefix
   ======================================== */
.cm-section {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cm-header {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.cm-title {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.cm-empty {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-bg-surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cm-list,
.cm-list ol,
.cm-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-item {
    margin-bottom: 0;
}

.cm-body {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-md);
    transition: background 0.2s ease;
}

.cm-body:hover {
    background: rgba(255, 255, 255, 0.015);
}

/* Pinned comments */
.cm-item:has(.cm-badge--pinned) > .cm-body {
    background: var(--color-accent-subtle);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    margin-left: -3px;
}

.cm-item:has(.cm-badge--pinned) > .cm-body:hover {
    background: rgba(139, 92, 246, 0.06);
}

/* Child comments — visual threading */
.cm-item--child {
    margin-left: 2.5rem;
    position: relative;
}

.cm-item--child::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.cm-avatar {
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.cm-avatar__img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.cm-content {
    flex: 1;
    min-width: 0;
}

.cm-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}

.cm-author {
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: 0.88rem;
}

.cm-date {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.cm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.6rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cm-badge--pinned {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-accent);
}

.cm-badge--pending {
    background: rgba(251, 191, 36, 0.12);
    color: var(--color-warning);
}

.cm-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.cm-text p {
    margin-bottom: 0.6rem;
}

.cm-text p:last-child {
    margin-bottom: 0;
}

.cm-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cm-upvote,
.cm-pin,
.cm-login-reply {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    background: none;
    border: none;
    border-radius: var(--border-radius-pill);
    color: var(--color-text-muted);
    font-size: 0.76rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.cm-upvote:hover,
.cm-pin:hover,
.cm-login-reply:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.cm-upvote.is-voted {
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

.cm-upvote svg,
.cm-pin svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

.cm-pin:hover,
.cm-pin.is-pinned {
    color: var(--color-accent);
}

.cm-upvote__count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 1.2em;
    text-align: center;
}

.cm-actions .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.76rem;
    border-radius: var(--border-radius-pill);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cm-actions .comment-reply-link:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Comment form */
.cm-form-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.comment-respond {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cm-form__field {
    margin-bottom: var(--spacing-sm);
}

.cm-form__textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-base);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    outline: none;
    resize: vertical;
    min-height: 110px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cm-form__textarea::placeholder {
    color: var(--color-text-muted);
}

.cm-form__textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: var(--color-bg-elevated);
}

.cm-form__submit {
    padding: 0.7rem 1.75rem;
    font-size: 0.88rem;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
}

/* Nested comment spacing */
.cm-item .cm-item {
    margin-left: 1.5rem;
    margin-top: 0;
}

.cm-item .cm-item::before {
    left: -0.75rem;
}

#cancel-comment-reply-link {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    margin-left: 0.5rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

#cancel-comment-reply-link:hover {
    color: var(--color-accent);
}

.cm-login-prompt {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-lg);
    margin-top: var(--spacing-md);
}

.cm-login-prompt p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.cm-form-msg {
    padding: 0.7rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.82rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.cm-form-msg--error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: var(--color-danger);
}

.cm-form-msg--success {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--color-success);
}

/* New comment highlight */
.cm-item--new {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.cm-item--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Light mode */
[data-theme="light"] .cm-section,
[data-theme="light"] .comment-respond {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cm-empty {
    background: var(--color-bg-surface);
    border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cm-body:hover {
    background: rgba(0, 0, 0, 0.015);
}

[data-theme="light"] .cm-item:has(.cm-badge--pinned) > .cm-body {
    background: var(--color-accent-subtle);
}

[data-theme="light"] .cm-item:has(.cm-badge--pinned) > .cm-body:hover {
    background: rgba(139, 92, 246, 0.04);
}

[data-theme="light"] .cm-item--child::before {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cm-avatar__img {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .cm-actions {
    border-top-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cm-upvote:hover,
[data-theme="light"] .cm-pin:hover,
[data-theme="light"] .cm-login-reply:hover,
[data-theme="light"] .cm-actions .comment-reply-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .cm-form__textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cm-form__textarea:focus {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
    background: #ffffff;
}

[data-theme="light"] .cm-login-prompt {
    background: var(--color-bg-surface);
    border-color: rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
    .cm-item--child {
        margin-left: 1.25rem;
    }

    .cm-item--child::before {
        left: -0.65rem;
    }

    .cm-item .cm-item {
        margin-left: 0.75rem;
    }

    .cm-item .cm-item::before {
        left: -0.4rem;
    }

    .cm-avatar__img {
        width: 32px;
        height: 32px;
    }

    .cm-text {
        font-size: 0.9rem;
    }

    .cm-actions {
        gap: 0.15rem;
    }

    .cm-upvote,
    .cm-pin,
    .cm-login-reply,
    .cm-actions .comment-reply-link {
        padding: 0.3rem 0.4rem;
        font-size: 0.73rem;
    }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.ab-hero {
    padding: calc(var(--spacing-xl) + 90px) 0 var(--spacing-lg);
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-surface) 100%);
}

.ab-hero__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.ab-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.ab-hero__title span {
    background: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ab-hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

.ab-stats {
    padding: 0 0 var(--spacing-lg);
}

.ab-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.ab-stat {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
}

.ab-stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(to right, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.ab-stat__label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.ab-mission {
    padding: 0 0 var(--spacing-lg);
}

.ab-mission__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.ab-mission__card {
    padding: var(--spacing-md);
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
}

.ab-mission__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: var(--border-radius-md);
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.ab-mission__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.ab-mission__desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.ab-values {
    padding: 0 0 var(--spacing-lg);
}

.ab-values__head {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.ab-values__eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.ab-values__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    max-width: 600px;
    margin: 0 auto;
}

.ab-values__title span {
    background: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ab-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.ab-value {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.ab-value:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.ab-value__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: var(--border-radius-md);
    color: var(--color-accent);
}

.ab-value__body {
    flex: 1;
}

.ab-value__title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.ab-value__desc {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.ab-cta {
    padding: 0 0 var(--spacing-xl);
}

.ab-cta__card {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(244, 114, 182, 0.06) 50%, rgba(96, 165, 250, 0.06) 100%);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--border-radius-lg);
}

.ab-cta__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.ab-cta__title span {
    background: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ab-cta__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.6;
}

.ab-cta__actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.ab-cta__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.ab-cta__btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.ab-cta__btn--primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.ab-cta__btn--secondary {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ab-cta__btn--secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

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

    .ab-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .ab-mission__grid {
        grid-template-columns: 1fr;
    }

    .ab-values__grid {
        grid-template-columns: 1fr;
    }

    .ab-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   BLOG ARCHIVE — Magazine Redesign
   ======================================== */
.blog-hero {
    padding: calc(var(--spacing-lg) + 70px) 0 var(--spacing-sm);
    text-align: center;
}

.blog-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-xs);
}

.blog-hero__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-sm);
    line-height: 1.65;
}

/* Hero search */
.blog-hero__search {
    max-width: 480px;
    margin: var(--spacing-sm) auto 0;
}

.blog-hero__search-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-pill);
    background: var(--color-bg-surface);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-hero__search-form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.blog-hero__search-icon {
    flex-shrink: 0;
    margin-left: 1rem;
    color: var(--color-text-muted);
}

.blog-hero__search-input {
    flex: 1;
    padding: 0.7rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    outline: none;
}

.blog-hero__search-input::placeholder {
    color: var(--color-text-muted);
}

.blog-hero__search-submit {
    padding: 0.7rem 1.25rem;
    border: none;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.blog-hero__search-submit:hover {
    background: var(--color-accent-hover);
}

/* Category filter tabs */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: var(--spacing-sm);
}

.blog-filters__pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: var(--border-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    background: transparent;
}

.blog-filters__pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.blog-filters__pill--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.blog-filters__pill--active:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
}

/* Grid */
.blog-grid {
    padding-top: var(--spacing-sm);
}

.blog-grid__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.35rem, 1.5vw, 1rem);
}

/* Featured card spans full width on tablet, 2 cols on desktop */
.blog-card--featured {
    grid-column: 1 / -1;
}

/* Card */
.blog-card {
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.blog-card__visual-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.blog-card__visual {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-base);
}

.blog-card__img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
    color: var(--color-accent);
}

.blog-card__body {
    padding: clamp(0.35rem, 1.5vw, 0.85rem);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.15rem;
}

.blog-card__category {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: var(--border-radius-pill);
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.blog-card__category:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-accent);
}

.blog-card__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.5rem;
    color: var(--color-text-muted);
    margin-left: auto;
}

.blog-card__reading-time svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.blog-card__title {
    font-size: clamp(0.68rem, 2.8vw, 1.1rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card--featured .blog-card__title {
    font-size: clamp(0.85rem, 3.6vw, 1.35rem);
}

.blog-card__title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: var(--color-accent);
}


    opacity: 0.5;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    background: transparent;
}

.blog-pagination .page-numbers:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.blog-pagination .page-numbers.current {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.blog-pagination .page-numbers.dots:hover {
    border-color: transparent;
    color: var(--color-text-muted);
}

.blog-pagination .page-numbers svg {
    flex-shrink: 0;
}

/* Empty state */
.blog-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.blog-grid__empty-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    margin: 0 auto var(--spacing-sm);
}

.blog-grid__empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.3rem;
}

.blog-grid__empty-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Newsletter CTA */
.blog-newsletter {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-newsletter__inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.04));
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md) var(--spacing-sm);
}

.blog-newsletter__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    letter-spacing: -0.02em;
}

.blog-newsletter__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 480px;
}

.blog-newsletter__form {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 420px;
    border-radius: var(--border-radius-pill);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--color-bg-surface);
}

.blog-newsletter__input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.blog-newsletter__input::placeholder {
    color: var(--color-text-muted);
}

.blog-newsletter__btn {
    padding: 0.7rem 1.25rem;
    border: none;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.blog-newsletter__btn:hover {
    background: var(--color-accent-hover);
}

/* ========================================
   AUTHOR ARCHIVE — author.php
   ======================================== */
.author-archive {
    padding-top: calc(1.5rem + 56px);
}

.author-header {
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.author-header__inner {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.author-header__avatar-wrap {
    flex-shrink: 0;
}

.author-header__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent-subtle);
    display: block;
}

.author-header__info {
    flex: 1;
    min-width: 0;
}

.author-header__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.author-header__bio {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.author-header__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.author-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.author-header__meta-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.author-header__meta-divider {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.author-header__socials {
    display: flex;
    gap: 0.4rem;
}

.author-header__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.author-header__social:hover {
    transform: translateY(-2px);
}

.author-header__social--facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
    background: rgba(24, 119, 242, 0.08);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15);
}

.author-header__social--whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
    background: rgba(37, 211, 102, 0.08);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

/* ========================================
   BLOG SINGLE — single.php
   ======================================== */
.page-blog-single {
    padding-top: calc(1.5rem + 56px);
}

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

.blog-article {
    min-width: 0;
    max-width: 740px;
    margin: 0 auto;
    width: 100%;
}

/* Featured image */
.blog-article__thumb {
    margin: 0 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

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

/* Category pills */
.blog-article__categories {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.blog-article__meta-end {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-article__meta-end .blog-article__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.blog-article__meta-end .blog-article__reading-time svg {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
}

.blog-article__category-pill {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-article__category-pill:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

/* Header */
.blog-article__header {
    margin-bottom: 1.5rem;
}

.blog-article__title {
    font-size: clamp(1.65rem, 4vw, 2.65rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

/* Meta row */
.blog-article__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-article__author-avatar {
    border-radius: 50%;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.blog-article__author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.blog-article__author-name a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.blog-article__author-name a:hover {
    color: var(--color-accent);
}

.blog-article__meta-dot {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.blog-article__date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.blog-article__date svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

/* Share row */
.blog-article__share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-article__share-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.blog-article__share-buttons {
    display: flex;
    gap: 0.35rem;
}

.blog-article__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-article__share-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.blog-article__share-btn svg {
    width: 14px;
    height: 14px;
}

.blog-article__share-btn--copy.is-copied {
    border-color: var(--color-success);
    color: var(--color-success);
    background: rgba(52, 211, 153, 0.1);
}

/* Post content — readable typography */
.blog-article__content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.blog-article__content h2 {
    font-size: 1.65rem;
    margin: 2rem 0 0.75rem;
    color: var(--color-text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    scroll-margin-top: 96px;
}

.blog-article__content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text-primary);
    line-height: 1.35;
    scroll-margin-top: 96px;
}

.blog-article__content h4 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.4rem;
    color: var(--color-text-primary);
}

.blog-article__content p {
    margin-bottom: 1rem;
}

.blog-article__content ul,
.blog-article__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.blog-article__content li {
    margin-bottom: 0.35rem;
}

.blog-article__content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
    border-radius: 0 10px 10px 0;
}

.blog-article__content blockquote p {
    margin-bottom: 0;
}

.blog-article__content img {
    border-radius: 10px;
    margin: 1.25rem 0;
}

.blog-article__content pre {
    background: var(--color-bg-surface);
    border-radius: 10px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-article__content code:not(pre code) {
    background: var(--color-bg-surface);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.88em;
}

.blog-article__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.blog-article__content a:hover {
    color: var(--color-accent-hover);
    text-decoration-thickness: 2px;
}

.blog-article__content .wp-caption {
    max-width: 100%;
}

.blog-article__content .wp-caption-text {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 0.4rem;
}

.blog-article__content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 1.5rem 0;
}

.blog-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.blog-article__content th,
.blog-article__content td {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.blog-article__content th {
    font-weight: 700;
    color: var(--color-text-primary);
    background: var(--color-bg-surface);
}

.blog-article__content td {
    color: var(--color-text-secondary);
}

/* Tags */
.blog-article__tags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-article__tags > svg {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
    flex-shrink: 0;
    opacity: 0.5;
}

.blog-article__tag-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-fast);
}

.blog-article__tag-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

/* Author box — card */
.blog-article__author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

.blog-article__author-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: box-shadow var(--transition-normal);
}

.blog-article__author-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-article__author-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.blog-article__author-info {
    min-width: 0;
}

.blog-article__author-name-lg {
    font-size: 1rem;
    margin: 0 0 0.2rem;
}

.blog-article__author-name-lg a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.blog-article__author-name-lg a:hover {
    color: var(--color-accent);
}

.blog-article__author-bio {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-article__author-socials {
    display: flex;
    gap: 0.4rem;
}

.blog-article__author-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-article__author-social svg {
    width: 14px;
    height: 14px;
}

.blog-article__author-social:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
    transform: translateY(-2px);
}

.blog-article__author-social--facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
    background: rgba(24, 119, 242, 0.08);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.15);
}

.blog-article__author-social--whatsapp:hover {
    border-color: #25d366;
    color: #25d366;
    background: rgba(37, 211, 102, 0.08);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

/* Post nav — card-based */
.blog-article__nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    content-visibility: auto;
    contain-intrinsic-size: 120px;
}

.blog-article__nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-article__nav-link:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-subtle);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

.blog-article__nav-link--prev {
    justify-content: flex-start;
    text-align: left;
}

.blog-article__nav-link--next {
    justify-content: flex-end;
    text-align: right;
}

.blog-article__nav-link > svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.blog-article__nav-link--prev:hover > svg {
    transform: translateX(-3px);
}

.blog-article__nav-link--next:hover > svg {
    transform: translateX(3px);
}

.blog-article__nav-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}

.blog-article__nav-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.35;
}

.blog-article__nav-link:hover .blog-article__nav-title {
    color: var(--color-accent);
}

/* ========================================
   BLOG SIDEBAR
   ======================================== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.blog-sidebar__widget {
    padding: 1rem;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.blog-sidebar__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-sidebar__search {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-sidebar__search > svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 1;
    width: 15px;
    height: 15px;
}

.blog-sidebar__search-input {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.2rem;
    background: var(--color-bg-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    color: var(--color-text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition-fast);
}

.blog-sidebar__search-input:focus {
    border-color: var(--color-accent);
}

.blog-sidebar__search-input::placeholder {
    color: var(--color-text-muted);
}

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

.blog-sidebar__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-sidebar__item:last-child {
    border-bottom: none;
}

.blog-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-sidebar__link:hover {
    color: var(--color-accent);
}

.blog-sidebar__link-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg-elevated);
    padding: 0.1rem 0.45rem;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
}

.blog-sidebar__item--active .blog-sidebar__link {
    color: var(--color-accent);
    font-weight: 600;
}

.blog-sidebar__recent-link {
    display: flex;
    gap: 0.65rem;
    padding: 0.45rem 0;
    text-decoration: none;
}

.blog-sidebar__recent-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-bg-base);
}

.blog-sidebar__recent-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-sidebar__recent-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.15rem;
}

.blog-sidebar__recent-link:hover .blog-sidebar__recent-title {
    color: var(--color-accent);
}

.blog-sidebar__recent-date {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.blog-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-sidebar__tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-fast);
}

.blog-sidebar__tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

/* ========================================
   BLOG COMMENTS
   ======================================== */

/* Honeypot — keep off-screen so bots see it, humans don't */
.wpforge-hp-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    overflow: hidden;
    width: 0;
    height: 0;
}

.blog-comments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

.blog-comments__header {
    margin-bottom: 0.75rem;
}

.blog-comments__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

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

.blog-comments__item {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.blog-comments__item:last-child {
    border-bottom: none;
}

.blog-comments__item--child {
    padding-left: 1.5rem;
}

.blog-comments__body {
    display: flex;
    gap: 0.75rem;
}

.blog-comments__avatar {
    flex-shrink: 0;
}

.blog-comments__avatar-img {
    border-radius: 50%;
    display: block;
    width: 36px;
    height: 36px;
}

.blog-comments__content {
    flex: 1;
    min-width: 0;
}

.blog-comments__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.blog-comments__author {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.blog-comments__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.blog-comments__text {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.blog-comments__text p {
    margin-bottom: 0.4rem;
}

.blog-comments__text p:last-child {
    margin-bottom: 0;
}

.blog-comments__moderation {
    font-style: italic;
    color: var(--color-warning);
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
}

.blog-comments__reply {
    margin-top: 0.35rem;
}

.blog-comments__reply a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-comments__reply a:hover {
    color: var(--color-accent);
}

.blog-comments__reply a svg {
    opacity: 0.5;
    width: 13px;
    height: 13px;
}

.blog-comment-respond {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-comment-respond__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-comment-respond__title a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.blog-comment-respond .comment-notes {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.blog-comment-respond__field {
    margin-bottom: 0.5rem;
}

.blog-comment-respond__field textarea,
.blog-comment-respond textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--color-bg-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 0.88rem;
    font-family: var(--font-body);
    line-height: 1.5;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.blog-comment-respond__field textarea:focus,
.blog-comment-respond textarea:focus {
    border-color: var(--color-accent);
}

.blog-comment-respond .form-submit {
    margin: 0;
}

.blog-comment-respond__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 24px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.blog-comment-respond__submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.blog-comments__closed {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-style: italic;
    padding: 0.5rem 0;
}

.blog-comments__login-prompt {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    padding: 0.75rem 1rem;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.blog-comments__login-prompt p {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.blog-comments__login-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-comments__login-prompt-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

/* ========================================
   BLOG RELATED POSTS
   ======================================== */
.blog-related {
    padding: 2rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.blog-related .section-title {
    text-align: left;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-related__grid {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding-bottom: 0.5rem;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-related__grid::-webkit-scrollbar {
    display: none;
}

.blog-related__grid > .blog-card {
    flex: 0 0 78vw;
    scroll-snap-align: start;
}

@media (max-width: 767px) {
    .blog-related__grid > .blog-card .blog-card__body {
        padding: 0.65rem;
    }

    .blog-related__grid > .blog-card .blog-card__title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .blog-related__grid > .blog-card .blog-card__footer {
        padding-top: 0.35rem;
    }

    .blog-related__grid > .blog-card .blog-card__category {
        font-size: 0.6rem;
    }

    .blog-related__grid > .blog-card .blog-card__reading-time {
        font-size: 0.65rem;
    }

    .blog-related__grid > .blog-card .blog-card__read-more {
        font-size: 0.75rem;
    }
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ========================================
   BLOG PROGRESS BAR
   ======================================== */
.blog-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: 1000;
    pointer-events: none;
}

.blog-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}

/* ========================================
   BLOG TABLE OF CONTENTS
   ======================================== */
.blog-toc {
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.blog-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background var(--transition-fast);
}

.blog-toc__toggle:hover {
    background: rgba(255, 255, 255, 0.02);
}

.blog-toc__toggle::-webkit-details-marker {
    display: none;
}

.blog-toc__toggle::marker {
    display: none;
    content: '';
}

.blog-toc__toggle-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-toc__chevron {
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.blog-toc[open] .blog-toc__chevron {
    transform: rotate(180deg);
}

.blog-toc__nav {
    padding: 0 1rem 0.65rem;
}

.blog-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc-counter;
}

.blog-toc__item {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    counter-increment: toc-counter;
}

.blog-toc__item:last-child {
    border-bottom: none;
}

.blog-toc__item--l3 {
    padding-left: 1.25rem;
}

.blog-toc__link {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    line-height: 1.5;
    transition: color var(--transition-fast);
    padding-left: 1.75rem;
    position: relative;
}

.blog-toc__link::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--color-accent);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.blog-toc__link:hover {
    color: var(--color-accent);
}

.blog-toc__item--l2 .blog-toc__link {
    font-weight: 600;
    color: var(--color-text-primary);
}

.blog-sidebar__widget {
    padding: 0.75rem;
    background: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.blog-sidebar__title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-sidebar__search {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-sidebar__search > svg {
    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 1;
    width: 13px;
    height: 13px;
}

.blog-sidebar__search-input {
    width: 100%;
    padding: 0.4rem 0.75rem 0.4rem 2rem;
    background: var(--color-bg-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: var(--color-text-primary);
    font-size: 0.8rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition-fast);
}

.blog-sidebar__search-input:focus {
    border-color: var(--color-accent);
}

.blog-sidebar__search-input::placeholder {
    color: var(--color-text-muted);
}

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

.blog-sidebar__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.blog-sidebar__item:last-child {
    border-bottom: none;
}

.blog-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-sidebar__link:hover {
    color: var(--color-accent);
}

.blog-sidebar__link-count {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg-elevated);
    padding: 0.08rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.blog-sidebar__item--active .blog-sidebar__link {
    color: var(--color-accent);
    font-weight: 600;
}

.blog-sidebar__recent-link {
    display: flex;
    gap: 0.5rem;
    padding: 0.3rem 0;
    text-decoration: none;
}

.blog-sidebar__recent-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-bg-base);
}

.blog-sidebar__recent-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-sidebar__recent-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.12rem;
}

.blog-sidebar__recent-link:hover .blog-sidebar__recent-title {
    color: var(--color-accent);
}

.blog-sidebar__recent-date {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.blog-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.blog-sidebar__tag {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--color-bg-elevated);
    color: var(--color-text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

.blog-sidebar__tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-subtle);
}

/* ========================================
   BLOG LIGHT MODE OVERRIDES
   ======================================== */
[data-theme="light"] .blog-card {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .blog-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blog-card__footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-hero__search-form {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

[data-theme="light"] .blog-filters__pill {
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-secondary);
}

[data-theme="light"] .blog-filters__pill--active {
    border-color: var(--color-accent);
    color: #fff;
}

[data-theme="light"] .blog-newsletter {
    border-top-color: rgba(0, 0, 0, 0.06);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-newsletter__inner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04), rgba(59, 130, 246, 0.02));
}

[data-theme="light"] .blog-newsletter__form {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

[data-theme="light"] .blog-pagination {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-pagination .page-numbers {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: var(--color-text-secondary);
}

[data-theme="light"] .blog-article__share {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-article__share-btn {
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-secondary);
}

[data-theme="light"] .blog-article__tags {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-article__tag-pill {
    background: #f0eef5;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-article__author {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-article__author-card {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-article__author-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .blog-article__author-social {
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-secondary);
}

[data-theme="light"] .blog-article__nav {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-article__nav-link {
    border-color: rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

[data-theme="light"] .blog-article__nav-link:hover {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .blog-sidebar__widget {
    border-color: rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

[data-theme="light"] .blog-sidebar__title {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-sidebar__search-input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .blog-sidebar__item {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .blog-sidebar__tag {
    background: #f0eef5;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-comments {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-comments__item {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .blog-comment-respond {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-comment-respond__field textarea,
[data-theme="light"] .blog-comment-respond textarea {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .blog-comments__login-prompt {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-card__placeholder {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.04));
}

[data-theme="light"] .blog-article__content blockquote {
    background: #f8f7fc;
}

[data-theme="light"] .blog-article__content code:not(pre code) {
    background: #f0eef5;
}

[data-theme="light"] .blog-article__content pre {
    background: #f8f7fc;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-sidebar__link-count {
    background: #f0eef5;
}

[data-theme="light"] .blog-toc {
    background: #f8f7fc;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-toc__item {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .blog-article__meta {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .blog-article__meta-dot {
    color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .blog-article__share-label {
    color: var(--color-text-muted);
}

[data-theme="light"] .blog-comments__list {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .blog-comments__login-prompt-btn {
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-secondary);
}

[data-theme="light"] .blog-comments__login-prompt-btn:hover {
    background: var(--color-bg-surface);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

[data-theme="light"] .blog-article__content th {
    background: #f8f7fc;
}

[data-theme="light"] .blog-article__content th,
[data-theme="light"] .blog-article__content td {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .author-header {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .author-header__social {
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-secondary);
}

/* ========================================
   BLOG RESPONSIVE
   ======================================== */
@media (min-width: 768px) {
    .blog-grid__items {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-related__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

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

    .author-header__inner {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .author-header__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-header__meta {
        justify-content: center;
    }

    .author-header__socials {
        justify-content: center;
    }
}

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

    .blog-card--featured {
        grid-column: span 2;
    }

    .blog-newsletter__inner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: var(--spacing-md) var(--spacing-lg);
    }

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

    .blog-article {
        max-width: none;
    }

    .blog-sidebar {
        position: sticky;
        top: calc(var(--header-height, 72px) + 1.5rem);
        align-self: start;
    }

    .blog-related__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__img,
    .blog-card__category,
    .blog-card__title a,
    .blog-article__nav-link,
    .blog-article__nav-link > svg,
    .blog-article__share-btn,
    .blog-sidebar__recent-link,
    .blog-comment-respond__submit,
    .blog-article__author-social,
    .blog-progress__bar,
    .blog-toc__chevron,
    .blog-filters__pill,
    .blog-hero__search-submit,
    .blog-newsletter__btn,
    .blog-hero__search-form,
    .author-header__social {
        transition: none !important;
    }

    .blog-card:hover,
    .blog-card:hover .blog-card__img,
    .blog-article__nav-link--prev:hover > svg,
    .blog-article__nav-link--next:hover > svg,
    .blog-article__share-btn:hover,
    .blog-sidebar__recent-link:hover,
    .blog-comment-respond__submit:hover,
    .blog-article__author-social:hover,
    .blog-filters__pill:hover,
    .blog-hero__search-submit:hover,
    .blog-newsletter__btn:hover,
    .author-header__social:hover {
        transform: none !important;
    }
}

