/*
Theme Name: ShareTracker Theme
Author: ShareTracker
Description: Custom theme for ShareTracker Portfolio
Version: 3.3 (Consolidated Production Fix)
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */

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

:root {
  --bg: #FAFAF8;
  --bg-alt: #F5F5F0;
  --bg-card: #FFFFFF;
  --bg-dark: #111827;
  --text: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-inverse: #F9FAFB;
  
  /* Brand Colors */
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-light: #EEF2FF;
  --accent-text: #4338CA;
  
  --success: #10B981;
  --warning: #F59E0B;
  
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================
   2. CRITICAL WORDPRESS FIXES
   ========================================= */

.hero-badge, .btn, .feature-icon-box {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  vertical-align: middle;
}

.hero-badge br, .btn br, .feature-icon-box br {
  display: none !important;
}

.hero-badge svg, .btn svg, .feature-icon-box svg, 
.check-list svg, .logo-icon svg, .hero-feature-icon svg {
  width: auto;
  height: auto;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  fill: none !important;
}

.hero-badge svg { width: 16px !important; height: 16px !important; }
.btn svg { width: 18px !important; height: 18px !important; }
.check-list svg { width: 20px !important; height: 20px !important; }
.feature-icon-box svg { width: 24px !important; height: 24px !important; }
.hero-feature-icon svg { width: 20px !important; height: 20px !important; }

.hero-feature-icon { color: var(--accent) !important; }
.check-list svg { color: var(--success) !important; }

ul.check-list { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }
/* Find this block in your CSS and update the 'align-items' property */
.check-list li { 
    display: flex !important; 
    align-items: center !important; /* <--- CHANGED from flex-start to center */
    gap: 12px !important; 
    margin-bottom: 12px !important; 
}

img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
section { padding: 100px 0; }

/* =========================================
   3. HEADER
   ========================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body.admin-bar header { top: 32px; }
body.admin-bar .legal-page { margin-top: 32px; }

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

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }

/* =========================================
   4. BUTTONS
   ========================================= */

.btn {
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  min-height: 48px;
}

.btn-primary { background: var(--accent); color: white !important; box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23); }
.btn-secondary { background: white; color: var(--text) !important; border: 1px solid var(--border) !important; }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--text-secondary) !important; }
.btn-outline { background: transparent; color: var(--accent) !important; border: 1px solid var(--accent) !important; }
.btn-outline:hover { background: var(--accent-light); }
.btn-lg { padding: 16px 36px; font-size: 1.0625rem; border-radius: 100px; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); z-index: 1001; position: relative; }
.mobile-menu-btn svg { pointer-events: none; }

/* =========================================
   5. HERO SECTION
   ========================================= */

