/* =============================================================
   Typgame Theme — Main Stylesheet
   =============================================================
   Table of Contents:
     1.  CSS Custom Properties
     2.  Layout & Container
     3.  Typography & Utilities
     4.  Buttons
     5.  Header / Navigation
     6.  Hero Section
     7.  Stats Bar
     8.  Features Grid
     9.  How It Works
     10. Buy / Plugin Section
     11. Testimonials
     12. FAQ Accordion
     13. Final CTA Section
     14. Footer
     15. Page Template
     16. Blog / Archive
     17. Single Post
     18. 404 Page
     19. WooCommerce Wrapper
     20. Scroll Animations
     21. Prose / Content Styles
     22. Media Queries
   ============================================================= */

/* ============================================================
   1. CSS Custom Properties
   ============================================================ */

:root {
    --primary:              #4f46e5;
    --primary-dark:         #3730a3;
    --primary-light:        #818cf8;
    --secondary:            #8b5cf6;
    --accent:               #ec4899;
    --success:              #10b981;
    --warning:              #f59e0b;
    --bg-dark:              #07051a;
    --bg-hero:              #0d0a2e;
    --bg-card-dark:         #130f35;
    --bg-section:           #f8fafc;
    --text-primary:         #1e293b;
    --text-muted:           #64748b;
    --text-light:           #f1f5f9;
    --text-dim:             #94a3b8;
    --border:               #e2e8f0;
    --border-dark:          rgba(255,255,255,.08);
    --card-shadow:          0 4px 24px rgba(0,0,0,.08);
    --card-shadow-hover:    0 12px 40px rgba(79,70,229,.15);
    --radius:               12px;
    --radius-lg:            20px;
    --radius-xl:            28px;
    --gradient:             linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --gradient-accent:      linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-hero:        linear-gradient(135deg, #0d0a2e 0%, #1a1040 50%, #0d0a2e 100%);
    --transition:           .2s ease;
    --nav-height:           68px;
}

/* ============================================================
   2. Layout & Container
   ============================================================ */

.tg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.tg-section {
    padding: 96px 0;
}

.tg-section--light {
    background: var(--bg-section);
}

.tg-section--dark {
    background: var(--bg-hero);
}

/* Section Header */
.tg-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.tg-section-header--dark {
    /* Styles for dark-background section headers are handled by --white / --muted modifiers */
}

.tg-section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.tg-section-title--white {
    color: #fff;
}

.tg-section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.tg-section-sub--muted {
    color: var(--text-dim);
}

/* Eyebrow / overline label above section titles */
.tg-section-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary-light);
    background: rgba(79,70,229,.15);
    border: 1px solid rgba(79,70,229,.25);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 16px;
}

.tg-section-eyebrow--dark {
    color: var(--primary);
    background: rgba(79,70,229,.08);
    border-color: rgba(79,70,229,.18);
}

/* ============================================================
   3. Typography & Utilities
   ============================================================ */

.tg-gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   4. Buttons
   ============================================================ */

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: 13px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 4px 20px rgba(79,70,229,.35);
    white-space: nowrap;
    line-height: 1;
}

.tg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79,70,229,.48);
    color: #fff;
}

.tg-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(79,70,229,.3);
}

.tg-btn-hero {
    padding: 16px 34px;
    font-size: 1.05rem;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(79,70,229,.45);
}

.tg-btn-cta {
    box-shadow: 0 8px 40px rgba(79,70,229,.5);
}

.tg-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: .95rem;
    padding: 13px 26px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.tg-btn-ghost:hover {
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.07);
    color: #fff;
}

.tg-btn-ghost--light {
    color: var(--text-light);
}

/* ============================================================
   5. Header / Navigation
   ============================================================ */

.tg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow .3s ease, backdrop-filter var(--transition);
}

.tg-header.scrolled {
    background: rgba(7,5,26,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 24px rgba(0,0,0,.3);
}

.tg-nav {
    height: var(--nav-height);
}

.tg-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

/* Logo */
.tg-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.tg-logo-icon {
    flex-shrink: 0;
    display: block;
}

.tg-logo-wordmark {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.02em;
}

/* Nav links */
.tg-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.tg-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    font-size: .92rem;
    font-weight: 500;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    font-family: inherit;
}

.tg-nav-link:hover,
.tg-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.07);
}

/* Dropdown */
.tg-nav-dropdown {
    position: relative;
}

