/* ============================================================
   GLOBAL RESET + BASE
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #0d0d0f;
    color: white;
    line-height: 1.6;
}

:root {
    --primary: #ff0050;          /* TikTok pink */
    --primary-light: #00f2ea;    /* TikTok cyan */
    --bg-dark: #0d0d0f;
    --bg-card: #15151a;
    --bg-light: #1c1c22;
    --border: #2a2a33;
}

/* ============================================================
   BRAND HEADER
============================================================ */
.brand-header {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 999;
}

.brand-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-light);
}

.brand-tagline {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ============================================================
   HERO SECTION — FINAL REBUILD (WIDER + BALANCED)
============================================================ */
.hero {
    text-align: center;
    padding: 70px 20px 60px;
    background: linear-gradient(180deg, #ff005020, #0d0d0f 70%);
}

/* Title — medium-large but not oversized */
.hero h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.12;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Default hero paragraph */
.hero p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 22px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* INTRO PARAGRAPH — wider, clean, readable */
.hero p.hero-intro {
    font-size: 0.9rem !important;
    line-height: 1.38;
    max-width: 520px; /* <<< wider but not stretched */
    margin: 14px auto 20px !important;
    opacity: 0.85;
}

/* CTA button */
.cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.cta-btn:hover {
    background: var(--primary-light);
}

/* ============================================================
   GENERATOR SECTION
============================================================ */
.generator-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.generator-section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-sub {
    opacity: 0.7;
    margin-bottom: 30px;
}

.generator-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 0 30px #00000040;
}

textarea {
    width: 100%;
    height: 120px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    color: white;
    resize: none;
    margin-bottom: 20px;
}

.options-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

select {
    flex: 1;
    padding: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
}

/* ============================================================
   GENERATE BUTTON + PULSE + SPINNER
============================================================ */
.generate-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    animation: pulseAnim 2.4s infinite ease-in-out;
}

.generate-btn:hover {
    background: var(--primary-light);
}

@keyframes pulseAnim {
    0% { box-shadow: 0 0 0px rgba(255,0,80,0.4); }
    50% { box-shadow: 0 0 14px rgba(0,242,234,0.6); }
    100% { box-shadow: 0 0 0px rgba(255,0,80,0.4); }
}

.generate-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.generate-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border: 3px solid transparent;
    border-top-color: #ff0050;
    border-bottom-color: #00f2ea;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================================
   TRENDING TOPICS — MODERN CHIPS
============================================================ */
.trending-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

.modern-chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #2a2a33;
    cursor: pointer;
    background: #15151a;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.25s ease;
}

.modern-chip:hover {
    background: linear-gradient(90deg, #ff0050, #00f2ea);
    color: #000;
    box-shadow: 0 0 14px rgba(0, 242, 234, 0.5);
    transform: translateY(-2px);
}

/* ============================================================
   HELP ICON TOOLTIP
============================================================ */
.help-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.help-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: default;
    position: relative;
}

.help-icon:hover::after {
    content: "Pick a tone for emotion, a mode for structure. Pro unlocks longer stories + packs.";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.75rem;
    max-width: 220px;
    border: 1px solid var(--border);
    z-index: 10;
}

/* ============================================================
   RESULTS SECTION + GLASS OUTPUT BOX
============================================================ */
.results-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.output-box {
    background: rgba(15, 15, 15, 0.9);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 0 18px #ff005020, 0 0 28px #00f2ea20;
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
}

.output-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.04);
    pointer-events: none;
}

.typing-output {
    min-height: 40px;
    white-space: pre-wrap;
    font-size: 1.1rem;
}

/* ============================================================
   SHARE SCRIPT BUTTON — PINK → CYAN
============================================================ */
.share-btn-modern {
    background: #ff0050;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s ease;
    box-shadow: 0 0 10px rgba(255, 0, 80, 0.4);
    margin-bottom: 10px;
}

.share-btn-modern:hover {
    background: #00f2ea;
    color: #000;
    box-shadow: 0 0 14px rgba(0, 242, 234, 0.7);
    transform: translateY(-2px);
}

/* ============================================================
   PREMIUM BUTTONS
============================================================ */
.premium-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: var(--primary-light);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    color: black;
    box-shadow: 0 0 12px #00f2ea60;
}

.premium-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 16px #ff005060;
}

/* ============================================================
   HOOK PACKS
============================================================ */
.hookpacks-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: center;
}

.hookpacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.hookpack-btn {
    padding: 14px;
    background: var(--bg-light);
    border: 1px solid var(--primary-light);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 600;
    transition: 0.2s;
}

.hookpack-btn:hover {
    background: var(--primary-light);
    color: black;
    box-shadow: 0 0 16px #00f2ea80;
}

/* ============================================================
   EXAMPLES SECTION
============================================================ */
.examples-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.example-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================================
   WHY SECTION
============================================================ */
.why-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.why-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ============================================================
   FREE VS PRO COMPARISON
