:root {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-light: #f5f3ff;
    --secondary: #06b6d4;
    --accent-pink: #ec4899;
    --bg: #ffffff;
    --surface: #fafafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --card-border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
}

#global-header {
    min-height: 61px;
    width: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px 40px;
    width: 100%;
    max-width: 100%;
}

.turbo-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

/* Hero Badge & Header */
.hero-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

h1.turbo-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 10px;
}

h1.turbo-title span {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.turbo-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

/* Viral Presets Scroller */
.presets-bar {
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
}

.presets-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.presets-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.preset-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.preset-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Turbo Workbench Card */
.workbench-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    text-align: left;
    margin-bottom: 30px;
}

.workbench-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

@media (max-width: 860px) {
    .workbench-grid {
        grid-template-columns: 1fr;
    }
}

.pane {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pane-left {
    border-right: 1px solid var(--border);
    background: #fcfcfd;
}

@media (max-width: 860px) {
    .pane-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

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

.pane-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.turbo-badge {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Input textarea */
.text-input-wrap {
    position: relative;
}

textarea.turbo-textarea {
    width: 100%;
    height: 120px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    color: var(--text);
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.turbo-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* Count Selector Pills */
.count-pills-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.multiplier-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

@media (max-width: 500px) {
    .multiplier-pills {
        grid-template-columns: repeat(3, 1fr);
    }
}

.count-pill {
    background: #ffffff;
    border: 1.5px solid var(--border);
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.count-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.count-pill.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.count-pill.featured {
    position: relative;
}

.custom-count-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s ease;
}

.custom-count-input:focus {
    border-color: var(--primary);
}

/* Options row */
.options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.opt-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.opt-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.opt-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

/* Primary Generate Button */
.btn-generate {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-top: auto;
}

.btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-generate:active {
    transform: translateY(0);
}

/* Output Pane */
.pane-right {
    background: #ffffff;
}

.output-box-wrap {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

textarea.turbo-output {
    width: 100%;
    flex: 1;
    min-height: 240px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 0.88rem;
    font-family: monospace, inherit;
    resize: none;
    outline: none;
    color: var(--text);
    background: #fafafc;
    line-height: 1.5;
}

.live-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    padding: 4px 2px;
}

/* WhatsApp Crash-Safe Chunk Box */
.wa-safe-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wa-safe-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #166534;
}

/* Action Buttons Grid */
.action-btns-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 8px;
}

@media (max-width: 500px) {
    .action-btns-grid {
        grid-template-columns: 1fr;
    }
}

.act-btn {
    border: none;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.act-btn-copy {
    background: #0f172a;
    color: #ffffff;
}

.act-btn-copy:hover {
    background: #000000;
    transform: translateY(-1px);
}

.act-btn-wa {
    background: #25d366;
    color: #ffffff;
}

.act-btn-wa:hover {
    background: #1ebc59;
    transform: translateY(-1px);
}

.act-btn-dl {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid var(--border);
}

.act-btn-dl:hover {
    background: #e2e8f0;
}

/* Chunk Splitter Buttons */
.chunk-bar {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: #fafafc;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}

.chunk-bar.active {
    display: flex;
}

.chunk-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chunk-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chunk-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

/* Value Pro & Content Sections */
.seo-article {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    color: #334155;
    line-height: 1.7;
}

.seo-article h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 36px 0 14px;
    letter-spacing: -0.02em;
}

.seo-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 22px 0 10px;
}

.seo-article p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

.seo-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
}

.seo-card-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.seo-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.seo-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* FAQ Accordion */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}

.faq-question span.arrow {
    font-size: 1.2rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-question span.arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding: 0 20px 16px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 260px;
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    border-radius: 999px;
    padding: 12px 24px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
}

/* AdSense Unit Styling (Zero-CLS & Responsive) */
.in-content-ad-wrapper {
    text-align: center;
    margin: 24px auto;
    max-width: 728px;
    width: 100%;
    min-height: 90px;
    contain: layout;
}

.in-article-ad-wrapper {
    text-align: center;
    margin: 28px auto;
    max-width: 800px;
    width: 100%;
    min-height: 90px;
    contain: layout;
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted, #64748b);
    margin-bottom: 6px;
    text-align: center;
}