.tg-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1640;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 260px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(79,70,229,.15);
    z-index: 200;
    animation: tg-dropdown-in .15s ease;
}

.tg-dropdown-menu.open,
.tg-nav-dropdown:hover .tg-dropdown-menu {
    display: block;
}

@keyframes tg-dropdown-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.tg-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    transition: background var(--transition), color var(--transition);
}

.tg-dropdown-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.tg-dropdown-item strong {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.2;
}

.tg-dropdown-item small {
    display: block;
    font-size: .76rem;
    color: var(--text-dim);
    margin-top: 2px;
    font-weight: 400;
}

.tg-dropdown-icon {
    font-size: 1.1rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

/* Nav actions (CTA + hamburger) */
.tg-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tg-nav-cta {
    padding: 9px 20px;
    font-size: .88rem;
    border-radius: 8px;
}

/* Hamburger */
.tg-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
}

.tg-hamburger:hover {
    background: rgba(255,255,255,.1);
}

.tg-hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,.85);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
}

.tg-hamburger.active .tg-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.tg-hamburger.active .tg-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.tg-hamburger.active .tg-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav overlay (mobile) */
.tg-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.tg-nav-overlay.visible {
    display: block;
}

/* ============================================================
   6. Hero Section
   ============================================================ */

.tg-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding: 120px 0 80px;
}

/* Floating orbs */
.tg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    pointer-events: none;
}

.tg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: tg-float 8s ease-in-out infinite;
}

.tg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    animation: tg-float 11s ease-in-out infinite reverse;
}

.tg-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    top: 30%;
    left: 40%;
    animation: tg-float 14s ease-in-out infinite;
    opacity: .18;
}

.tg-orb-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation: tg-float 10s ease-in-out infinite;
    opacity: .12;
}

/* Buy section orbs */
.tg-orb-buy-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    top: -150px;
    left: -100px;
    opacity: .2;
    animation: tg-float 9s ease-in-out infinite;
}

.tg-orb-buy-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -100px;
    right: -80px;
    opacity: .15;
    animation: tg-float 12s ease-in-out infinite reverse;
}

/* CTA section orbs */
.tg-orb-cta-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    top: -200px;
    right: -80px;
    opacity: .2;
    animation: tg-float 9s ease-in-out infinite;
}

.tg-orb-cta-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: -100px;
    left: 10%;
    opacity: .15;
    animation: tg-float 13s ease-in-out infinite reverse;
}

/* 404 page orbs */
.tg-orb-404-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
    top: -150px;
    right: -100px;
    opacity: .25;
    animation: tg-float 10s ease-in-out infinite;
}

.tg-orb-404-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -80px;
    left: 5%;
    opacity: .2;
    animation: tg-float 12s ease-in-out infinite reverse;
}

@keyframes tg-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-32px) scale(1.04); }
}

@keyframes tg-pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--success); }
    50%       { opacity: .7; box-shadow: 0 0 18px var(--success), 0 0 36px rgba(16,185,129,.3); }
}

.tg-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.tg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    padding: 7px 16px;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tg-hero-badge--live {
    border-color: rgba(16,185,129,.35);
    background: rgba(16,185,129,.08);
}

.tg-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    flex-shrink: 0;
    animation: tg-pulse-dot 1.8s ease-in-out infinite;
}

@keyframes tg-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    50%       { opacity: .85; transform: scale(1.1); box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.tg-hero-badge-dot {
    font-size: 1rem;
    line-height: 1;
}

.tg-hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin-bottom: 24px;
}

.tg-hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.72;
    max-width: 600px;
    margin-bottom: 38px;
}

.tg-hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

/* Social proof row */
.tg-hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50px;
    padding: 10px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tg-proof-avatars {
    display: flex;
    margin-right: 4px;
}

.tg-proof-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(13,10,46,.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    margin-right: -8px;
    flex-shrink: 0;
}

.tg-proof-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.tg-proof-label {
    font-size: .78rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.tg-proof-label strong {
    color: var(--text-light);
    font-weight: 700;
}

/* Star rating (kept for compat) */
.tg-hero-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tg-stars {
    color: #fbbf24;
    font-size: 1.05rem;
    letter-spacing: .04em;
    line-height: 1;
}

.tg-rating-text {
    font-size: .88rem;
    color: var(--text-dim);
}

.tg-rating-text strong {
    color: var(--text-light);
    font-weight: 700;
}

/* ============================================================
   7. Stats Bar
   ============================================================ */

.tg-stats {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,.05);
}