============================================================ */
.comparison-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.comp-col {
    background: #111;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 0 12px #ff005015, 0 0 12px #00f2ea15;
}

/* ============================================================
   SEO SECTION
============================================================ */
.seo-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: auto;
}

.seo-section h2 {
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.seo-section p {
    opacity: 0.8;
    margin-bottom: 25px;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    padding: 40px 20px;
    text-align: center;
    opacity: 0.7;
    margin-top: 60px;
}

.footer-links a {
    color: var(--primary-light);
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ============================================================
   HOOKGEN+ BUTTON
============================================================ */
.hgplus-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 999;
}

.hgplus-btn {
    padding: 12px 22px;
    background: #ff0050;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 12px #ff0050;
    transition: 0.2s;
}

.hgplus-btn:hover {
    background: #00f2ea;
    box-shadow: 0 0 18px #00f2ea;
    color: black;
}

/* ============================================================
   HOOKGEN+ MODAL (W2)
============================================================ */
.hgplus-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hgplus-modal.show {
    display: flex;
}

.hgplus-modal-box {
    background: var(--bg-card);
    padding: 30px;
    width: 340px;
    border-radius: 14px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 0 18px #ff005020, 0 0 28px #00f2ea20;
}

.hgplus-wide {
    width: 750px !important;
    max-width: 95%;
    padding: 40px;
    border-radius: 18px;
    background: linear-gradient(145deg, #15151a, #0f0f12);
    border: 1px solid #2a2a33;
    box-shadow:
        0 0 25px #ff005020,
        0 0 35px #00f2ea20,
        inset 0 0 20px #00000060;
}

.hgplus-modal-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--primary-light);
    text-shadow: 0 0 12px #00f2ea60;
}

.hgplus-sub {
    font-size: 1.1rem;
    opacity: 0.75;
    margin-bottom: 25px;
}

.hgplus-columns {
    display: flex;
    justify-content: center;
    gap: 24px;
}


.hgplus-col h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.hgplus-col ul {
    list-style: none;
    padding: 0;
}

.hgplus-col li {
    padding: 8px 0;
    opacity: 0.9;
    font-size: 1rem;
    border-bottom: 1px solid #222;
}

/* FIX THE UGLY FULL-WIDTH BUTTONS */
.hgplus-close {
    display: inline-block !important;
    width: auto !important;
    padding: 10px 20px !important;
    margin: 12px auto 0 !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    background: linear-gradient(90deg, #ff0050, #00f2ea);
    color: black;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 12px #ff005060, 0 0 12px #00f2ea60;
    transition: 0.25s;
    text-align: center;
}

.hgplus-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px #ff005080, 0 0 25px #00f2ea80;
}

