=== GT BOGO Engine PRO — Enterprise Edition ===
Contributors: graphictshirts
Tags: bogo, buy one get one, woocommerce discount, free gift, promotional pricing
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 5.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Buy X Get Y automation for WooCommerce. 200 PRO Packs, 48 Superpowers, white-label emails, enterprise analytics.

== Description ==

**GT BOGO Engine** is the most powerful BOGO (Buy X Get Y) plugin for WooCommerce. Designed for serious stores that need more than a basic discount plugin — it gives you complete enterprise-grade control over promotional pricing, applied automatically at checkout with zero friction for your customers.

No coupon codes. No manual intervention. Every deal fires automatically.

= Free Features =

* **Free Core Rule** — Configure a global Buy X Get Y rule with category and product targeting, priority, and scheduling
* **Product Badges** — Display BOGO badges on qualifying products in your shop
* **Cart Progress Bar** — Show customers how close they are to unlocking a deal
* Full WooCommerce compatibility (Simple, Variable, Grouped products)
* Lightweight — no bloat, no page speed impact

= PRO Features =

**200 Industry Pro Packs**
Ready-built rule sets covering every retail vertical — Food & Dining, Fashion & Apparel, Beauty & Wellness, Automotive, Tech & Software, Health, Education, Travel, Events, Sports & Fitness, B2B Wholesale, and more. Each pack includes 10 enterprise-grade BOGO rules ready to activate in one click. Rules are imported from purchased packs — manual rule creation is not available in PRO.

**Bundle License System**
* Starter Revenue Bundle — 5 packs
* Growth Acceleration Bundle — 9 packs
* Complete BOGO Arsenal — 15 packs
* One license key unlocks all packs in your bundle automatically
* License is domain-locked and non-transferable between owners
* Self-service domain transfer available at graphictshirts.shop/bogo

**Rule Management**
* Import rule templates in one click from the Pro Packs vault
* Priority ordering and conflict resolution across all imported rules
* Full rule conditions — category, product, cart value, customer type, user role targeting
* Category and product targeting on the free core rule
* Rule scheduling with start and end dates on all rules including the free core rule

**Enterprise Targeting**
* Customer Segmentation — First-time, returning, VIP, spend-based targeting
* Geographic Targeting — Country-level include/exclude lists
* Product Variant Rules — Target specific sizes, colors, or attributes
* Deal Lockout — Prevent stacking on sale items, set max discount caps

**Campaign Management**
* Campaign Scheduler — Auto-activate and deactivate rules by date and time
* A/B Testing — Split-test two rules and measure winner by conversion and revenue
* Multi-Currency — Override deal thresholds per currency (WPML/Aelia/WMC compatible)
* Deal Page Manager — Auto-generate a customer-facing deals page

**White-Label Customer Email System**
10 fully designed transactional email templates sent to your customers under your store brand. GT BOGO Engine is never visible to your customers. Emails include:

* BOGO Deal Confirmation
* Loyalty Tier Upgrade
* Streak Bonus Applied
* Referral Reward Earned
* VIP Status Unlocked
* Free Gift Added
* Deal Expiry Warning
* Cart Abandonment Nudge
* Threshold Almost Reached
* Winback Campaign

All emails use your store name, logo, and accent color pulled automatically from WooCommerce settings. Sent via wp_mail() with optional Mailchimp/Klaviyo extension.

**Analytics & Reporting**
* Real-time Dashboard — Live cart monitor, activity feed, KPI strip with 60-second polling
* Analytics — Revenue influenced, rules fired, orders affected, top rule leaderboard
* ROI Projector — Forecast revenue impact before launching a campaign
* PDF Export — Generate branded professional reports with dark navy UI
* Audit Log — Full history of rule and license changes

**Integrations & Developer Tools**
* REST API — 5 endpoints for headless WooCommerce, mobile apps, and Zapier
* Import / Export — Full JSON backup and restore with merge or replace mode
* Mailchimp & Klaviyo — Tag customers and fire events on deal redemption
* Webhook support — Fire POST requests on rule activation and redemption
* White Label — Rename the plugin, hide branding, set agency support URLs

**48 Superpowers**
28 visual superpowers: Progress Bar, Cart Recommendations, Announcement Bar, Badge Generator, Countdown Timer, Exit Intent, Cart Recovery, Scarcity Bar, Deal Unlock, Mobile Drawer, VIP Badge, WhatsApp Commerce, Smart Popup, Geo Banner, Bundle Spotlight, Quick Add, Social Proof, Deal Share, Savings Calculator, Email Notifications, Loyalty Widget, Savings History, Bundle Configurator, Deal Comparison, Referral Widget, Abandon Nudge, Dynamic Pricing, Shipping Progress.

16 backend intelligence engines: LTV Scoring, Inventory Intelligence, Revenue Guard, Webhook Triggers, Subscription Detection, Birthday Intelligence, Anniversary Intelligence, Post-Purchase Intelligence, Multi-Currency Optimizer, Streak Bonus, Cohort Intelligence, Schedule Executor, Customer Profile Tracker, VIP Detection, White Label, Referrals.

3 behavioral superpowers: FOMO, Nudges, Auto-Add. Plus AI Cart Intelligence embedded in Cart Recommendations.

All superpowers have per-superpower enable/disable toggles, intensity settings (Subtle/Moderate/Bold), and instant AJAX save with no page reload required.

= Why GT BOGO Engine? =

* **200 Pro Packs** — The largest library of ready-built BOGO rule sets for any industry
* **Luxury brand safe** — No hardcoded fonts or colors. Everything inherits your active theme
* **Zero customer friction** — Discounts apply silently in the cart. No codes, no pop-ups required
* **White-label emails** — Your customers only ever see your store brand, never GT BOGO Engine
* **Developer friendly** — Full REST API, import/export, webhook support, and WP-Cron scheduling
* **Conflict-free** — Built-in conflict resolver detects and manages overlapping rules automatically

= Purchase PRO =

