/* AI Generator Tools — DesignerBox Collapsible Accordion */

/* ── No overflow fix needed — JS handles fixed positioning ── */

/* ── Hero ── */
.ai-generator-hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 120px 20px 56px;
    text-align: center;
}
.ai-generator-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.ai-generator-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.ai-generator-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 20px;
}
.ai-hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}
.ai-hero-social-proof .ai-social-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}
.ai-hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.ai-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ── Check Icon ── */
.ai-check-icon {
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
    display: inline-block;
    position: relative;
    top: -1px;
}

/* ── Section Container ── */
.ai-generator-tool-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0;
}
.ai-generator-container { width: 100%; }

.ai-generator-section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.ai-generator-section-subtitle {
    font-size: 17px;
    text-align: center;
    margin-bottom: 16px;
    color: #555;
    line-height: 1.6;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Social Proof ── */
.ai-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 13px;
    color: #71717a;
}
.ai-social-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: ai-pulse-dot 2s ease-in-out infinite;
}
@keyframes ai-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

/* ── Form container ── */
.ai-generator-form {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ═══════════════════════════════════
   ACCORDION SECTIONS
   ═══════════════════════════════════ */
.ai-section {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.ai-section:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ── Section Header (clickable for collapsible) ── */
.ai-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
}
.ai-section-toggle {
    cursor: pointer;
    user-select: none;
}
.ai-section-toggle:hover {
    background: #fafafa;
}
.ai-section-toggle:focus-visible {
    outline: 2px solid #F71EC7;
    outline-offset: -2px;
    border-radius: 14px;
}
.ai-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.ai-section-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-section-badge {
    padding: 3px 12px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #71717a;
    white-space: nowrap;
}
.ai-section-chevron {
    color: #a1a1aa;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.ai-section-open > .ai-section-toggle .ai-section-chevron {
    transform: rotate(180deg);
}

/* ── Section Body (collapsible content) ── */
.ai-section-body {
    padding: 0 28px 24px;
    display: none;
}
.ai-section-open > .ai-section-body {
    display: block;
    animation: ai-slideDown 0.3s ease-out;
}

@keyframes ai-slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Generate section (no collapse) ── */
.ai-section-generate {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    padding: 24px 28px;
    text-align: center;
}

/* ═══════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════ */
.aitiktokvideogenerator .form-group {
    margin-bottom: 20px;
}
.aitiktokvideogenerator .form-group:last-child {
    margin-bottom: 0;
}
.aitiktokvideogenerator .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 14px;
}