/* ============================================================
   HISTORY PANEL
============================================================ */
.history-panel {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.history-panel h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

#historyList p {
    background: var(--bg-light);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.buy-pro-btn {
    display: block;
    margin-top: 20px;
    padding: 14px 20px;
    background: linear-gradient(90deg, #ff0050, #00f2ea);
    color: black;
    font-weight: 800;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 18px #ff005060, 0 0 18px #00f2ea60;
    transition: 0.25s;
}

.buy-pro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px #ff005080, 0 0 25px #00f2ea80;
}
.hgplus-buy-btn {
    display: block;
    width: 100%;
    padding: 14px 26px;
    margin-top: 20px;
    background: var(--primary-light); /* CYAN */
    color: black;
    font-weight: 800;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 18px #00f2ea60;
    transition: 0.25s ease;
}

.hgplus-buy-btn:hover {
    background: #ff0050; /* PINK */
    color: white;
    box-shadow: 0 0 25px #ff005080;
    transform: translateY(-2px);
}
.hgplus-buy-btn {
    width: auto !important;
    padding: 10px 22px !important;
    margin: 12px auto !important;
    display: inline-block !important;
    background: var(--primary-light);
    color: black;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 0 12px #00f2ea60;
    transition: 0.25s ease;
}

.hgplus-buy-btn:hover {
    background: #ff0050; /* PINK */
    color: white;
    box-shadow: 0 0 25px #ff005080;
    transform: translateY(-2px);
}
.hgplus-modal-box {
    animation: modalPop 0.35s ease forwards;
    transform: translateY(20px);
    opacity: 0;
}

@keyframes modalPop {
    0% {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
/* MODAL BACKDROP FADE */
.hgplus-modal.show {
    animation: modalFade 0.25s ease forwards;
}
@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* MODAL POP ANIMATION */
.modal-animate {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: modalPop 0.35s ease forwards;
}
@keyframes modalPop {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* BUTTON HOVER LIFT */
.btn-lift:hover {
    transform: translateY(-3px);
    transition: 0.2s ease;
}

/* BUY BUTTON GLOW PULSE */
.glow-pulse {
    animation: glowPulse 2.2s ease-in-out infinite;
}
@keyframes glowPulse {
    0% { box-shadow: 0 0 12px #00f2ea60; }
    50% { box-shadow: 0 0 22px #00f2ea; }
    100% { box-shadow: 0 0 12px #00f2ea60; }
}
document.getElementById("hgplusBuy").onclick = () => {
    alert("Sorry — we're waiting for Lemon Squeezy to approve us.");
};
.examples-grid .example-card,
.why-grid .why-card,
.hookpacks-grid .hookpack-btn {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeStagger 0.6s ease forwards;
}

.examples-grid .example-card:nth-child(1),
.why-grid .why-card:nth-child(1),
.hookpacks-grid .hookpack-btn:nth-child(1) { animation-delay: 0.05s; }

.examples-grid .example-card:nth-child(2),
.why-grid .why-card:nth-child(2),
.hookpacks-grid .hookpack-btn:nth-child(2) { animation-delay: 0.15s; }

.examples-grid .example-card:nth-child(3),
.why-grid .why-card:nth-child(3),
.hookpacks-grid .hookpack-btn:nth-child(3) { animation-delay: 0.25s; }

.examples-grid .example-card:nth-child(4),
.hookpacks-grid .hookpack-btn:nth-child(4) { animation-delay: 0.35s; }

@keyframes fadeStagger {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
.generate-btn {
    position: relative;
    overflow: hidden;
}

.generate-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 120%; }
}
.trending-chip {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px #00f2ea80;
}
.typing-output {
    opacity: 0;
    animation: outputFade 0.4s ease forwards;
}

@keyframes outputFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.history-panel {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}
/* ============================
   GLOBAL FADE-IN FOR SECTIONS
============================ */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================
   STAGGERED CARD ANIMATIONS
============================ */
.examples-grid .example-card,
.why-grid .why-card,
.hookpacks-grid .hookpack-btn {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeStagger 0.6s ease forwards;
}

.examples-grid .example-card:nth-child(1),
.why-grid .why-card:nth-child(1),
.hookpacks-grid .hookpack-btn:nth-child(1) { animation-delay: 0.05s; }

.examples-grid .example-card:nth-child(2),
.why-grid .why-card:nth-child(2),
.hookpacks-grid .hookpack-btn:nth-child(2) { animation-delay: 0.15s; }

.examples-grid .example-card:nth-child(3),
.why-grid .why-card:nth-child(3),
.hookpacks-grid .hookpack-btn:nth-child(3) { animation-delay: 0.25s; }

.examples-grid .example-card:nth-child(4),
.hookpacks-grid .hookpack-btn:nth-child(4) { animation-delay: 0.35s; }

@keyframes fadeStagger {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================
   HERO FLOAT ANIMATION
============================ */
.hero h1 {
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* ============================
   GENERATE BUTTON SHIMMER
============================ */
.generate-btn {
    position: relative;
    overflow: hidden;
}

.generate-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 120%; }
}

/* ============================
   TRENDING CHIP HOVER POP
============================ */
.trending-chip {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px #00f2ea80;
}

/* ============================
   OUTPUT FADE-IN
============================ */
.typing-output {
    opacity: 0;
    animation: outputFade 0.4s ease forwards;
}

@keyframes outputFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================
   HISTORY PANEL SLIDE-IN
============================ */
.history-panel {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

/* ============================
   MODAL BACKDROP FADE
============================ */
.hgplus-modal.show {
    animation: modalFade 0.25s ease forwards;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================
   MODAL POP-IN
============================ */
.modal-animate {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: modalPop 0.35s ease forwards;
}

@keyframes modalPop {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================
   BUTTON LIFT
============================ */
.btn-lift:hover {
    transform: translateY(-3px);
    transition: 0.2s ease;
}

/* ============================
   BUY BUTTON GLOW PULSE
============================ */
.glow-pulse {
    animation: glowPulse 2.2s ease-in-out infinite;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 12px #00f2ea60; }
    50% { box-shadow: 0 0 22px #00f2ea; }
    100% { box-shadow: 0 0 12px #00f2ea60; }
}
body {
    opacity: 0;
    animation: bodyFade 0.6s ease forwards;
}

@keyframes bodyFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
button, .btn-glow {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover, .btn-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 14px #00f2ea80;
}
section h2 {
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 0px #00f2ea; }
    50% { text-shadow: 0 0 12px #00f2ea; }
    100% { text-shadow: 0 0 0px #00f2ea; }
}
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero p {
    animation: floatHeroP 5s ease-in-out infinite;
}

@keyframes floatHeroP {
    0% { transform: translateY(0); }
    50% { transform: translateY(4px); }
    100% { transform: translateY(0); }
}
.output-box {
    animation: outputGlow 3s ease-in-out infinite;
}

@keyframes outputGlow {
    0% { box-shadow: 0 0 0px #00f2ea40; }
    50% { box-shadow: 0 0 14px #00f2ea80; }
    100% { box-shadow: 0 0 0px #00f2ea40; }
}
.comp-pro {
    position: relative;
    overflow: hidden;
}

.comp-pro::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(120deg, #00f2ea, transparent, #00f2ea);
    animation: neonBorder 4s linear infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

@keyframes neonBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hgplus-btn {
    position: relative;
    overflow: hidden;
}

.hgplus-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: sweep 2.8s infinite;
}

@keyframes sweep {
    0% { left: -120%; }
    100% { left: 140%; }
}
.typing-output {
    opacity: 0;
    animation: outputFade 0.4s ease forwards;
    white-space: pre-line;
}
.personalization-row {
    margin-top: 25px;
}

.personalization-row h3 {
    margin-bottom: 10px;
    color: var(--primary-light);
}

.personalization-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.personalize-btn {
    background: #111;
    border: 1px solid #00f2ea60;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    transition: 0.25s ease;
}

.personalize-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px #00f2ea80;
}
/* Center all modal content */
.hgplus-modal-box {
    text-align: center;
}
/* Center modal content */
.hgplus-modal-box {
    text-align: center !important;
}

/* Center the buttons container */
.hgplus-modal-box button {
    display: inline-block !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* FORCE SCROLL AREA TO WORK ON MOBILE */
.hgplus-scroll-area {
    max-height: 60vh !important;
    overflow-y: auto !important;
    padding-right: 6px;
}

/* FIX SAFARI iOS SCROLLING */
.hgplus-scroll-area {
    -webkit-overflow-scrolling: touch !important;
}

/* PREVENT MODAL FROM EXPANDING PAST SCREEN */
.hgplus-modal-box.hgplus-wide {
    max-height: 90vh !important;
    overflow: hidden !important;
}
@media (max-width: 768px) {

    /* Modal becomes a vertical layout */
    .hgplus-modal-box {
        display: flex;
        flex-direction: column;
        height: 90vh;
        max-height: 90vh;
        overflow: hidden;
        padding-bottom: 120px; /* space for sticky buttons */
    }

    /* Scrollable content area */
    .hgplus-scroll-area {
        flex: 1;
        overflow-y: auto;
        padding-right: 10px;
    }

    /* Sticky buttons */
    #hgplusBuy,
    #hgplusClose {
        position: fixed;
        left: 0;
        width: 100%;
        border-radius: 0;
        margin: 0;
        z-index: 9999;
    }

    /* Buy button sits above Close */
    #hgplusBuy {
        bottom: 60px;
    }

    #hgplusClose {
        bottom: 0;
    }
}
/* ============================
   HOOK PACK POPUP
============================ */
.hookpack-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99998;
    animation: fadeIn 0.25s ease;
}

.hookpack-popup-box {
    background: #0d0d0d;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    border: 1px solid #00e5ff;
    box-shadow: 0 0 25px rgba(0,229,255,0.35);
    animation: popIn 0.25s ease;
}

.hookpack-btn-buy {
    display: block;
    background: linear-gradient(90deg, #ff4d4d, #ff7a00);
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 15px;
}

.hookpack-close {
    background: #222;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.hookpack-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.hookpack-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.hookpack-sticky a {
    background: #ff0050; /* your site pink */
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(0, 242, 234, 0.55); /* cyan glow */
    transition: 0.25s ease;
}

.hookpack-sticky a:hover {
    background: #ff0050; /* stays pink */
    box-shadow: 0 0 22px rgba(0, 242, 234, 0.9); /* stronger cyan glow */
    transform: translateY(-3px);
}
.length-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.length-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    transition: 0.15s ease;
}

.length-btn.active {
    background: #333;
    color: #fff;
    border-color: #555;
}
.loading-spinner {
    margin-top: 15px;
    text-align: center;
    font-weight: 700;
    color: #00e5ff;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
.pro-toggle-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    border: 2px solid #ff0050;
    background: #111;
    color: #ff0050;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 10;
}

/* When Pro Mode is active */
.generator-box.pro-active .pro-toggle-btn {
    animation: proPulse 2.2s infinite alternate;
    border-color: #00f2ea;
    color: #00f2ea;
}

/* Cyan ↔ Pink fade animation */
@keyframes proPulse {
    0% {
        box-shadow: 0 0 10px #00f2ea;
        border-color: #00f2ea;
        color: #00f2ea;
    }
    100% {
        box-shadow: 0 0 10px #ff0050;
        border-color: #ff0050;
        color: #ff0050;
    }
}
.generator-box.pro-active {
    border: 2px solid #00f2ea;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
    transition: 0.25s ease;
}
.format-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.format-options {
    display: flex;
    gap: 10px;
}

.format-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #111;
    color: #ccc;
    cursor: pointer;
    transition: 0.2s ease;
}

.format-btn.active {
    border-color: #00f2ea;
    color: #00f2ea;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.4);
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    text-align: center;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}
.generate-btn.loading {
    box-shadow: 0 0 14px rgba(255, 0, 80, 0.7);
}

.generate-btn.loading::after {
    content: " ...";
    animation: dots 1s infinite;
}

@keyframes dots {
    0% { content: " ."; }
    50% { content: " .."; }
    100% { content: " ..."; }
}
.hookpack-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
}

.hookpack-sticky a {
    background: #00e5ff;
    color: #000;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}
.hgplus-activate-btn {
    width: 100%;
    padding: 12px 0;
    margin-top: 12px;
    border-radius: 8px;
    background: #0f0f0f;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.hgplus-activate-btn:hover {
    background: var(--primary-light);
    color: #000;
}
/* Modal container (hidden by default) */
.hgplus-modal {
    position: fixed;
    inset: 0;
    display: none; /* hidden until .show is added */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* When JS adds .show → modal becomes visible */
.hgplus-modal.show {
    display: flex;
}

/* Dark blurred overlay */
.hgplus-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
}

/* Modal box */
.hgplus-modal-box {
    position: relative;
    background: #0d0d0d;
    border: 1px solid #00f2ea40;
    border-radius: 14px;
    padding: 24px;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    overflow: hidden;
    z-index: 10000;
}

/* Scroll area */
.hgplus-scroll-area {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Close button */
.hgplus-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
}
.hgplus-activate-btn {
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    border-radius: 8px;
    background: #ff0050; /* HookGen pink */
    color: #000;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.hgplus-activate-btn:hover {
    background: #00f2ea; /* HookGen cyan */
    color: #000;
}

/* LICENSE MODAL */
#licenseModal.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    z-index: 999999;
}

#licenseModal.modal.show {
    display: flex;
}

#licenseModal .modal-content {
    background: #0d0d0d;
    border: 1px solid #00f2ea40;
    box-shadow: 0 0 20px #00f2ea50;
    border-radius: 14px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    color: white;
    text-align: center;
}

#licenseModal input {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid #00f2ea60;
    background: #0f0f0f;
    color: white;
}

#activateLicenseBtn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #00f2ea;
    color: #000;
    font-weight: 700;
    cursor: pointer;
}

#closeLicenseModal {
    margin-top: 10px;
    background: transparent;
    border: none;
    color: #ff4fd8;
    cursor: pointer;
}
/* CLOSE BUTTON (styled like Activate button) */
#closeLicenseModal {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #ff0050; /* HookGen pink */
    color: #000;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.2s ease;
}

#closeLicenseModal:hover {
    background: #00f2ea; /* HookGen cyan */
    color: #000;
}
/* MOBILE FIX FOR HOOKGEN+ MODAL */
@media (max-width: 768px) {
    #hgplusModal .modal-content {
        max-height: 85vh;
        overflow-y: auto;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    #hgplusModal {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Prevent buttons from stretching full height */
    #hgplusModal button {
        flex-shrink: 0;
    }
}
#hgplusModal {
    display: none;
}

#hgplusModal.show {
    display: flex;
}
/* FIX HOOKGEN+ MODAL COLLAPSE ON MOBILE */
@media (max-width: 768px) {
    #hgplusModal .modal-content {
        max-height: 85vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-bottom: 20px;
    }

    /* Prevent ANY button from stretching full height */
    #hgplusModal button,
    #hgplusModal a {
        flex-shrink: 0 !important;
        width: 100%;
    }
}
/* FINAL FIX FOR HOOKGEN+ MODAL */
#hgplusModal .hgplus-modal-box {
    width: 95vw !important;
    max-width: 700px !important;
    max-height: 85vh !important;
    overflow: hidden;
}