.tg-stats-grid {
    display: flex;
    align-items: stretch;
}

.tg-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 38px 28px;
    text-align: center;
    transition: background var(--transition);
}

.tg-stat-item:hover {
    background: var(--bg-section);
}

.tg-stat-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch;
    flex-shrink: 0;
}

.tg-stat-number {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.tg-stat-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-top: 1px;
}

/* ============================================================
   8. Features Grid
   ============================================================ */

.tg-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tg-feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.tg-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.tg-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(79,70,229,.18);
}

.tg-feature-card:hover::after {
    opacity: 1;
}

.tg-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
    flex-shrink: 0;
}

.tg-feature-icon--indigo { background: rgba(79,70,229,.1);  color: #4f46e5; }
.tg-feature-icon--purple { background: rgba(139,92,246,.1); color: #8b5cf6; }
.tg-feature-icon--green  { background: rgba(16,185,129,.1); color: #10b981; }
.tg-feature-icon--blue   { background: rgba(59,130,246,.1); color: #3b82f6; }
.tg-feature-icon--pink   { background: rgba(236,72,153,.1); color: #ec4899; }
.tg-feature-icon--orange { background: rgba(245,158,11,.1);  color: #f59e0b; }

.tg-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tg-feature-desc {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   9. How It Works
   ============================================================ */

.tg-how-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

/* Connector line between step numbers */
.tg-how-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(16.666% + 16px);
    right: calc(16.666% + 16px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--secondary) 100%);
    opacity: .25;
    pointer-events: none;
}

.tg-step {
    text-align: center;
    padding: 36px 28px 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tg-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(79,70,229,.18);
}

.tg-step-body {
    /* inner text wrapper */
}

.tg-step-number {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 6px 24px rgba(79,70,229,.45);
    position: relative;
    z-index: 1;
}

.tg-step-connector {
    display: none;
}

.tg-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tg-step-desc {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.68;
    margin: 0;
}

/* ============================================================
   10. Buy / Plugin Section
   ============================================================ */

.tg-buy-section {
    background: var(--gradient-hero);
    position: relative;
    overflow-x: clip;
    padding: 88px 0 100px;
}

/* Plugin wrap — single rule, truly full viewport width, no constraints */
.tg-buy-plugin-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

/* Trust strip below plugin */
.tg-buy-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.tg-buy-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .83rem;
    font-weight: 500;
    color: rgba(241,245,249,.5);
}

.tg-buy-trust-item svg {
    flex-shrink: 0;
}

/* ============================================================
   Plugin / Theme Integration — override cpl-* within buy section
   ============================================================ */

/* Remove plugin's own dark bg + breakout. Wrap is already full-width so
   the inner .cpl-landing-inner (max-width 1160px, margin auto) will centre. */
.tg-buy-plugin-wrap .cpl-landing {
    background: transparent !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.tg-buy-plugin-wrap .cpl-landing-inner {
    padding: 0;
    max-width: 1160px;
    margin: 0 auto;
}

.tg-buy-plugin-wrap .cpl-app-shell {
    margin-top: 0;
}

/* White app card — centred, premium shadow to pop on dark bg */
.tg-buy-plugin-wrap .cpl-wrapper {
    max-width: 1100px;
    margin: 0 auto !important;
    border-radius: 24px !important;
    box-shadow:
        0 50px 100px -20px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.07);
}

/* Hide the info grid below the card */
.tg-buy-plugin-wrap .cpl-info-grid {
    display: none !important;
}

/* Centre the search form */
.tg-buy-plugin-wrap .cpl-search-form {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   11. Testimonials
   ============================================================ */

.tg-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tg-testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tg-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(79,70,229,.15);
}

.tg-testimonial-card--featured {
    border-color: rgba(79,70,229,.25);
    box-shadow: 0 8px 40px rgba(79,70,229,.1);
}

.tg-testimonial-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tg-testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tg-testimonial-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: .04em;
    line-height: 1;
}

.tg-testimonial-verified {
    font-size: .7rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.2);
    border-radius: 20px;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tg-testimonial-quote {
    flex: 1;
    margin: 0 0 24px;
}

.tg-testimonial-quote p {
    font-size: .95rem;
    color: var(--text-primary);
    line-height: 1.75;
    margin: 0;
    font-style: italic;
}

.tg-testimonial-quote p::before { content: '\201C'; }
.tg-testimonial-quote p::after  { content: '\201D'; }

.tg-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.tg-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tg-testimonial-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.tg-testimonial-handle {
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================================
   12. FAQ Accordion
   ============================================================ */

.tg-faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.tg-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.tg-faq-item:hover {
    box-shadow: var(--card-shadow);
    border-color: rgba(79,70,229,.15);
}

.tg-faq-item.active {
    border-color: rgba(79,70,229,.3);
    box-shadow: 0 4px 20px rgba(79,70,229,.08);
}

.tg-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: .97rem;
    font-weight: 700;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition), color var(--transition);
    font-family: inherit;
}

.tg-faq-q:hover {
    background: rgba(79,70,229,.03);
}

.tg-faq-item.active .tg-faq-q {
    color: var(--primary);
}

.tg-faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform .35s ease, color var(--transition);
}

.tg-faq-item.active .tg-faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.tg-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .3s ease;
    opacity: 0;
}