.ai-input, .ai-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d4d4d8;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-family: inherit;
}
.ai-input::placeholder { color: #9ca3af; }
.ai-select {
    height: 48px;
    background-color: #fafafa;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.ai-input:hover, .ai-select:hover { border-color: #a1a1aa; background: #fff; }
.ai-input:focus, .ai-select:focus {
    outline: none;
    border-color: #F71EC7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(247,30,199,0.1);
}

/* ── Script area extras ── */
.ai-script-hint {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
    line-height: 1.4;
}
.ai-help-btn {
    padding: 5px 14px;
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #d4d4d8;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.ai-help-btn:hover { background: #e4e4e7; border-color: #a1a1aa; }
.ai-help-btn:focus-visible { outline: 2px solid #F71EC7; outline-offset: 2px; }

.ai-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.ai-input-stat { font-size: 12px; color: #9ca3af; }

/* ── Form row ── */
.aitiktokvideogenerator .form-row { display: flex; gap: 16px; }
.aitiktokvideogenerator .form-row .form-group { flex: 1; }

/* ── Format radio cards ── */
.ai-format-options { display: flex; gap: 10px; }
.ai-format-option  { flex: 1; cursor: pointer; }
.ai-format-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ai-format-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    border: 1.5px solid #d4d4d8;
    border-radius: 12px;
    background: #fafafa;
    font-size: 13px;
    font-weight: 600;
    color: #52525b;
    transition: all 0.2s ease;
    cursor: pointer;
}
.ai-format-label:hover { border-color: #a1a1aa; background: #fff; }
.ai-format-option input[type="radio"]:checked + .ai-format-label {
    border-color: #F71EC7;
    background: rgba(247,30,199,0.04);
    color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(247,30,199,0.08);
}
.ai-format-option input[type="radio"]:focus-visible + .ai-format-label {
    outline: 2px solid #F71EC7; outline-offset: 2px;
}
.ai-format-icon { display: inline-flex; align-items: center; color: inherit; }

/* ── Media type card options ── */
.ai-card-options { display: flex; gap: 10px; }
.ai-card-option  { flex: 1; cursor: pointer; }
.ai-card-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ai-card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border: 1.5px solid #d4d4d8;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}
.ai-card-label:hover { border-color: #a1a1aa; background: #fff; }
.ai-card-option input[type="radio"]:checked + .ai-card-label {
    border-color: #F71EC7;
    background: rgba(247,30,199,0.04);
    box-shadow: 0 0 0 3px rgba(247,30,199,0.08);
}
.ai-card-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f0f5;
    color: #52525b;
    transition: background 0.2s, color 0.2s;
}
.ai-card-option input[type="radio"]:checked + .ai-card-label .ai-card-icon {
    background: rgba(247,30,199,0.1);
    color: #F71EC7;
}
.ai-card-text { font-size: 13px; font-weight: 600; color: #374151; }

/* ── Feature Pills (label style) ── */
.ai-feature-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #71717a;
    background: #f4f4f5;
    letter-spacing: 0.01em;
    cursor: help;
    transition: color 0.15s, background 0.15s;
    position: relative;
}
.ai-pill:hover {
    background: #e4e4e7;
    color: #52525b;
}

/* ── Pill Tooltip ── */
.ai-pill[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ai-pill[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
}
.ai-pill[data-tooltip]:hover::after,
.ai-pill[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ── Two-Column Layout ── */
.ai-generator-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* ── Preview Panel (JS-controlled fixed positioning) ── */
.ai-preview-panel {
    position: relative;
}
.ai-preview-sticky {
    transition: none;
}
.ai-preview-sticky.is-fixed {
    position: fixed;
    top: 80px;
}
.ai-preview-sticky.is-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.ai-preview-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 14px;
    overflow: hidden;
}
.ai-preview-mockup {
    display: flex;
    justify-content: center;
    padding: 24px 20px 16px;
    background: #0c0c0c;
}
.ai-preview-phone {
    width: 180px;
    height: 320px;
    background: #1a1a1a;
    border-radius: 20px;
    border: 3px solid #333;
    overflow: hidden;
    position: relative;
}
.ai-preview-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}
/* Preview example scene */
.ai-preview-example {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(145deg, #1a0a2e 0%, #16213e 40%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-preview-scene {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.ai-preview-caption {
    font-size: 11px;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: 500;
}
.ai-preview-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(247, 30, 199, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.ai-preview-play:hover {
    transform: scale(1.1);
    background: rgba(247, 30, 199, 0.5);
}
.ai-preview-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
}
.ai-preview-badge-live {
    padding: 2px 8px;
    background: rgba(247, 30, 199, 0.8);
    color: #fff;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ai-preview-info {
    padding: 16px 20px 20px;
}
.ai-preview-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}
.ai-preview-info > p {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
    line-height: 1.4;
}
.ai-preview-specs {
    display: flex;
    gap: 12px;
}
.ai-preview-spec {
    font-size: 12px;
    color: #71717a;
    padding: 4px 10px;
    background: #f4f4f5;
    border-radius: 6px;
}
.ai-preview-spec strong {
    color: #1a1a1a;
}

/* ── Field description ── */
.ai-field-desc {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

/* ── Media Cards (revid style with thumbnails) ── */
.ai-media-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ai-media-card { cursor: pointer; }
.ai-media-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ai-media-card-inner {
    border: 1.5px solid #e4e4e7;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-media-card-inner:hover { border-color: #a1a1aa; }
.ai-media-card input[type="radio"]:checked + .ai-media-card-inner {
    border-color: #F71EC7;
    box-shadow: 0 0 0 3px rgba(247,30,199,0.08);
}
.ai-media-thumb {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-bottom: 1px solid #f0f0f0;
}
.ai-media-check {
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    background: #F71EC7;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}
.ai-media-card input[type="radio"]:checked + .ai-media-card-inner .ai-media-check {
    display: flex;
}
.ai-media-info {
    padding: 10px 12px;
}
.ai-media-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}
.ai-media-info span {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}

/* ── Model Picker (Base / Pro / Ultra) ── */
.ai-model-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ai-model-pills {
    display: flex;
    background: #f4f4f5;
    border-radius: 10px;
    padding: 3px;
    flex-shrink: 0;
}
.ai-model-pill { cursor: pointer; }
.ai-model-pill input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.ai-model-pill span {
    display: block;
    padding: 8px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #71717a;
    transition: all 0.2s;
    cursor: pointer;
}
.ai-model-pill input[type="radio"]:checked + span {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ai-model-pill span:hover { color: #1a1a1a; }
.ai-model-info strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
}
.ai-model-desc {
    font-size: 12px;
    color: #9ca3af;
}

/* ── Tabs (Voice section) ── */
.ai-tabs {
    display: flex;
    background: #f4f4f5;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
}
.ai-tab {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.ai-tab:hover { color: #1a1a1a; }
.ai-tab.active {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ai-tab-panel { display: none; }
.ai-tab-panel.active { display: block; }

/* ── Upload / Dropzone ── */
.ai-upload-zone { margin-top: 4px; }
.ai-upload-zone > p { font-size: 13px; color: #9ca3af; margin-bottom: 12px; }
.ai-dropzone {
    border: 2px dashed #d4d4d8;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ai-dropzone:hover { border-color: #F71EC7; background: rgba(247,30,199,0.02); }
.ai-dropzone span { font-size: 13px; color: #71717a; }

.ai-muted-text { font-size: 14px; color: #9ca3af; padding: 12px 0; }

/* ═══════════════════════════════════
   TOGGLE SWITCHES
   ═══════════════════════════════════ */
.ai-toggle-group {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    overflow: hidden;
}
.ai-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.ai-toggle-row:last-child { border-bottom: none; }
.ai-toggle-label { font-size: 14px; font-weight: 500; color: #374151; }
.ai-toggle {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}
.ai-toggle input { opacity: 0; width: 0; height: 0; }
.ai-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #d4d4d8;
    border-radius: 12px;
    transition: background 0.25s ease;
}
.ai-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.ai-toggle input:checked + .ai-toggle-slider { background: #F71EC7; }
.ai-toggle input:checked + .ai-toggle-slider::before { transform: translateX(20px); }
.ai-toggle input:focus-visible + .ai-toggle-slider { outline: 2px solid #F71EC7; outline-offset: 2px; }

/* ═══════════════════════════════════
   GENERATE BUTTON
   ═══════════════════════════════════ */
.ai-generate-btn {
    width: 100%;
    padding: 16px 32px;
    background: #F71EC7;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.ai-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(247,30,199,0.3);
}
.ai-generate-btn:active { transform: translateY(0) scale(0.98); transition-duration: 100ms; }
.ai-generate-btn:focus-visible { outline: 2px solid #F71EC7; outline-offset: 2px; }
.ai-generate-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.ai-generate-subtext {
    margin-top: 12px;
    font-size: 13px;
    color: #71717a;
}

/* ── Error ── */
.ai-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    border-left: 4px solid #ef4444;
    text-align: left;
}
.ai-error.hidden { display: none; }

/* ── Spinner ── */
.ai-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ai-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════
   SCRIPT TIPS MODAL
   ═══════════════════════════════════ */
.ai-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ai-modal.hidden { display: none; }
.ai-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
.ai-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: ai-modalIn 0.25s ease-out;
}
@keyframes ai-modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ai-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.ai-modal-header h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0; }
.ai-modal-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    font-size: 22px; color: #71717a; cursor: pointer;
    border-radius: 8px; transition: background 0.15s;
}
.ai-modal-close:hover { background: #f4f4f5; }
.ai-modal-body { padding: 20px 28px; }
.ai-modal-body p { font-size: 14px; color: #374151; line-height: 1.6; margin-bottom: 14px; }
.ai-modal-body h4 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; margin-top: 8px; }
.ai-script-example {
    background: #f4f4f5;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 13px;
    color: #52525b;
    line-height: 1.7;
    white-space: pre-wrap;
    font-family: inherit;
    border: none;
    overflow-x: auto;
}
.ai-modal-footer { padding: 16px 28px 24px; display: flex; justify-content: flex-end; }
.ai-modal-got-it {
    padding: 10px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.ai-modal-got-it:hover { background: #333; }
.ai-modal-got-it:focus-visible { outline: 2px solid #F71EC7; outline-offset: 2px; }

/* ═══════════════════════════════════
   4-STEP CARDS
   ═══════════════════════════════════ */
.ai-steps-section {
    background: #111;
    padding: 64px 20px;
    color: #fff;
}
.ai-steps-container {
    max-width: 1100px;
    margin: 0 auto;
}
.ai-steps-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
}
.ai-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ai-step-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 28px 22px;
}
.ai-step-num {
    font-size: 28px;
    font-weight: 800;
    color: #F71EC7;
    margin-bottom: 12px;
    opacity: 0.6;
}
.ai-step-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.ai-step-card p {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

/* ═══════════════════════════════════
   VIDEO SHOWCASE
   ═══════════════════════════════════ */
.ai-showcase-section {
    background: #111;
    padding: 64px 20px;
    color: #fff;
}
.ai-showcase-container {
    max-width: 1100px;
    margin: 0 auto;
}
.ai-showcase-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.ai-showcase-subheading {
    text-align: center;
    font-size: 15px;
    color: #9ca3af;
    margin-bottom: 48px;
}
.ai-showcase-item {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px;
}
.ai-showcase-item.ai-showcase-reverse {
    grid-template-columns: 280px 1fr;
    direction: rtl;
}
.ai-showcase-item.ai-showcase-reverse > * {
    direction: ltr;
}
.ai-showcase-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.ai-showcase-text > p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 16px;
}
.ai-showcase-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ai-showcase-bullets li {
    font-size: 13px;
    color: #d4d4d8;
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
}
.ai-showcase-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #F71EC7;
    background: rgba(247, 30, 199, 0.15);
}
.ai-showcase-visual {
    display: flex;
    justify-content: center;
}
.ai-showcase-phone {
    width: 180px;
    height: 320px;
    background: #222;
    border-radius: 20px;
    border: 3px solid #333;
    overflow: hidden;
}
.ai-showcase-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}
.ai-showcase-placeholder {
    text-align: center;
    color: #52525b;
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 768px) {
    .ai-generator-hero { padding: 180px 16px 40px; }
    .ai-generator-hero-title { font-size: 28px; }
    .ai-generator-hero-subtitle { font-size: 15px; }
    .ai-hero-pills { gap: 8px; }
    .ai-hero-pill { font-size: 12px; padding: 6px 12px; }
    .ai-generator-tool-section { padding: 24px 12px 0; margin: 0 auto; }
    .ai-generator-section-title { font-size: 24px; }
    .ai-generator-section-subtitle { font-size: 15px; }
    .ai-section-header { padding: 16px 20px; }
    .ai-section-body { padding: 0 20px 20px; }
    .ai-section-generate { padding: 20px; }
    .ai-section-badge { display: none; }

    .aitiktokvideogenerator .form-row { flex-direction: column; gap: 0; }
    .ai-format-options { flex-direction: column; gap: 8px; }
    .ai-format-label { flex-direction: row; padding: 14px 16px; }
    .ai-card-options { flex-direction: column; gap: 8px; }
    .ai-card-label { flex-direction: row; padding: 14px 16px; }
    .ai-media-cards { grid-template-columns: repeat(2, 1fr); }
    .ai-model-row { flex-direction: column; align-items: flex-start; }
    .ai-generator-layout { grid-template-columns: 1fr; }
    .ai-preview-panel { display: none; }
    .ai-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-showcase-item,
    .ai-showcase-item.ai-showcase-reverse { grid-template-columns: 1fr; padding: 24px; }
    .ai-showcase-visual { order: -1; }
    .ai-showcase-item.ai-showcase-reverse { direction: ltr; }

    .ai-generate-btn { padding: 14px 24px; font-size: 15px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .ai-section-open > .ai-section-body { animation: none; }
    .ai-generate-btn { transition: none; }
    .ai-generate-btn:hover { transform: none; }
    .ai-spinner { animation: none; }
    .ai-social-dot { animation: none; }
    .ai-section-chevron { transition: none; }
}