/* Fix scroll area */
#hgplusModal .hgplus-scroll-area {
    max-height: 60vh !important;
    overflow-y: auto !important;
}

/* Fix mobile collapse */
@media (max-width: 768px) {
    #hgplusModal .hgplus-modal-box {
        width: 100vw !important;
        max-width: none !important;
        border-radius: 0 !important;
    }

    #hgplusModal button,
    #hgplusModal a {
        width: 100% !important;
        flex-shrink: 0 !important;
    }
}
/* ============================
   FINAL FIX FOR HOOKGEN+ MODAL
   (Overrides all conflicting CSS)
============================ */

/* Fix modal background (remove white box) */
.hgplus-modal {
    background: rgba(0,0,0,0.75) !important;
}

/* Fix modal width */
.hgplus-modal-box {
    width: 90vw !important;
    max-width: 700px !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    border: 1px solid #00f2ea !important;
    background: #0d0d0d !important;
}

/* Fix scroll area */
.hgplus-scroll-area {
    max-height: 60vh !important;
    overflow-y: auto !important;
}

/* Remove the broken "fixed buttons" rule */
#hgplusBuy,
#hgplusClose {
    position: static !important;
    width: 100% !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .hgplus-modal-box {
        width: 100vw !important;
        max-width: none !important;
        border-radius: 0 !important;
    }

    /* Prevent pink full-screen collapse */
    #hgplusModal button,
    #hgplusModal a {
        flex-shrink: 0 !important;
        width: 100% !important;
        position: static !important;
    }
}
/* ============================================================
   CLEAN HOOKGEN+ MODAL SYSTEM (PATCH)
   Desktop = centered popup
   Mobile = bottom sheet (rounded top)
============================================================ */