.tg-faq-a p {
    padding: 0 22px 20px;
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.72;
    margin: 0;
}

/* ============================================================
   13. Final CTA Section
   ============================================================ */

.tg-cta {
    background: var(--gradient-hero);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
}

.tg-cta-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--success);
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 22px;
}

.tg-cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.tg-cta-sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 36px;
    line-height: 1.7;
}

.tg-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tg-cta-footnote {
    font-size: .78rem;
    color: rgba(255,255,255,.28);
    margin: 0;
    letter-spacing: .01em;
}

/* ============================================================
   14. Footer
   ============================================================ */

.tg-footer {
    background: var(--bg-dark);
    color: var(--text-light);
}

.tg-footer-main {
    padding: 72px 0 52px;
}

.tg-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 48px;
}

.tg-footer-brand {
    /* Brand column */
}

.tg-footer-logo {
    display: inline-flex;
    margin-bottom: 18px;
}

.tg-footer-tagline {
    font-size: .87rem;
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 290px;
    margin-bottom: 24px;
}

.tg-footer-social {
    display: flex;
    gap: 10px;
}

.tg-social-link {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tg-social-link:hover {
    background: rgba(79,70,229,.3);
    color: #fff;
    border-color: var(--primary);
}

.tg-footer-col {
    /* general column */
}

.tg-footer-heading {
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    margin-bottom: 18px;
}

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

.tg-footer-links a {
    font-size: .87rem;
    color: rgba(241,245,249,.5);
    text-decoration: none;
    transition: color var(--transition);
}

.tg-footer-links a:hover {
    color: var(--text-light);
}

.tg-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tg-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .84rem;
    color: rgba(241,245,249,.58);
}

.tg-payment-icons {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.tg-payment-chip {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-dim);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
    padding: 4px 10px;
    letter-spacing: .03em;
}

.tg-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 20px 0;
}

.tg-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tg-footer-copy,
.tg-footer-made {
    font-size: .82rem;
    color: var(--text-dim);
    margin: 0;
}

.tg-footer-copy a {
    color: rgba(255,255,255,.45);
    transition: color var(--transition);
}

.tg-footer-copy a:hover {
    color: #fff;
}

/* ============================================================
   15. Page Template (Privacy, Terms, etc.)
   ============================================================ */

.tg-page-main {
    padding: calc(var(--nav-height) + 40px) 0 80px;
    min-height: 70vh;
    background: var(--bg-section);
}

.tg-page-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.tg-page-article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 52px 56px;
    box-shadow: var(--card-shadow);
}

.tg-page-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.tg-page-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.025em;
    line-height: 1.15;
}

.tg-page-thumbnail {
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.tg-page-featured-img {
    width: 100%;
    height: auto;
}

.tg-page-links {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   16. Blog / Archive
   ============================================================ */

.tg-blog-main {
    padding: calc(var(--nav-height) + 48px) 0 80px;
    min-height: 60vh;
}

.tg-blog-header {
    text-align: center;
    margin-bottom: 56px;
}

.tg-blog-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.025em;
    margin-bottom: 12px;
}

.tg-blog-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.tg-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.tg-post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.tg-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.tg-post-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.tg-post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.tg-post-card:hover .tg-post-thumb-img {
    transform: scale(1.04);
}

.tg-post-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tg-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tg-post-date {
    font-size: .78rem;
    color: var(--text-dim);
    font-weight: 500;
}

.tg-post-cat {
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79,70,229,.08);
    border-radius: 4px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tg-post-cat-badge {
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79,70,229,.08);
    border-radius: 4px;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    display: inline-block;
    margin-bottom: 14px;
}