Visit [graphictshirts.shop/bogo](https://graphictshirts.shop/bogo/) to purchase a PRO license or any of the 200 industry Pro Packs.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install via the WordPress plugin installer
2. Activate the plugin through the **Plugins** menu
3. Navigate to **GT BOGO Engine** in your WordPress admin sidebar
4. Configure your free global rule under **Free Core Rule**
5. Optionally activate your PRO license under **License** to unlock Pro Pack imports and all enterprise features

== Frequently Asked Questions ==

= Does this work with variable products? =
Yes. GT BOGO Engine supports Simple, Variable, Grouped, and External product types. Variant Rules let you target specific attribute combinations.

= Will it conflict with WooCommerce coupons? =
By default BOGO rules and coupons can coexist. Use Deal Lockout to prevent stacking if desired.

= Does it work with WPML or multi-currency plugins? =
Yes. Multi-Currency supports WPML/WooCommerce Multilingual, Aelia Currency Switcher, and WooCommerce Currency Switcher.

= Do my customers see GT BOGO Engine branding? =
Never. All customer-facing text, emails, cart notices, and checkout line items use your store name. GT BOGO Engine is completely invisible to your customers.

= How do Pro Packs work? =
Purchase a Pro Pack or Bundle from graphictshirts.shop/bogo. Your license key is emailed instantly. Enter the key in the plugin and your packs appear in the vault ready to import with one click. Rules cannot be created manually — all rules come from purchased Pro Packs.

= Can I transfer my license to a new domain? =
Yes. Use the self-service transfer form at graphictshirts.shop/bogo/#license-transfer. Transfers are limited to once every 90 days. A verification code is sent to your purchase email. After transferring, re-download your Pro Packs from the My Packs page.

= Is customer data stored? =
No customer PII is stored by the plugin. Analytics track aggregate metrics only.

= Will this slow down my store? =
No. Rules are cached via WordPress transients. The cart calculation hook runs only on cart and checkout pages.

== Screenshots ==

1. Dashboard — live cart monitor, KPI strip, and real-time activity feed
2. PRO Rules / Packs — 200 industry Pro Packs with bundle purchasing
3. Free Core Rule — global rule with category, product, and scheduling controls
4. Campaign Scheduler — schedule rules to fire automatically by date and time
5. Analytics — revenue influenced, rules fired, ROI tracking
6. Superpowers Hub — 48 smart selling tools with instant AJAX save
7. Settings — customer email toggle and accent color picker
8. REST API — headless WooCommerce integration

== Changelog ==

= 5.0.0 =
* Improved: Your rules, settings, and customer loyalty data are now kept if you uninstall and reinstall — nothing is removed unless you turn on "Remove all data on uninstall" in Settings
* Added: Statement-descriptor note on purchase confirmation emails — clarifies the card or PayPal charge appears as GRAPHIC T-SHIRTS
* Major: Version 5.0.0 — full platform release
* Changed: PRO license price is $499/year
* Added: Live analytics grain tabs — Daily, Weekly, Monthly with YoY overlay and 6M/1Y/2Y periods
* Added: Inventory Intelligence Alerts — hourly scan, auto-pause/resume rules on stock changes
* Added: Orchestrator x live analytics — revenue_influenced_today, bogo_conversion_rate, aov_lift_current signals
* Added: Deal Banner archetype-driven messages — exclusivity, urgency, social proof, value by visitor type
* Added: Cart abandonment coaching card on dashboard — guides store owners on first rule activation
* Added: Download tracking with full geographic demographics (city, region, country, ISP, lat/lon)
* Changed: PRO plugin ZIP renamed to gt-bogo-engine-pro-{version}.zip
* Fixed: HPOS compatibility — referrals.php and smart-checkout.php order meta fully migrated
* Fixed: Security hardening — capability checks on live-feed, customer-portal, store-health-monitor
* Fixed: Lite migration source whitelist cleaned — accepts gt-bogo-engine and gt-bogo-engine-bogo-deals-for-woocommerce
* Security: Floor version raised to 5.0.0

= 4.9.8 =
* Added: Mini-Cart Badge superpower — live deal status in WooCommerce mini-cart and off-canvas drawer (active: green dot + savings, inactive: gray dot + add N more)
* Added: Lite to PRO settings migration — when Lite is uninstalled and PRO activated, all rules, settings, and configuration are automatically imported
* Added: Full store audit in AI Gap Analyzer — store health diagnostics (missing images, out-of-stock, SEO plugin, schema markup, llms.txt, sitemap)
* Added: AI Performance Coach weekly report now includes store health and SEO context
* Added: Mini-Cart Badge registered in Superpowers page (49th superpower)
* Improved: All AI intelligence prompts upgraded with richer store scan data
* Updated: Superpower count 48 → 49 across all files, sales pages, language pages, and llms.txt files
* Fixed: Build script superpower count gate updated to 49 — shows deal status (active/inactive) in WooCommerce mini-cart and off-canvas drawer with live cart fragments
* Added: Full store audit in AI Deal Advisor — scans products, categories, price range, SEO plugin, schema markup, llms.txt, sitemap, SSL, missing images, out-of-stock count, coupon usage, and more
* Added: AI Gap Analyzer now includes store health diagnostics and SEO recommendations alongside deal gap analysis
* Added: AI Performance Coach weekly report now includes store health and SEO context
* Improved: All AI intelligence prompts upgraded with richer store data for more accurate recommendations
* Updated: 49 intelligence superpowers (Mini-Cart Badge added to Visual Frontend group)
* Performance: Free rule synth in cart engine now reads from single batched option (gtbogo_free_rule) — reduces 9 individual get_option() calls to 1 per cart recalculation
* Performance: Rules engine options (segments, geo targeting, conditions, deal lockout, variant rules, currency overrides) now primed once per request via static cache — eliminates up to 6 redundant DB reads per cart evaluation
* Added: Deal Banner superpower — dismissible site-wide BOGO announcement bar. Orchestrator intensity controls page scope (subtle/moderate/bold). AI Copywriter integration. sessionStorage dismiss. Signal Bus wired.
* Improved: AI Copywriter now covers all 50 visual superpowers including Deal Banner and Mini-Cart Badge
* Fixed: System Status page title — clean uppercase SYSTEM STATUS, emoji removed
* Added: Dashboard coaching card — shows when a rule is live but no orders recorded yet, directs store owner to enable key superpowers
* Updated: Superpower count 49 → 50 across all files, build gate, and references
* Added: handle_get_product_inventory AJAX handler — returns live stock status, sales velocity (30d), inventory pressure signal (0-5), variation count for up to 100 product IDs per request
* Added: handle_export_config AJAX handler — exports complete PRO configuration as JSON (rules, SP toggles, Orchestrator settings, segments, geo targeting — API keys excluded)
* Added: handle_import_config AJAX handler — strict whitelist import with field-level type coercion, ID-only arrays, discount cap 0-100%, Orchestrator intensity 0.0-1.0 float validation
* Added: PRO Rules Manager (tab: rules-manager) — enterprise dual-section rules dashboard. Section 1: unlimited custom inventory rules with full AJAX editor (name, buy/get, discount, categories, products, tags, scheduling, exclude sale, priority conflict detection, per-rule analytics). Section 2: PRO pack rules read-only list (toggle only, locked, pack source badge). 4 AJAX handlers: save, delete, toggle, get.
* Added: tags + exclude_sale columns to gtbogo_rules table with automatic migration on upgrade
* Added: DB setup migration for tags (text NULL) and exclude_sale (tinyint DEFAULT 0)
* Added: Cart abandonment coaching card on dashboard — guides store owners to enable superpowers when rule is live but no conversions yet
* Fixed: Lite migration source whitelist — removed internal build slugs, now accepts gt-bogo-engine and gt-bogo-engine-bogo-deals-for-woocommerce only
* Changed: PRO plugin ZIP renamed to gt-bogo-engine-pro-{version}.zip for clear PRO branding
* Fixed: Lite migration — PRO now accepts gt-bogo-engine short source slug from Lite uninstall
* Compatibility: HPOS audit complete — referrals.php and smart-checkout.php order meta migrated to order->get_meta() / update_meta_data() / save()
* Security: Capability check added to live-feed AJAX handlers (manage_woocommerce)
* Security: Capability check added to customer-portal AJAX handler (read)
* Security: parse_url() replaced with wp_parse_url() in ai-copywriter.php
* Security: wp_unslash() added to int casts in engine-ajax.php
* Added: Wave 7.4 — Deal Banner x Orchestrator: dynamic message by visitor archetype (VIP/platinum=exclusivity, at_risk/high_intent=urgency, new_visitor=social_proof, price_sensitive=value)
* Added: Wave 7.3 — Orchestrator x Live Analytics: 3 Signal Bus signals fed from analytics (revenue_influenced_today, bogo_conversion_rate, aov_lift_current), 5-min cache, Revenue Guard AOV lift gate
* Added: Wave 7.1 — Analytics grain tabs Daily/Weekly/Monthly view switching with auto-selection based on period
* Added: Extended period tabs — 6M (180d), 1Y (365d), 2Y (730d)
* Added: Year-over-year comparison overlay on analytics chart (dashed line, prior year data)
* Added: Weekly grain query using YEARWEEK(), monthly grain using DATE_FORMAT Y-m
* Fixed: Analytics chart CDN script replaced with wp_enqueue_script
* Added: Analytics grain tabs — Daily/Weekly/Monthly view switching with auto-selection based on period
* Added: Extended period tabs — 6M (180d), 1Y (365d), 2Y (730d)
* Added: Year-over-year comparison overlay on analytics chart (dashed line, prior year data)
* Added: Weekly grain query using YEARWEEK(), monthly grain using DATE_FORMAT Y-m
* Fixed: Analytics chart CDN script replaced with wp_enqueue_script
* Fixed: Migration snapshot option key renamed gt_bogo_migration_snapshot -> gtbogo_migration_snapshot for consistent prefix
* Fixed: PRO migration now accepts gt-bogo-engine-bogo-deals-for-woocommerce as valid Lite source slug
* Added: Inventory Intelligence Alerts (Wave 7.2) — hourly cron scan of all active rule-targeted products, admin notice on OOS/draft detection, auto-pause rules when products unavailable (opt-in), auto-resume when products return to stock, professional HTML email alerts via GT BOGO Email System wrapper (send_inventory_oos_alert + send_inventory_resume_alert)

= 4.9.7 =
* Improved: Plugin listing information updated for accuracy


= 4.9.6 =
* Fixed: PRO license price corrected to $499/year across all plugin pages and emails
* Fixed: Dashboard health score now accurately reflects store configuration
* Fixed: Internal diagnostic log no longer fills up on busy stores


= 4.9.5 =
* Improved: Documentation page now shows your live rule configuration at a glance — name, buy/get structure, discount, and minimum cart
* Improved: Quick Start panel in the guide lets you enable your top four selling tools without leaving the page
* Improved: System Status page title cleaned up


= 4.9.4 =
* Improved: Dashboard now shows a coaching card when your deal is live but no orders have come in yet — with time-since-activation and actionable next steps
* Improved: Internal code quality hardening across analytics and database query layers

= 4.9.3 =
* Improved: Cart progress bar now shows how many customers claimed the deal this month

= 4.9.2 =
* Improved: Enhanced protection for your store and customer data
* Improved: Analytics accuracy on stores hosted outside the UTC timezone
* Improved: Admin notice when optional server configuration affects AI advisor key storage


= 4.9.1 =
* Improved: AI features optimized for better daily reliability across all stores
* Improved: Admin panel branding updated to PRO Edition

= 4.9.0 =
* New: Brand Intelligence — automatically analyzes your store and extracts brand voice on activation
* New: Strict GDPR Mode — visitor intelligence only collected after explicit tracking consent
* New: Luxury Copy Constitution — enforces premium copy standards, bans all discount language
* New: Brand voice powers all 6 AI features — copy, cart, gap analysis, coaching, recommendations
* Improved: AI features now re-analyze your site to improve over time
* Security: expanded code protection to all superpowers and core intelligence classes
* Pricing: PRO license updated to $499/year

= 4.8.3 =
* Security: Minimum supported version raised to 4.8.3 — older installs must update
* Fixed: Security hardening — WordPress error log no longer bundled in plugin ZIP
* Fixed: All 49 superpowers now accurately described in plugin listing
* Fixed: Admin JavaScript alerts replaced with non-blocking WordPress notices
* Fixed: PHP and WordPress version baselines corrected in code quality tools
* Fixed: Architecture hardening — removed build-environment paths from production code
* Improved: AI features now include monthly token budgets to ensure consistent performance

= 4.8.2 =
* Fixed: Birthday deal emails now send automatically on customer birthdays
* Fixed: Flash sale alert emails now trigger correctly
* Fixed: Revenue Guard now actively protects margins during discount application
* Fixed: Cart abandonment email de-duplication resolved
* Fixed: Urgency copy updated for regulatory compliance

= 4.8.1 =
* Fixed: Architecture hardening — removed build-environment paths from production code
* Fixed: WhatsApp Commerce button color now uses CSS token for luxury compliance

= 4.8.0 =
* Improved: AI copy system — 8 superpowers display AI-generated copy with intelligent fallback
* Improved: PHPUnit test scaffold for enterprise quality assurance
* Changed: Minimum PHP raised to 8.2, WordPress to 6.4, WooCommerce to 8.2

= 4.7.0 =
* Improved: Extended cache compatibility (Kinsta, WP Engine, SiteGround, Nginx Helper)
* Improved: Payment gateway visual positioning (PayPal, Stripe, Apple Pay, Google Pay)

= 4.6.0 =
* Improved: Per-feature AI rate limiting with independent daily quotas
* Improved: AI gap type validation prevents hallucinated recommendations
* Improved: Margin contribution uses real Cost of Goods when available

= 4.5.0 =
* Improved: Full HPOS (High-Performance Order Storage) compatibility across all superpowers and intelligence classes
* Improved: All date calculations now use UTC consistently for timezone-correct operation
* Improved: Complete data cleanup on plugin uninstall (tables, user meta, order meta, cron hooks)
* Improved: Code quality — removed 106 unnecessary development function overrides
* Fixed: Stock velocity scan handler now properly secured with nonce verification
* Fixed: Social Proof time calculations now use UTC for accurate 7-day windows

= 4.4.9 =
* New: AI Intelligence proxy — all PRO customers worldwide get AI features powered by GT BOGO Engine service, no API key required
* Security: Anthropic API key stored server-side only, never distributed in plugin code


= 4.4.8 =
* Improved: Internal license tier architecture for future multi-tier support
* Improved: AI configuration security hardening


= 4.4.7 =
* Fixed: AI usage tracking accuracy improved
* Fixed: AI daily request quota now only counts successful API calls
* Improved: Internal timestamp handling modernized across all components


= 4.4.6 =
* Improved: Build integrity — white-label verification gate added to build pipeline
* Improved: Security — Google TLS ECDSA certificate chain compatibility verified
* Improved: Stability — background task queue cleaned, Faire integration removed


= 4.4.5 =
* Improved: WordPress Coding Standards compliance sweep across all files
* Improved: Security hardening — all input sanitization and output escaping verified
* Improved: Multisite network activation support


= 4.4.4 =
* Fixed: Fatal TypeError in Loyalty Accelerator — loyalty stage signal now correctly mapped to numeric scale


= 4.4.2 =
* Security: pack verification now enforces domain binding at the server level
* Security: imported packs cannot be reused across different store domains


= 4.4.1 =
* Security: full PHP file manifest scanning added to daily integrity check
* Security: integrity sentinel extended to 96 bytes covering all critical files
* Security: version kill switch embedded directly in obfuscated protection layer
* Security: older versions bricked via server-side floor version enforcement
* Security: floor version system — controlled independently of release cycle


= 4.4.0 =
* Security hardened: dual-layer tamper detection now covers both the main plugin file and the protection system itself
* Attempted tampering now permanently bans the offending IP address
* Plugin is immediately suspended on any unauthorized modification, directing users to re-download from the official source
* Admin protection JavaScript extracted to obfuscated template for stronger code protection
* IP blacklist database table added for permanent ban enforcement


= 4.3.9 =
* Mobile optimizer refactored for improved compatibility with obfuscated builds
* Sticky savings badge now inherits theme accent color via CSS token system
* Mobile detection script and device CSS variables extracted to separate template files


= 4.3.8 =
* Email dedup guard added to all 26 qualifying email types — zero duplicate emails per customer per event
* Accessibility: prefers-reduced-motion media query added to all animated superpowers
* License class documentation improved for developer clarity
* Superpower count verified correct across all admin and public-facing locations


= 4.3.7 =
* Improved compatibility with WP Engine and SiteGround hosting — cart and checkout pages are now proactively excluded from caching on these platforms
* Active WooCommerce Subscriptions customers are now automatically excluded from free rule deals to prevent discount conflicts
* Active subscribers are also excluded from optional promotional discounts in the cart engine


= 4.3.6 =
* AI features now have individual daily usage limits for more balanced and reliable performance
* AI deal gap analysis now validates all recommendations before display, discarding any unrecognised suggestion types
* AI decision comparison log capacity increased for improved admin analysis coverage


= 4.3.5 =
* Improved compatibility with WooCommerce High-Performance Order Storage (HPOS)
* Analytics, loyalty, segmentation, and revenue reporting now work correctly on all WooCommerce configurations
* Predictive timing engine updated to support all WooCommerce storage modes
* Stock intelligence and bundle analysis updated for full WooCommerce compatibility
* B2B pricing engine and customer portal updated for all WooCommerce configurations
* AI pack recommender and gap analyzer updated for full WooCommerce compatibility


= 4.3.4 =
* Added: HPOS (High-Performance Order Storage) compatibility layer — plugin now supports WooCommerce custom orders table
* Improved: Analytics, referral reporting, and customer intelligence modules updated for HPOS dual-mode operation
* Improved: Admin customer grid now uses optimized HPOS query path when available
* Added: Centralized order query helper supporting both legacy and HPOS table structures


= 4.3.3 =
* Improved: Code standards compliance — all superpower modules now meet WordPress coding standards with zero blanket suppressions
* Improved: Superpower class declarations use precise, targeted compliance annotations instead of broad suppressions
* Fixed: Silence file cleaned of unnecessary directives


= 4.3.2 =
* Improved: Significant performance improvement — active rule data now shared across all features, reducing database queries per page load
* Improved: Code quality across all 28 superpower modules — reduced unnecessary directives by 58%
* Fixed: Version 3 compatibility directives removed from superpower modules
* Added: Centralized rule cache class for improved architecture and performance


= 4.3.0 =
* Security: License activation and verification now fully hardened across all code paths
* Improved: HPOS compatibility verified — no changes required for current WooCommerce configuration


= 4.2.0 =
* Fixed: Free rule conversions and deal revenue now tracked correctly in Rule Analytics after saving the rule
* Improved: Codebase quality audit completed — license system architecture documented, option loading confirmed efficient
* Improved: AI audit log now enforces 90-day retention automatically


= 4.1.0 =
* Improved: AI systems now initialize more reliably across all store configurations
* Fixed: AI Cart Intelligence works correctly for guest shoppers
* Improved: AI audit log automatically maintains itself — older entries cleaned up on schedule
* Fixed: Payback velocity calculation now reflects accurate deal performance data


= 4.0.3 =
* Performance: Cart page runs fewer database queries on stores with category and tag filtering rules
* Performance: Rule analytics segment data now loads with a single database read
* Performance: Customer segment classification now uses direct database counts instead of loading full order collections
* Performance: LTV scores refresh correctly after every order — no stale data on active stores


= 4.0.2 (patch) =
* Improved: AI intelligence systems operate more reliably across different store configurations
* Fixed: Background analytics and reporting now work correctly on all server setups
* Security: Webhook URLs restricted to secure connections only


= 4.0.2 =
* Improved: Security hardening across license management and data handling
* Fixed: Daily analytics stats now display accurate figures regardless of server timezone configuration
* Fixed: Referral fraud detection now correctly identifies customer origin on stores using CDN or proxy services


= 4.0.1 =
* Fixed: Free rule enable and disable toggle now takes effect immediately without requiring a page refresh
* Fixed: Free rule discount now displays correctly in the WooCommerce Blocks cart
* Fixed: Free rule conversions and impressions now appear correctly in Rule Analytics
* Fixed: Deal revenue figures in analytics now accurately reflect free rule discount amounts


= 4.0.0 =
* New: AI Copywriter — define your brand voice once and AI writes copy for all 31 superpowers in that voice. Brand voice profile editor, batch generation, and per-superpower copy management table
* New: AI Gap Analyzer — scans your active deals against 200 PRO packs and identifies missing seasonal, lifecycle, archetype, AOV, category, and retention opportunities with severity scoring and pack recommendations
* New: AI Performance Coach — weekly AI-generated report with revenue recommendations, underperforming deal flags, and customer outreach suggestions
* New: AI Cart Intelligence — personalised product recommendations in the cart based on real-time customer signals, purchase history, and margin constraints
* New: Intelligence Engine Controls — toggle between classic logic, shadow mode, and full AI decision-making with rollout percentage control and comparison logging
* New: Attribution Engine — tracks every superpower impression across customer sessions with 6 attribution models (First Touch, Last Touch, Linear, Time Decay, U-Shape, W-Shape)
* New: Enterprise Pack Recommendations — AI-powered pack matching based on store owner's promotional goal with fit scores and purchase links
* Improved: AI Intelligence page now includes all 6 AI superpowers with live status badges, usage meter, audit log, and direct API key management for Anthropic and OpenRouter
* Improved: Documentation page updated with full AI Intelligence section explaining every superpower to store owners
* Security: All AI requests locked to promotional intelligence only — system prompt boundary guard prevents off-topic use
* Security: License key transmission security hardened
* Fixed: Downloads dashboard shows IP addresses, countries with flags, cities, ISPs, and install tracking grid
* Fixed: Version floor system — all installs below v4.0.0 auto-deactivated with admin notice
* Performance: CSS tokens used throughout Theme Intelligence branches — no hardcoded pixel values
* Performance: Touch targets unified to 44px across all breakpoints (WCAG 2.5.5 compliant)

= 3.29.0 =
* Security: License key transmission security hardened
* Improved: AI Pack Recommender now scans all 200 PRO packs (white-label config excluded)
* Improved: AI Engine has mandatory system prompt boundary guard — locked to promotional intelligence only
* New: Enterprise Pack Recommendations UI on AI Intelligence page
* New: AI Intelligence section added to Documentation page

= 3.28.0 =
* Fixed: Abandon Nudge, Dynamic Pricing, and Shipping Progress superpowers now active on all stores
* Fixed: All 8 AI Intelligence features now initialize correctly on every page load
* Fixed: Timestamp accuracy across lifecycle intelligence, loyalty, license, and email systems
* Fixed: Pack recommender now works on all customer installs, not just the build server
* Security: Input validation hardened across 6 admin intelligence pages


= 3.27.9 =
* New: AI Intelligence page — connect Anthropic and OpenRouter API keys, monitor usage and rate limits, audit all AI API calls
* New: OpenRouter support — multi-model gateway with 200+ models for Pack Recommender, Cart Intelligence, and Performance Coach
* New: AI Superpowers grid — 6 intelligence features with live active/needs-key status badges
* New: AI Intelligence added to sidebar under INTELLIGENCE (PRO-gated)
* Improved: Sales page hero cards now consistent across all 16 language pages with correct stat counts
* Improved: Polish sales page fully translated including code-card blocks
* Fixed: All language pages now show correct 48 superpower stat count
* Fixed: Stale SPA navigation overlay removed from all language pages
* Fixed: Version floor system — all installs below v3.28.0 are auto-deactivated for security
* Fixed: GT_BOGO_ENGINE_VERSION now correctly mirrors GT_BOGO_VERSION
* Security: Hard floor kill switch — old plugin versions self-deactivate with admin notice
* Security: Third-party code cleanup completed
* Security: Auto-update system enforces minimum version from server endpoint

= 3.27.0 =
* New: AI Copywriter — define your brand voice once and AI generates copy for all 49 superpowers in that voice
* New: Batch generation across all superpowers with one click — copy that sounds like your brand, not generic defaults
* New: Copy Management table — preview, apply, or reset AI copy per superpower

= 3.26.0 =
* New: Enterprise A/B Rule Testing — compare two BOGO rules in live traffic with sticky customer assignment, chi‑square significance, and one‑click winner promotion
* Improved: A/B testing now uses chi‑square statistics for more accurate significance detection
* New: Sticky DB‑backed customer assignment ensures every customer always sees the same variant across sessions
* Improved: Winner promotion automatically deactivates the losing rule

= 3.25.6 =
* New: WooCommerce Subscriptions LTV — detects subscription products in cart and adjusts lifetime value calculations for recurring revenue
* Improved: Subscription customers get smarter discount offers based on churn rate, ARPU, and expected retention
* New: Average subscription duration tracking from real cancelled subscription data
* Improved: Subscription LTV gracefully returns zero when WooCommerce Subscriptions is not active

= 3.25.5 =
* New: Time‑Window LTV — see customer value at 30, 90, 180, and 365 days for precise loyalty segmentation
* New: Cohort LTV analytics — compare how different customer cohorts perform over time
* New: Payback Velocity — see exactly how quickly your store recovers the license cost from BOGO‑influenced orders

= 3.25.4 =
* New: Association Rule Mining — the plugin now discovers which products customers buy together, using real order history
* New: Lift and confidence scoring for every product pair — see exactly which bundles will work best
* Improved: Smarter bundle recommendations based on statistical co‑purchase data
* Performance: FP‑Growth algorithm runs daily at off‑peak hours for zero impact on store speed

= 3.25.3 =
* New: Decision Log — full audit trail of every BOGO discount decision, with filters, signal inspection, and CSV export
* New: Critic Validation Layer — seven automatic checks protect every discount before it reaches the cart
* New: Outcome Capture closed loop — tracks which discounts converted, feeds performance data back into the intelligence engine
* Improved: Provenance system now records complete signal state for every discount decision
* Improved: Duplicate classmap entries cleaned up for stability
* Feature: GTBOGO_PROVENANCE flag enables decision tracking without touching wp-config.php

= 3.25.0 =
* New: Velocity‑to‑Zero Inventory Intelligence — automatically detects which products are selling fast or slow and adjusts promotions to protect your stock
* Improved: Revenue Guard now includes stock‑risk protection, pausing discounts when inventory is critically low
* New: Inventory Velocity dashboard in Store Health — see which products are running low at a glance
* New: Smart stock‑risk signal feeds into the promotion engine so your best‑selling items don't get over‑discounted
* Performance: faster, lighter cart calculations
* Stability: enterprise‑grade database tracking for every product's days‑to‑zero

= 3.24.4 =
* Improved: Plugin updates are now applied automatically in the background — stores always run the latest version
* Improved: Out-of-date installations are prompted to update with a one-click notice in the WordPress dashboard
* Improved: Store Health Monitor loads reliably from all dashboard navigation paths
* Improved: Smoother experience on the GT BOGO Engine product pages across all 16 supported languages
* Fixed: Minor display issue in the plugin status bar — version number now shows correctly

= 3.24.3 =
* Improved: Admin interface uses the Inter typeface throughout — cleaner, more modern look
* Fixed: Silent plugin failure on some server configurations — now resolved
* Fixed: Rare edge case where the build process could produce an invalid plugin file
* Added: Quick-access links (Dashboard, Superpowers, PRO Packs, Settings, License) directly on the WordPress Plugins page

= 3.24.2 =
* Added: Rule Performance tab — see conversion rates and revenue contribution per deal rule
* Added: A/B test lift report — compare deal performance against a control group with statistical confidence
* Added: Rule leaderboard ranked by accepted conversions — instantly see which deals are working hardest

= 3.24.1 =
* Added: Critic Validation Layer — enterprise-grade guard that reviews every discount before it reaches the cart
* Added: Bounds checking — prevents discounts outside the configured range from ever firing
* Added: Fatigue guard — the same deal cannot fire repeatedly for the same customer within a configurable window
* Added: Duplicate guard — prevents race conditions from firing the same deal twice in rapid succession
* Improved: Blocked deals are logged with the exact reason for easy troubleshooting

= 3.24.0 =
* Added: Decision Log — view every discount decision with full context, scores, and outcome in a dedicated admin tab
* Added: 90-day decision history with daily cleanup
* Added: Toggle to pause decision logging without disabling the plugin

= 3.23.3 =
* Fixed: Plugin activation failure on certain server configurations
* Fixed: Build process improvements for more reliable deployments
* Fixed: Health probe warmup — prevents false rollbacks on servers with cold cache
* Fixed: Sales page now always shows the current installed version dynamically

= 3.23.2 =
* Fixed: Sales page version display — always shows the latest version automatically
* Performance: Removed unused components — shop page loads up to 32% faster
* Performance: Eliminated server process hangs that caused occasional 520 errors
* Security: Caching layer re-enabled after server upgrade

= 3.23.1 =
* Fixed: 28 code quality improvements for WordPress compatibility
* Fixed: Database compatibility update for WordPress 6.0+

= 3.23.0 =
* Security: All 201 PRO pack files are now cryptographically signed — tampered packs are automatically rejected on import
* Security: Pack rule limits enforced at import level
* Security: License verification hardened
* Added: 11 additional intelligence pages now show a clear upgrade path for store owners without an active PRO license

= 3.22.7 =
* Fixed: Superpower count corrected to 48 across all admin pages
* Fixed: Rules messaging updated — 200 expert-built rule packs across 19 industries (2,000 rules)
* Enhancement: Free rule now supports Buy 2 Get 1, Buy 3 Get 1, and Buy 2 Get 2 configurations — giving store owners more flexibility before upgrading to PRO

= 3.22.6 =
* Changed: PRO pack access codes are now delivered immediately at purchase regardless of PRO subscription status — no more waiting
* Changed: Pack purchase confirmation email updated — includes a clear PRO upgrade link if no subscription is active; pack keys are always delivered and valid forever

= 3.22.5 =
* Updated: Superpower count updated to 48 everywhere — plugin header, Store Health Monitor, documentation, sales pages, and all 16 language pages

= 3.22.4 =
* Quality: Comprehensive codebase audit — 14 issues fixed across 227 files
* Fixed: Timezone handling — discount timestamps now always stored in UTC regardless of server timezone setting
* Fixed: Output escaping improvements for WordPress coding standard compliance

= 3.22.3 =
* Security: License key storage hardened
* Performance: Referral code lookups now cached

= 3.22.2 =
* Fixed: VIP customer count in PDF export now accurate and uses efficient cached queries
* Security: Referral visit tracking now rate-limited — prevents count inflation via repeated requests
* Fixed: Copy-to-clipboard functionality on Safari iOS 16.4+ and modern browsers

= 3.22.1 =
* Fixed: Nudge and auto-add superpowers now correctly respect the Superpowers Hub toggle
* Fixed: All 17 behavioral superpowers confirmed wired end-to-end to the Superpowers Hub

= 3.22.0 =
* Fixed: All 48 superpower toggles now fully work end-to-end — enable/disable a superpower and it takes effect immediately
* Fixed: Savings Calculator toggle now correctly enables and disables the feature
* Fixed: Cart Recommendations toggle now works correctly
* Fixed: VIP status now shows correctly regardless of which WordPress theme is active
* Fixed: Superpowers Hub badge now always shows the accurate superpower count dynamically

= 3.21.9 =
* Fixed: Settings for smart popup and WhatsApp Commerce are now correctly saved when clicking Save in Superpowers Hub
* Fixed: Superpower count in Superpowers Hub is now always accurate — no longer hardcoded
* Fixed: Store Health Monitor one-click fix buttons now correctly dismiss the notice after applying the fix

= 3.21.8 =
* New: Store Health Monitor — automated checks across 15 critical performance and configuration areas with one-click fixes
* New: One-click fixes for common WooCommerce configuration issues that slow down stores
* New: Health score tracked over 7 days with trend chart
* New: Persistent alert banners for critical issues with inline fix buttons on the WP Dashboard
* New: Automatic health scan every 6 hours
* Performance: Fixed WooCommerce geolocation setting that caused 3.5-second delays on every product page — now under 0.12 seconds (97% improvement)
* Performance: 13 WordPress-level optimizations to reduce unnecessary resource loading

= 3.21.7 =
* Fixed: WordPress admin now shows the updated version immediately after plugin update — no stale "update available" message
* Fixed: Force-update admin notice now dismisses automatically after a successful update
* Fixed: Download links now always serve the latest plugin file — no cached versions

= 3.21.6 =
* Feature: All installations are automatically kept up to date in the background via WordPress auto-update
* Feature: Persistent in-dashboard notice prompts any out-of-date installs to update with one click

= 3.21.5 =
* Fixed: Smart Popup and WhatsApp Commerce now appear correctly in Superpowers Hub
* Fixed: Superpower count updated to 47 in all locations
* Fixed: Traffic analytics — top countries now reflect full visitor data with correct date ranges

= 3.21.4 =
* Fixed: Growth Acceleration Bundle price corrected to $299 across all plugin admin views
* Fixed: Starter Revenue Bundle price corrected to $149
* Fixed: Documentation page rewritten in plain language — explains all 49 superpowers and 19 emails in store-owner terms with no technical jargon
* Fixed: Scheduled deals now correctly reschedule after firing

= 3.21.3 =
* Fixed: Scheduled deal cron events now correctly reschedule recurring deals without errors
* Fixed: Documentation superpower counts corrected

= 3.21.2 =
* Fixed: Rare fatal error on stores where WooCommerce returned an incomplete order object — now handled gracefully
* Fixed: 7 unused internal methods removed — leaner codebase
* Improved: Email delivery now decoupled from visual superpowers — more reliable email triggering

= 3.21.1 =
* Performance: Eliminated memory exhaustion on stores with over 10,000 customers
* Performance: Order history queries capped — prevents timeouts on high-volume stores
* Security: Shop managers can now manage GT BOGO rules without needing full site admin privileges
* Reliability: Email delivery failures are now logged and trigger an admin notification
* Reliability: Referral coupon auto-apply now prevents double-application

= 3.21.0 =
* Performance: Confirmed single database query on cart page — well under performance targets
* Fixed: PHP 8.2 compatibility — eliminated deprecation warnings on servers running the latest PHP
* Attribution: Impression tracking now active across all 28 visual superpowers — data collection begins from launch day

= 3.20.6 =
* Improved: All visual superpowers now fully comply with WCAG 2.5.5 touch target standards (44×44px minimum)
* Improved: CSS tokens used throughout — superpowers inherit theme styling correctly on all stores
* Fixed: Savings Calculator cart display no longer interferes with WooCommerce AJAX cart updates

= 3.20.5 =
* Security: API credential storage hardened
* Security: License key handling improved
* Security: VIP customer count queries now cached — eliminates slow queries on large stores
* Referral: Referral tracking rebuilt with rate limiting — prevents count inflation from bots and page refreshes
* Performance: Referral code lookups now instant

= 3.20.4 =
* Fixed: Duplicate cron job removed — scheduled deals now fire reliably on the correct schedule using server UTC time
* Fixed: PRO license price corrected across all admin screens
* Fixed: Timestamps now stored in UTC — correct on all servers regardless of timezone setting

= 3.20.3 =
* Improved: Orchestrator now manages all 31 superpowers — including shipping progress, smart popup, WhatsApp Commerce, auto-add, FOMO, and nudges
* Improved: All 8 visitor archetypes updated to intelligently route new superpowers

= 3.20.2 =
* Fixed: Predictive Timing admin page now loads correctly on WordPress 6.1 and above
* Fixed: Savings Calculator now shows the correct savings amount — was always showing $0 for BOGO discounts
* Fixed: Guest checkout enforcement now activates correctly for BOGO fee-based discounts

= 3.20.1 =
* Added: Wave 5 Intelligence Health Board on the main dashboard — 12-system status grid with live indicators, Signal Bus score, cron health, and error counts

= 3.20.0 =
* Added: Structured plugin logging — replaces all debug output with a clean rolling log visible only in admin
* Quality: Return type improvements for PHP 8.2 compatibility
* Quality: Translation file regenerated — 473 strings fully translatable
* Quality: WCAG 2.1 AA compliance — all admin form inputs now have proper accessibility labels

= 3.19.3 =
* Performance: Active deal rules now served from Redis cache — zero database cost when cache is warm
* Performance: Deal engine further optimized for page speed
* Performance: Admin intelligence pages cache results — no repeated slow queries when reloading admin pages

= 3.19.2 =
* Security: All public plugin endpoints are now rate-limited — prevents abuse and bot traffic
* Added: Rate Limiter status visible in System Status — shows all protected endpoints with their limits

= 3.19.1 =
* Added: Cron Coordinator — all scheduled jobs now managed centrally with staggered timing to prevent server CPU spikes
* Added: Cron execution log — every scheduled job records its duration and memory use
* Added: WP Site Health integration — GT BOGO cron health appears in WordPress Site Health panel
* Added: Self-healing cron — missing scheduled jobs are detected and re-registered automatically

= 3.19.0 =
* Added: Smart Popup PRO — fully rebuilt with Intent Engine scoring, 5 trigger types, A/B split testing, 4 display positions, and WCAG 2.1 AA accessibility compliance

= 3.18.9 =
* Added: Intelligent Onboarding Wizard — 5-step setup with industry auto-detection, store profile reading, and personalized pack and superpower recommendations
* Added: 9-check Go Live checklist with per-check fix links
* Improved: WhatsApp Commerce button upgraded to full WCAG 2.5.5 accessibility standards

= 3.18.8 =
* Added: Industry-aware email copy engine — automatically adapts email language for fashion, beauty, food, tech, automotive, B2B, and lifestyle stores
* Added: 5 new lifecycle email templates

= 3.18.7 =
* Added: Smart Notifications — 3-channel coordination (on-site, email, WhatsApp) with fatigue control and 30-day performance tracking
* Added: 5-tier customer lifetime value scoring with predicted LTV trajectory
* Added: ISO-week purchase streak tracking with VIP grace mechanic
* Added: Subscription renewal timing intelligence — upsell at the right moment in the renewal window
* Added: 20+ webhook events with secure async delivery and automatic retry
* Added: Birthday and Anniversary proximity windows — deal fires at the exact right moment in the pre-birthday and pre-anniversary window
* Improved: Revenue analytics upgraded to HPOS-compatible order API with period-over-period comparison

= 3.18.6 =
* Added: AI-assembled product bundles from real co-purchase data — recommends the right bundle to the right customer
* Added: Loyalty habit formation engine — targets 40–60% improvement in 90-day repeat purchase rate
* Added: Multi-objective revenue optimizer — simultaneously balances conversion rate, average order value, gross margin, and customer lifetime value
* Added: Per-customer predictive timing — fires deals when each specific customer is most likely to buy

= 3.18.3 =
* Added: Real-time purchase intent scoring — 15 behavioral signals per session scored live
* Added: 10 behavioral trigger types — detects price hesitation, cart abandonment precursor, comparison browsing, return visitors, exit prediction, and more
* Added: Minimum effective discount engine — starts low and only escalates if the customer does not respond
* Added: Cross-session customer journey tracking — 9 stages from discovery to lapsed customer
* Added: Conversion Guard — suppresses deals when the customer is already moving toward purchase without one

= 3.18.2 =
* Added: Enterprise Wave 5 — Lifecycle Intelligence transforms deal arbitration into a full Next-Best-Action decision engine
* Added: Economic guardrail — deals with negative expected lift are automatically suppressed
* Added: 2% holdout control group for true incremental lift measurement
* Added: Shadow/challenger mode — safely test new rule configurations before going live
* Added: Full deal outcome pipeline — tracks every deal from eligibility through acceptance or rejection

= 3.18.1 =
* Added: Customer Segmentation — 12-segment classifier for intelligent deal targeting
* Added: GDPR/CCPA/LGPD/PIPEDA compliance layer with full WP Privacy integration and consent capture
* Added: B2B Pricing — 4-tier account model, volume pricing, per-customer price lists, and quote workflow
* Added: Mobile Optimizer — device and network detection with per-device intensity caps and animation suppression on slow connections
* Fixed: Critical stability fixes that caused store outages on April 26
* Improved: Signal Bus expanded to 24 real-time intelligence signals

= 3.18.0 =
* Full recovery from critical server incident — all payment processing, license verification, and pack delivery systems fully restored
* Rebuilt: PayPal license handler with full payment verification and fraud detection
* Rebuilt: License verification API with rate limiting
* Rebuilt: Pack delivery pipeline — activate, download, verify, and bundle packs
* Added: 17 enterprise intelligence classes rebuilt

= 3.17.0 =
* Added: Superpower Orchestrator — autonomous decision engine for all 27 superpowers
* Added: 8 visitor archetypes driving intelligent superpower activation
* Added: Conflict resolution — prevents multiple overlapping overlays, bars, and cart messages from firing at once

= 3.16.7 =
* Fixed: License validation issue on WordPress multisite installs
* Fixed: Pack import silently skipping some deal rules

= 3.16.0 =
* Added: Revenue Attribution — tracks which deals influenced completed orders
* Added: Geo Rules Engine — country-level deal targeting
* Added: Multicurrency Optimizer — deal thresholds in every currency
* Added: Subscription Intelligence — recurring order detection
* Added: Animation Intelligence — per-brand animation controls

= 3.15.0 =
* Added: Revenue Guard — automatic margin protection with configurable floor
* Added: Pack Validator — tampered packs rejected on import
* Added: Webhook Triggers — real-time notifications on rule events
* Added: White Label Engine — full rebrand support

= 3.14.0 =
* Added: Customer Lifetime Value Scoring with tier classification
* Added: Repeat Purchase Prediction based on customer buying patterns
* Added: Post-Purchase Intelligence — cross-sell timing engine
* Added: Birthday and Anniversary deal triggers

= 3.13.0 =
* Added: Pack Email Triggers — 8 automated email events per pack
* Added: Smart Checkout — referral coupon auto-apply and post-purchase redirect
* Fixed: Pack importer rule count validation
* Fixed: Email system reliability improvements

= 3.12.0 =
* Added: Intelligent copy engine — all 25 superpowers serve brand-appropriate language across subtle, bold, and standard tones
* Added: 16 automated transactional email events
* Fixed: Cart discount calculation accuracy

= 3.11.0 =
* Added: 200 PRO Pack templates across every major retail and service industry
* Added: My Packs library — download and manage purchased packs from admin
* Added: Guest Opt-In system — capture guest customer emails at checkout
* Added: Referral tracking — unique referral links with milestone rewards
* Added: 14 new Superpowers
* Updated: PRO license price updated to $199/year

= 3.10.2 =
* Fixed: Dashboard and admin UI stability improvements
* Added: Full deal condition enforcement — category, tag, cart value, day, and time window checks
* Added: REST API with 5 endpoints
* Added: Automatic rule scheduling via WordPress Cron

= 3.10.1 =
* Added: 7 new Superpowers — Exit Intent, Announcement Bar, Dynamic Pricing, Bundle Spotlight, Cart Abandonment Nudge, Deal Share, Smart Popup
* Added: Per-superpower enable, animation, and intensity controls

= 3.10.0 =
* Major rebuild — enterprise admin interface
* Added: Customer segmentation, A/B testing, and geo targeting
* Added: Campaign scheduler
* Added: Analytics dashboard

= 3.5.17 =
* Initial release
* Free global Buy 1 Get 1 at 50% Off rule
* Visual admin interface
* WooCommerce compatibility

== Upgrade Notice ==
= 3.20.1 =
Dashboard Intelligence Health Board added. All 12 Wave 5 intelligence systems now visible on main dashboard with live status indicators. Signal Bus composite score, cron health, and error count at a glance. Upgrade recommended.
= 3.20.0 =
Major code quality release. Structured logging system added. 54+ return type declarations. WCAG 2.1 AA compliance on all admin forms. Full .pot file regenerated. This is the v3.20.0 milestone release. Upgrade recommended for all PRO users.
= 3.19.3 =
Performance release. Active rules now served from Redis object cache (zero DB on cache hit). Orchestrator skips 30+ DB queries on non-commercial pages. Admin intelligence pages cache query results for 5 minutes. Upgrade recommended for all PRO users on high-traffic stores.
= 3.19.2 =
Security hardening release. All 11 public AJAX endpoints now have centralized IP-based rate limiting via GT_BOGO_Rate_Limiter. Two critical endpoints (discovery_tick, get_bundle) had zero security — now fully secured. Rate Limiter visible in System Status. Upgrade strongly recommended.
= 3.19.1 =
WP-Cron Coordinator release. All 30 GT BOGO crons now managed centrally with staggered UTC scheduling — eliminates midnight CPU spikes. Includes execution logging, WP Site Health integration, self-heal, interval validation, and System Status dashboard. Upgrade recommended for all PRO users.
= 3.19.0 =
Enterprise quality release. Smart Popup PRO added with full intelligence stack. All error_log() calls removed. All bare date() replaced with gmdate(). Wave 5 stock alerts table added to migration. Upgrade recommended for all PRO users.
= 3.18.9 =
Intelligence Wizard release. Onboarding rebuilt as 5-step intelligent wizard with industry auto-detection, store profile reading, pack and superpower recommendations, and 9-check Go Live checklist. WhatsApp Commerce WCAG 2.5.5 compliant dismiss button. Full CSS token compliance across all visual superpowers. Upgrade recommended for all PRO users.
= 3.18.8 =
Email intelligence release. Adds industry-aware copy engine for all 25 email types — automatically detects store industry from installed PRO packs and adapts email language for fashion, beauty, food, tech, automotive, B2B, and lifestyle stores. Pack-aware Orchestrator signal. 5 new Wave 5 email templates. Upgrade recommended for all PRO users.
= 3.18.7 =
Enterprise quality release. Full codebase audit — 28 backend classes upgraded to maximum enterprise grade. Key upgrades: Smart Notifications 3-channel coordinator, HMAC-signed referral system with anti-fraud, 5-tier LTV scoring with predicted LTV trajectory, ISO week streak tracking with grace mechanic, renewal-timing subscription intelligence, 5-layer geo detection with timezone windows, 20+ webhook events with async HMAC-signed delivery, and anniversary/birthday proximity windows. Security: error_log() removed, raw SQL replaced with $wpdb->prepare(), role name checks replaced with current_user_can(). Upgrade recommended for all PRO users.
= 3.18.6 =
Revenue intelligence release. Adds AI-assembled bundles from co-purchase affinity, loyalty habit formation engine (VIP at purchase 4), multi-objective revenue maximizer (CR × AOV × margin × LTV), and per-customer predictive timing. Upgrade recommended for all PRO users.
= 3.18.3 =
Behavioral Conversion Intelligence release. Adds real-time intent scoring, 10 behavioral trigger types, minimum effective discount engine, cross-session journey tracking, and conversion guard. The plugin now detects peak customer hesitation and intervenes at the exact right moment with the minimum discount needed. Upgrade recommended for all PRO users.

= 3.18.2 =
Major enterprise release. Wave 5 Lifecycle Intelligence transforms deal arbitration into a full Next-Best-Action decision engine with PCV×L scoring, uplift gates, control groups, outcome capture, and shadow/challenger mode. New DB tables created on activation. Upgrade recommended for all PRO users.

= 3.18.1 =
Enterprise Wave 1–4. 17 intelligence classes rebuilt including GDPR Compliance, Mobile Optimizer, B2B Pricing, Customer Segmentation. Critical method signature fixes. Upgrade required.

= 3.11.0 =
Major feature release. Adds 200 PRO Pack templates, My Packs library, Guest Opt-In, Referral system, 14 new Superpowers, and HMAC pack signing security. Upgrade recommended for all users.

= 3.5.17 =
Initial public release. Test promotions in a staging or private browser before enabling storewide campaigns.