/* --- BASE MODAL OVERLAY --- */
#hgplusModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#hgplusModal.show {
    display: flex;
    animation: modalFade 0.25s ease forwards;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- DESKTOP MODAL BOX --- */
.hgplus-modal-box {
    background: #0d0d0d;
    border: 1px solid #00f2ea60;
    border-radius: 14px;
    padding: 28px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    animation: modalPop 0.35s ease forwards;
}

@keyframes modalPop {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- SCROLL AREA --- */
.hgplus-scroll-area {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
}

/* --- BUTTONS (DESKTOP) --- */
.hgplus-buy-btn,
.hgplus-close,
.hgplus-activate-btn {
    width: auto;
    display: inline-block;
    margin: 12px auto 0;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

/* ============================================================
   MOBILE BOTTOM SHEET (C1 + M1)
============================================================ */
@media (max-width: 768px) {

    /* Modal becomes bottom sheet */
    #hgplusModal {
        align-items: flex-end;
    }

    .hgplus-modal-box {
        width: 100vw !important;
        max-width: none !important;
        border-radius: 18px 18px 0 0 !important;
        padding: 22px;
        height: 88vh;
        max-height: 88vh;
        overflow: hidden;
        transform: translateY(100%);
        animation: bottomSheetUp 0.35s ease forwards;
    }

    @keyframes bottomSheetUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Scroll area fills remaining space */
    .hgplus-scroll-area {
        flex: 1;
        max-height: calc(88vh - 140px);
        overflow-y: auto;
        padding-right: 10px;
    }

    /* Sticky buttons at bottom */
    #hgplusBuy,
    #hgplusClose {
        position: fixed !important;
        left: 0;
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        z-index: 999999;
    }

    #hgplusBuy {
        bottom: 60px;
    }

    #hgplusClose {
        bottom: 0;
    }

    /* Prevent stretched weirdness */
    #hgplusModal button,
    #hgplusModal a {
        flex-shrink: 0 !important;
    }
}
/* ============================================================
   FIX: Close button taking full screen on mobile
============================================================ */