.tg-post-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.tg-post-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

.tg-post-excerpt {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.tg-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap var(--transition), color var(--transition);
    margin-top: auto;
}

.tg-post-read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* Pagination */
.tg-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.tg-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.tg-pagination .page-numbers:hover,
.tg-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(79,70,229,.35);
}

/* No posts state */
.tg-no-posts {
    text-align: center;
    padding: 80px 24px;
}

.tg-no-posts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.tg-no-posts-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tg-no-posts-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ============================================================
   17. Single Post
   ============================================================ */

.tg-single-main {
    padding: calc(var(--nav-height) + 40px) 0 80px;
    min-height: 70vh;
}

.tg-single-wrap {
    max-width: 840px;
    margin: 0 auto;
}

.tg-single-article {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.tg-single-header {
    padding: 48px 52px 36px;
    border-bottom: 1px solid var(--border);
}

.tg-single-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -.03em;
    line-height: 1.18;
    margin-bottom: 20px;
}

.tg-single-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .83rem;
    color: var(--text-dim);
}

.tg-meta-sep {
    opacity: .5;
}

.tg-post-read-time {
    font-weight: 500;
}

.tg-single-featured-img {
    margin-top: 28px;
    border-radius: var(--radius);
    overflow: hidden;
}

.tg-featured-img {
    width: 100%;
    height: auto;
}

.tg-single-content {
    padding: 44px 52px;
}

.tg-single-footer {
    padding: 32px 52px 44px;
    border-top: 1px solid var(--border);
}

.tg-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tg-tag-chip {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(79,70,229,.06);
    border: 1px solid rgba(79,70,229,.15);
    border-radius: 6px;
    padding: 4px 11px;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}

.tg-tag-chip:hover {
    background: rgba(79,70,229,.12);
    border-color: var(--primary);
}

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

.tg-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.tg-post-nav-link:hover {
    background: rgba(79,70,229,.04);
    border-color: rgba(79,70,229,.2);
    transform: translateY(-2px);
}

.tg-post-nav-link--next {
    text-align: right;
}

.tg-post-nav-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tg-post-nav-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   18. 404 Page
   ============================================================ */

.tg-404-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.tg-404-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.tg-404-number {
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: .9;
    margin-bottom: 16px;
    letter-spacing: -.05em;
}

.tg-404-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -.02em;
}

.tg-404-sub {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 36px;
    line-height: 1.7;
}

.tg-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tg-404-search {
    max-width: 400px;
    margin: 0 auto;
}

.tg-404-search .search-form {
    display: flex;
    gap: 8px;
}

.tg-404-search .search-field {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    color: #fff;
    font-size: .95rem;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.tg-404-search .search-field::placeholder {
    color: rgba(255,255,255,.4);
}

.tg-404-search .search-field:focus {
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
}

.tg-404-search .search-submit {
    padding: 12px 20px;
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(79,70,229,.4);
}

.tg-404-search .search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,.5);
}

/* ============================================================
   19. WooCommerce Wrapper
   ============================================================ */

.tg-woo-page {
    padding: calc(var(--nav-height) + 40px) 0 80px;
    min-height: 60vh;
    background: var(--bg-section);
}

.tg-woo-container {
    max-width: 1100px;
}

/* Let plugin's woocommerce.css handle inner cart/checkout styles.
   We just ensure notices and basic spacing work. */
.tg-woo-page .woocommerce-notices-wrapper {
    margin-bottom: 24px;
}

.tg-woo-page .woocommerce-breadcrumb {
    display: none; /* Removed via functions.php hook too */
}

/* ============================================================
   20. Scroll Animations
   ============================================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   21. Prose / Content Styles (for page.php + single.php)
   ============================================================ */

.tg-prose {
    color: var(--text-muted);
    font-size: .97rem;
    line-height: 1.78;
}