.hero { padding: 180px 0 120px; text-align: center; background: radial-gradient(circle at 50% 0%, #EEF2FF 0%, transparent 70%); }
.hero-badge { padding: 8px 16px; background: white; color: var(--accent-text); font-size: 0.875rem; font-weight: 600; border-radius: 100px; margin-bottom: 32px; border: 1px solid var(--accent-light); box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; max-width: 900px; margin-left: auto; margin-right: auto; color: var(--bg-dark); }
.text-gradient { background: linear-gradient(135deg, var(--accent) 0%, #818CF8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 640px; margin: 0 auto 48px; line-height: 1.6; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 80px; flex-wrap: wrap; }
.hero-cta .btn { width: 220px; max-width: 100%; justify-content: center; }
.hero-features { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--border); max-width: 800px; margin: 0 auto; }
.hero-feature { display: inline-flex; align-items: center; gap: 12px; }
.hero-feature-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.hero-feature-text { text-align: left; font-weight: 600; color: var(--text); font-size: 0.9375rem; }

/* =========================================
   6. DASHBOARD PREVIEW
   ========================================= */

.screenshot-section { padding: 0 0 100px; perspective: 1000px; }
.screenshot-wrapper { max-width: 1100px; margin: 0 auto; transform: rotateX(2deg); transition: transform 0.5s ease; }
.screenshot-wrapper:hover { transform: rotateX(0deg); }
.screenshot-frame { background: var(--bg-dark); border-radius: 16px; padding: 12px; box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255,255,255,0.1); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #1F2937; border-radius: 8px 8px 0 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.browser-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }
.browser-url { margin-left: 16px; background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.5); font-size: 0.75rem; padding: 4px 12px; border-radius: 4px; font-family: monospace; width: 300px; max-width: 50%; }

/* =========================================
   7. FEATURES & DEPLOYMENT
   ========================================= */

.problem-section { background: white; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.how-section .grid-2 { align-items: stretch !important; }
.how-section .grid-2 > div { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.section-label { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.875rem; margin-bottom: 16px; display: block; }
h2 { font-size: 2.5rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 24px; line-height: 1.2; }
p.lead { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 32px; }
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item { display: flex; gap: 16px; }
.feature-icon-box { width: 48px; height: 48px; background: var(--accent-light); color: var(--accent); border-radius: 12px; flex-shrink: 0; }
.features-section, .pricing-section { background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card { background: white; padding: 32px; border-radius: 16px; border: 1px solid var(--border); transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-light); }

/* =========================================
   8. PRICING
   ========================================= */

/* CHANGE THIS: 3 columns to 2, and max-width to 800px */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* <--- CHANGED */
    gap: 40px; /* Increased gap slightly for better look */
    max-width: 800px; /* <--- CHANGED (was 1100px) */
    margin: 0 auto; 
}
.pricing-card { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; }
.pricing-card.featured { background: var(--bg-dark); color: white; border-color: var(--bg-dark); transform: scale(1.05); box-shadow: var(--shadow-lg); position: relative; z-index: 10; }
.pricing-card.featured .text-secondary { color: #9CA3AF; }
.pricing-card.featured .pricing-price { color: white; }
.pricing-card.featured .btn { background: var(--accent); color: white; border: none; }
.pricing-card.featured .btn:hover { background: var(--accent-hover); }
.pricing-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.pricing-desc { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 32px; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

/* =========================================
   9. FAQ & FOOTER
   ========================================= */

.faq-section { background: var(--bg-alt); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.faq-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--bg-dark); }
.faq-item p { color: var(--text-secondary); font-size: 0.95rem; }
footer { background: var(--bg-dark); color: white; padding: 80px 0 40px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 24px; color: #9CA3AF; }
.footer-col a { display: block; color: #D1D5DB; text-decoration: none; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: white; }

/* =========================================
   10. MAIN BREAKPOINTS
   ========================================= */

/* --- TABLET / IPAD (1024px) --- */
/* Mobile Menu Activates Here */
@media (max-width: 1024px) {
  section { padding: 80px 0; }
  .hero h1 { font-size: 3.5rem; }
  
  /* Layout: 2 Columns for Tablet */
  .features-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: scale(1); }
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid { grid-template-columns: 1fr 1fr; }

  /* --- MENU LOGIC: MOVED HERE --- */
  nav, .header-actions { display: none; } /* Hide Desktop Menu */
  .mobile-menu-btn { display: block; }    /* Show Hamburger Icon */

  /* Menu Open State Styles */
  header.mobile-open { height: auto; background: white; border-bottom: 1px solid var(--border); }
  header.mobile-open .header-inner { flex-direction: column; align-items: flex-start; height: auto; padding-bottom: 24px; }
  header.mobile-open .logo { margin-bottom: 20px; width: 100%; height: 80px; display: flex; align-items: center; }
  header.mobile-open .mobile-menu-btn { position: absolute; top: 24px; right: 24px; }
  
  header.mobile-open nav { display: flex; flex-direction: column; width: 100%; gap: 0; margin-bottom: 24px; border-top: 1px solid var(--border-light); }
  header.mobile-open nav a { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--border-light); width: 100%; display: block; }
  
  header.mobile-open .header-actions { display: flex; flex-direction: column; width: 100%; gap: 12px; }
  header.mobile-open .header-actions .btn { width: 100%; justify-content: center; }
}

/* --- MOBILE PHONES (768px) --- */
/* Layout shrinks further, Menu logic inherits from above */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-features { gap: 24px; flex-direction: column; }
  
  /* Layout: Force 1 Column for Phones */
  .grid-2, .features-grid, .pricing-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
  
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .browser-url { max-width: 50%; }
  .hero h1 { font-size: 2.75rem; }
  .screenshot-section { perspective: none; }
  .screenshot-wrapper { transform: none; }
  .footer-grid { gap: 40px; }
  
  /* --- CRITICAL: RESTORED BUTTON FIX --- */
  /* This ensures buttons are full width and aligned on mobile */
  .hero-cta {
      flex-direction: column !important;
      align-items: stretch !important;
      width: 100% !important;
      gap: 16px !important;
  }
  
  .hero-cta .btn {
      display: flex !important;
      width: 100% !important;
      max-width: none !important;
      justify-content: center !important;
      margin: 0 !important;
      box-sizing: border-box !important;
  }
}
/* =========================================
   11. CUSTOM LOGIN PAGE STYLES
   ========================================= */

.login-section { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 0; background: radial-gradient(circle at 50% 0%, #EEF2FF 0%, transparent 70%); }
.login-container { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.login-card-wrapper { max-width: 420px; margin: 0 auto; background: var(--bg-card); padding: 40px; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h2 { font-size: 1.75rem; margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-control { width: 100%; padding: 12px 16px; font-size: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); outline: none; transition: all 0.2s ease; font-family: inherit; }
.form-control:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px var(--accent-light); }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.forgot-link { font-size: 0.875rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.forgot-link:hover { color: var(--accent-hover); text-decoration: underline; }
.btn-full { width: 100%; justify-content: center; margin-top: 8px; }
.login-alert { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; padding: 12px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 20px; text-align: center; }

@media (max-width: 480px) {
  .login-card-wrapper { padding: 24px 20px !important; max-width: 100% !important; }
  .login-header h2 { font-size: 1.5rem !important; }
  .logo-icon { width: 40px !important; height: 40px !important; }
  .login-section { padding-top: 40px; padding-bottom: 40px; }
}

/* =========================================
   12. DOWNLOADS PAGE & RESPONSIVE BUTTONS
   ========================================= */

.downloads-section { padding: 80px 0; }
.dl-action { text-align: right; min-width: 200px; padding-left: 20px !important; }

a.download-button,
.dl-action .lemonsqueezy-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: white !important; 
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: var(--shadow-sm);
  white-space: normal !important; 
  word-break: break-word !important; 
  line-height: 1.4 !important;
  text-align: center !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 44px;
}

.dl-action .lemonsqueezy-button {
  background: var(--accent) !important;
  color: white !important;
  border-color: var(--accent) !important;
  width: auto !important;
  min-width: 180px;
}

.dl-action .lemonsqueezy-button:hover { background: var(--accent-hover) !important; color: white !important; }

.st-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.st-header-text h1 { margin: 0 0 8px 0; font-size: 2.5rem; color: var(--bg-dark); }
.st-header-text p { margin: 0; color: var(--text-secondary); font-size: 1.1rem; }
.st-logout-btn { font-size: 0.9rem; font-weight: 600; color: var(--accent); text-decoration: none; padding: 8px 20px; border: 1px solid var(--accent); border-radius: var(--radius); background: transparent; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; }
.st-logout-btn:hover { background: var(--accent-light); transform: translateY(-1px); }
.version-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 40px; box-shadow: var(--shadow-sm); }
.version-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.version-header h3 { margin: 0; font-size: 1.5rem; color: var(--bg-dark); }
.version-date { color: var(--text-secondary); font-size: 0.9rem; }
.badge-latest { background: #ECFDF5; color: #065F46; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-left: 12px; vertical-align: middle; }
.download-table { width: 100%; border-collapse: collapse; }
.download-table td { padding: 20px 0; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.download-table tr:last-child td { border-bottom: none; }
.dl-icon { font-size: 1.5rem; width: 60px; text-align: center; color: var(--text-secondary); }
.dl-info h4 { margin: 0 0 4px 0; font-size: 1rem; color: var(--text); }
.dl-meta { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .downloads-section { padding: 40px 24px !important; }
    .st-page-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .st-logout-btn { width: 100%; justify-content: center; }
    .version-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .download-table tr { display: flex !important; flex-direction: column !important; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); gap: 12px; }
    .download-table td { display: block !important; width: 100% !important; padding: 0 !important; border: none !important; text-align: left !important; }
    .dl-icon { font-size: 2rem; }
    .dl-action { margin-top: 10px; }
    a.download-button, .dl-action .lemonsqueezy-button { width: 100% !important; font-size: 1rem !important; }
}

/* =========================================
   13. LEGAL & DOCS
   ========================================= */

.legal-page { padding: 180px 0 120px; background: radial-gradient(circle at 50% 0%, #EEF2FF 0%, transparent 70%); min-height: 100vh; }
.legal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 60px; box-shadow: var(--shadow-lg); max-width: 850px; margin: 0 auto; }
.legal-content h1 { font-size: 2.5rem; font-weight: 800; color: var(--bg-dark); margin-bottom: 12px; letter-spacing: -0.02em; }
.legal-content .last-updated { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 48px; display: block; border-bottom: 1px solid var(--border-light); padding-bottom: 24px; }
.legal-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--bg-dark); margin: 40px 0 16px 0; display: flex; align-items: center; gap: 12px; }
.legal-content p { color: var(--text-secondary); margin-bottom: 20px; font-size: 1.0625rem; }
.legal-content ul { margin: 0 0 24px 20px; }
.legal-content li { color: var(--text-secondary); margin-bottom: 12px; }
.legal-highlight { background: var(--accent-light); border-left: 4px solid var(--accent); padding: 24px; border-radius: 12px; margin: 32px 0; }
.legal-highlight h3 { color: var(--accent-text); margin-bottom: 8px; font-size: 1.125rem; font-weight: 700; }

@media (max-width: 768px) {
    .legal-content { padding: 32px 24px; border-radius: 0; border: none; }
    .legal-content h1 { font-size: 2rem; }
    .legal-page { padding: 100px 0 40px; }
}

/* =========================================
   14. DEPLOYMENT GUIDE & CHANGELOG
   ========================================= */

.guide-container { max-width: 850px; margin: 0 auto; color: var(--text-secondary); }
.guide-section { margin-bottom: 48px; }
.guide-section h2 { font-size: 1.75rem; color: var(--bg-dark); margin-bottom: 16px; border-bottom: 1px solid var(--border-light); padding-bottom: 12px; }
.step-block { margin-bottom: 32px; }
.step-block h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 8px; font-weight: 700; }
.terminal { background: #111827; color: #FFFFFF !important; padding: 20px; border-radius: 12px; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.9rem; line-height: 1.5; margin: 12px 0; position: relative; border: 1px solid rgba(255,255,255,0.1); }
.terminal::before { content: "$ "; color: var(--accent) !important; }
.terminal .code-comment { color: var(--text-muted) !important; opacity: 0.7 !important; }
.terminal a { color: var(--accent) !important; }
.tech-badge { display: inline-block; padding: 4px 12px; background: var(--accent-light); color: var(--accent-text); border-radius: 6px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; }

.changelog-item { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border-light); }
.changelog-item:last-child { border-bottom: none; }
.version-tag { display: inline-flex; align-items: center; padding: 4px 12px; background: var(--bg-dark); color: white; border-radius: 6px; font-weight: 700; font-size: 0.875rem; margin-bottom: 12px; }
.release-date { margin-left: 12px; color: var(--text-muted); font-size: 0.875rem; }
.change-category { font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 16px 0 8px 0; display: block; }
.cat-added { color: var(--success); }
.cat-improved { color: var(--accent); }
.cat-fixed { color: var(--warning); }

/* =========================================
   15. REPAIRED OVERLAY & MOBILE MENU FIX
   ========================================= */

/* Only lock scroll when Lemon Squeezy is EXPLICITLY open */
/* This ensures your standard mobile menu still works */
body.lemonsqueezy-open {
    overflow: hidden !important;
}

/* Force the overlay to cover the viewport without breaking mobile nav */
#lemonsqueezy-checkout-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 2147483647 !important; 
    background-color: rgba(0, 0, 0, 0.75) !important;
}

/* =========================================
   MOBILE BUTTON FIX (100% WIDTH & ALIGNED)
   ========================================= */
@media (max-width: 768px) {
    .hero-cta {
        /* Stack vertically */
        flex-direction: column !important;
        /* CRITICAL: 'stretch' forces items to touch both left and right edges */
        align-items: stretch !important; 
        width: 100% !important;
        gap: 16px !important;
    }
    
    .hero-cta .btn {
        /* Override inline-flex to behave like a full block */
        display: flex !important;
        /* Force exact width */
        width: 100% !important;
        max-width: none !important;
        /* Ensure text remains centered inside the button */
        justify-content: center !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}