@media (max-width: 768px) {

    /* Make close button a small icon again */
    #hgplusClose {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        width: auto !important;
        padding: 8px 14px !important;
        border-radius: 8px !important;
        background: #111 !important;
        color: #fff !important;
        z-index: 999999 !important;
    }

    /* Buy button stays sticky at bottom */
    #hgplusBuy {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        z-index: 999998 !important;
    }
}
/* FIX: modal-content turning the entire modal white */
.modal-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* FIX: modal-content turning the modal white */
.modal-content {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ============================================================
   CLEAN HOOKGEN+ MODAL SYSTEM (FINAL)
   Desktop = centered popup
   Mobile = bottom sheet
============================================================ */

/* --- OVERLAY --- */
#hgplusModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
#hgplusModal.show {
    display: flex;
    animation: modalFade 0.25s ease forwards;
}
@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- WRAPPER (fixes white screen) --- */
#hgplusModal .modal-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- MODAL BOX (DESKTOP) --- */
.hgplus-modal-box {
    background: #0d0d0d;
    border: 1px solid #00f2ea60;
    border-radius: 14px;
    padding: 28px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 0 25px #00f2ea40, 0 0 25px #ff005040;
    animation: modalPop 0.35s ease forwards;
}
@keyframes modalPop {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- SCROLL AREA --- */
.hgplus-scroll-area {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
}

/* --- COLUMNS --- */
.hgplus-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}
.hgplus-col {
    flex: 1;
    min-width: 180px;
    background: #15151a;
    border: 1px solid #2a2a33;
    border-radius: 10px;
    padding: 16px;
}
.hgplus-col h3 {
    margin-bottom: 10px;
    color: var(--primary-light);
}
.hgplus-col ul {
    list-style: none;
    padding: 0;
}
.hgplus-col li {
    padding: 6px 0;
    border-bottom: 1px solid #222;
    opacity: 0.9;
}

/* --- BUTTONS --- */
.hgplus-buy-btn,
.hgplus-close,
.hgplus-activate-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 14px;
    cursor: pointer;
    transition: 0.25s ease;
}

/* BUY BUTTON */
.hgplus-buy-btn {
    background: var(--primary-light);
    color: #000;
    box-shadow: 0 0 14px #00f2ea60;
}
.hgplus-buy-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 22px #ff005080;
}

/* ACTIVATE BUTTON */
.hgplus-activate-btn {
    background: #111;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
}
.hgplus-activate-btn:hover {
    background: var(--primary-light);
    color: #000;
}