.tg-prose h1,
.tg-prose h2,
.tg-prose h3,
.tg-prose h4,
.tg-prose h5,
.tg-prose h6 {
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: .6em;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.tg-prose h1 { font-size: 2rem; }
.tg-prose h2 { font-size: 1.5rem; }
.tg-prose h3 { font-size: 1.2rem; }
.tg-prose h4 { font-size: 1.05rem; }

.tg-prose p {
    margin-bottom: 1.4em;
}

.tg-prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.tg-prose a:hover {
    color: var(--primary-dark);
}

.tg-prose ul,
.tg-prose ol {
    margin-bottom: 1.4em;
    padding-left: 1.6em;
    list-style: revert;
}

.tg-prose li {
    margin-bottom: .5em;
}

.tg-prose blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(79,70,229,.04);
    margin: 1.6em 0;
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-primary);
}

.tg-prose blockquote p:last-child {
    margin-bottom: 0;
}

.tg-prose pre,
.tg-prose code {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: .88em;
}

.tg-prose pre {
    padding: 16px 18px;
    overflow-x: auto;
    margin-bottom: 1.4em;
}

.tg-prose code {
    padding: 2px 6px;
}

.tg-prose pre code {
    background: none;
    border: none;
    padding: 0;
}

.tg-prose img {
    border-radius: var(--radius);
    margin-bottom: 1.4em;
}

.tg-prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

.tg-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4em;
    font-size: .92em;
}

.tg-prose th,
.tg-prose td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.tg-prose th {
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-section);
}

/* ============================================================
   22. Media Queries
   ============================================================ */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
    .tg-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .tg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .tg-stats-grid {
        flex-wrap: wrap;
    }

    .tg-stat-item {
        flex: 1 1 40%;
        min-width: 160px;
    }

    .tg-stat-divider {
        display: none;
    }

    .tg-how-steps::before {
        display: none;
    }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {

    /* Spacing */
    .tg-section {
        padding: 72px 0;
    }

    .tg-container {
        padding: 0 18px;
    }

    /* Nav — mobile */
    .tg-nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(13,10,46,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 2px;
        z-index: 999;
        box-shadow: 0 20px 40px rgba(0,0,0,.5);
    }

    .tg-nav-links.open {
        display: flex;
    }

    .tg-hamburger {
        display: flex;
    }

    .tg-nav-link {
        padding: 12px 14px;
        border-radius: 10px;
        font-size: .95rem;
    }

    .tg-dropdown-menu {
        position: static;
        transform: none;
        animation: none;
        box-shadow: none;
        background: rgba(255,255,255,.05);
        border: none;
        border-radius: 8px;
        margin-top: 4px;
    }

    .tg-nav-dropdown:hover .tg-dropdown-menu {
        display: none;
    }

    .tg-nav-dropdown.open .tg-dropdown-menu,
    .tg-dropdown-menu.open {
        display: block;
    }

    /* Hero */
    .tg-hero {
        padding: 100px 0 60px;
        min-height: 90vh;
    }

    .tg-hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .tg-hero-proof {
        flex-direction: column;
        gap: 10px;
    }

    .tg-buy-trust {
        gap: 16px;
    }

    /* Stats */
    .tg-stat-item {
        flex: 1 1 45%;
        padding: 28px 16px;
    }

    /* How It Works */
    .tg-how-steps {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 16px;
    }

    .tg-how-steps::before {
        display: none;
    }

    /* Features */
    .tg-features-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Footer */
    .tg-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tg-footer-brand {
        order: -1;
    }

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

    /* Page */
    .tg-page-article {
        padding: 32px 24px;
    }

    .tg-single-header,
    .tg-single-content,
    .tg-single-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Post nav */
    .tg-post-nav {
        grid-template-columns: 1fr;
    }

    /* 404 */
    .tg-404-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Section headers */
    .tg-section-header {
        margin-bottom: 40px;
    }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {

    .tg-hero-title {
        font-size: 2.4rem;
        letter-spacing: -.03em;
    }

    .tg-hero-sub {
        font-size: 1rem;
    }

    .tg-btn-hero {
        padding: 14px 26px;
        font-size: .97rem;
    }

    .tg-stat-item {
        padding: 22px 12px;
    }

    .tg-stat-number {
        font-size: 1.5rem;
    }

    .tg-stats-grid {
        flex-direction: column;
    }

    .tg-stat-item {
        flex: none;
        border-bottom: 1px solid var(--border);
    }

    .tg-stat-item:last-child {
        border-bottom: none;
    }

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

    .tg-cta-title {
        font-size: 1.8rem;
    }

    .tg-page-article {
        padding: 24px 18px;
    }

    .tg-footer-main {
        padding: 48px 0 32px;
    }
}