/* CLOSE BUTTON */
.hgplus-close {
    background: #181818;
    color: #fff;
}
.hgplus-close:hover {
    background: #222;
}

/* ============================================================
   MOBILE BOTTOM SHEET
============================================================ */
@media (max-width: 768px) {

    /* Modal becomes bottom sheet */
    #hgplusModal {
        align-items: flex-end;
    }

    .hgplus-modal-box {
        width: 100vw !important;
        max-width: none !important;
        border-radius: 18px 18px 0 0 !important;
        height: 88vh;
        max-height: 88vh;
        overflow: hidden;
        padding: 22px;
        animation: bottomSheetUp 0.35s ease forwards;
    }

    @keyframes bottomSheetUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    /* Scroll area fills remaining space */
    .hgplus-scroll-area {
        flex: 1;
        max-height: calc(88vh - 150px);
        overflow-y: auto;
        padding-right: 10px;
    }

    /* Close button becomes small pill in corner */
    #hgplusClose {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        width: auto !important;
        padding: 8px 14px !important;
        border-radius: 8px !important;
        background: #111 !important;
        color: #fff !important;
        z-index: 999999 !important;
    }

    /* Buy button stays full width at bottom */
    #hgplusBuy {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        z-index: 999998 !important;
    }

    /* Prevent weird stretching */
    #hgplusModal button,
    #hgplusModal a {
        flex-shrink: 0 !important;
    }
}
/* FIX: Mobile modal hidden behind overlay */
.hgplus-overlay {
    z-index: 99999 !important;
}

.hgplus-modal-box {
    position: relative !important;
    z-index: 100000 !important;
}
/* FIX SAFARI: disable blur overlay on mobile */
@media (max-width: 768px) {
    #hgplusModal {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0,0,0,0.85) !important;
    }
}
/* ============================================================
   SAFARI-SAFE HOOKGEN+ MODAL (FINAL)
   Removes blur + transforms on mobile to avoid iOS render bug
============================================================ */

/* DESKTOP — keep your blur + animations */
#hgplusModal {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* MOBILE FIX */
@media (max-width: 768px) {

    /* 1. REMOVE BLUR (Safari blocks modal when blur + fixed + transform exist) */
    #hgplusModal {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0,0,0,0.85) !important;
    }

    /* 2. REMOVE TRANSFORM ANIMATIONS (Safari hides children during transform) */
    .hgplus-modal-box {
        animation: none !important;
        transform: none !important;
    }

    /* 3. REMOVE BOTTOM-SHEET SLIDE (Safari breaks during translateY) */
    @keyframes bottomSheetUp { 
        from { transform: none; } 
        to { transform: none; } 
    }

    /* 4. MAKE MODAL STATIC INSIDE OVERLAY (Safari hates fixed children) */
    .hgplus-modal-box {
        position: relative !important;
        height: auto !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        border-radius: 14px !important;
        margin-bottom: 40px !important;
    }

    /* 5. FIX SCROLL AREA */
    .hgplus-scroll-area {
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* 6. FIX BUTTONS (remove fixed positioning) */
    #hgplusBuy,
    #hgplusClose {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        border-radius: 10px !important;
        margin-top: 14px !important;
    }
}
/* ============================================================
   FIX: Prevent License Modal CSS from overriding HookGen+ modal
============================================================ */

/* Rename the License modal so it stops conflicting */
#licenseModal.modal {
    display: none;
}

#licenseModal .modal-content {
    background: #0d0d0d !important;
    border: 1px solid #00f2ea40 !important;
    padding: 24px !important;
    border-radius: 14px !important;
    width: 90% !important;
    max-width: 420px !important;
    color: white !important;
}

/* Prevent .modal-content from affecting HookGen+ */
#hgplusModal .modal-content {
    all: unset !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Prevent .modal from affecting HookGen+ */
#hgplusModal.modal {
    all: unset !important;
}

/* ============================================================
   FIX: Safari collapsing HookGen+ modal content to 0 height
============================================================ */

@media (max-width: 768px) {

    /* Let modal grow naturally */
    .hgplus-modal-box {
        height: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        padding-bottom: 20px !important;
    }

    /* Make scroll area visible again */
    .hgplus-scroll-area {
        max-height: none !important;
        height: auto !important;
        overflow-y: visible !important;
    }
}
/* ============================================================
   FIX: Safari not running fade-in animations (modal invisible)
============================================================ */

@media (max-width: 768px) {

    /* Force modal content to be visible */
    #hgplusModal * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* Ensure scroll area is visible */
    .hgplus-scroll-area {
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
    }

    /* Ensure modal box is visible */
    .hgplus-modal-box {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* NEW WRAPPER FOR HOOKGEN+ MODAL */
.hgplus-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
/* FIX: Modal overlay blocking the entire page on mobile */
#hgplusModal {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* When modal is open */
#hgplusModal.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* FIX: Prevent modal content from appearing in page flow on mobile */
#hgplusModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 999999 !important;
}

/* When modal is open */
#hgplusModal.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.hgplus-info-section {
    margin-top: 60px;
    padding: 40px 20px;
    background: #0d0d0d;
    border-top: 1px solid #00f2ea40;
}

.hgplus-info-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.hgplus-info-columns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hgplus-info-col {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    width: 300px;
    border: 1px solid #333;
}

.hgplus-info-col.pro {
    border: 1px solid var(--primary-light);
    box-shadow: 0 0 18px #00f2ea60;
}

.hgplus-info-col h3 {
    margin-bottom: 15px;
    color: #fff;
}

.hgplus-info-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hgplus-info-col li {
    margin: 8px 0;
    color: #ccc;
}
/* HISTORY DROPDOWN */
.history-container {
    margin-top: 20px;
}

.history-toggle {
    width: 100%;
    padding: 12px 16px;
    background: #111;
    border: 1px solid #00f2ea60;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.history-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-left: 1px solid #00f2ea40;
    border-right: 1px solid #00f2ea40;
    border-bottom: 1px solid #00f2ea40;
    border-radius: 0 0 10px 10px;
    background: #0d0d0d;
}

.history-dropdown.open {
    max-height: 400px;
    overflow-y: auto;
}

#historyList {
    list-style: none;
    padding: 10px;
    margin: 0;
}

#historyList li {
    padding: 10px;
    border-bottom: 1px solid #222;
    color: #ccc;
}
/* HISTORY DROPDOWN */
.history-container {
    margin-top: 20px;
}

.history-toggle {
    width: 100%;
    padding: 12px 16px;
    background: #111;
    border: 1px solid #00f2ea60;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.history-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-left: 1px solid #00f2ea40;
    border-right: 1px solid #00f2ea40;
    border-bottom: 1px solid #00f2ea40;
    border-radius: 0 0 10px 10px;
    background: #0d0d0d;
}

.history-dropdown.open {
    max-height: 400px;
    overflow-y: auto;
}

#historyList {
    list-style: none;
    padding: 10px;
    margin: 0;
}

#historyList li {
    padding: 10px;
    border-bottom: 1px solid #222;
    color: #ccc;
    white-space: pre-wrap;
}
/* FIX: Modal overlay must be fixed and removed from layout */
#hgplusModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 999999 !important;

    justify-content: center;
    align-items: center;
}

/* When modal is open */
#hgplusModal.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.hgplus-modal {
    display: none;
}
.hgplus-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.history-panel {
    display: none;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    margin-top: 10px;
}

.history-panel.open {
    display: block;
}

.history-toggle-btn {
    background: #222;
    color: #fff;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-align: left;
    margin-top: 15px;
}
.seo-cta {
    margin: 40px 0 50px 0;
    text-align: center;
}

.seo-button {
    display: inline-block;
    background: #ff3b3b; /* your exact red */
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.25s ease;
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.45);
}

.seo-button:hover {
    background: #00eaff; /* cyan hover */
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(0, 234, 255, 0.6);
}
/* ============================================================
   UNIVERSAL FIX FOR HOOKGEN+ MODAL (DESKTOP + LAPTOP)
   Forces proper centering, sizing, and button visibility
============================================================ */

#hgplusModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0,0,0,0.75) !important;
    pointer-events: none !important;
    z-index: 999999 !important;
}

#hgplusModal.show {
    display: flex !important;
    pointer-events: auto !important;
}

/* Force modal box to center on ALL laptop sizes */
.hgplus-modal-box {
    position: relative !important;
    width: 90vw !important;
    max-width: 650px !important;
    max-height: 85vh !important;
    background: #0d0d0d !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    padding: 24px !important;
    z-index: 100000 !important;
    margin: 0 auto !important;
    transform: translate(0,0) !important;
}

/* Scroll area always works */
.hgplus-scroll-area {
    max-height: 60vh !important;
    overflow-y: auto !important;
}

/* Fix Buy + Close buttons disappearing on laptops */
#hgplusBuy,
#hgplusClose {
    position: static !important;
    width: 100% !important;
    margin-top: 14px !important;
    border-radius: 10px !important;
    z-index: 100001 !important;
}

/* LAPTOP FIX (1024px–1400px) */
@media (min-width: 1024px) and (max-width: 1400px) {
    .hgplus-modal-box {
        width: 70vw !important;
        max-width: 600px !important;
        max-height: 80vh !important;
    }
}
/* ============================================================
   🔥 FINAL BUTTON POSITION FIX (OVERRIDES ALL MOBILE RULES)
   Ensures buttons NEVER stick to bottom on laptops/desktops
============================================================ */

@media (min-width: 769px) {
    #hgplusBuy,
    #hgplusClose,
    .hgplus-buy-btn,
    .hgplus-close,
    .hgplus-activate-btn {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        border-radius: 10px !important;
        margin: 14px 0 0 0 !important;
    }
}
