/* ============================================================
   FREE TOOLS PAGE — free-tools.css
   Indzu Social | All devices responsive
   ============================================================ */

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

/* ── Page Wrapper ────────────────────────────────────── */
.ft-page {
    background-color: #f8fafc;
    min-height: 100vh;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Top Gradient Fade ───────────────────────────────── */
.ft-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 480px;
    background: linear-gradient(to bottom, #ffffff, #ffffff, #f8fafc);
    pointer-events: none;
    z-index: 0;
}

/* ── Main Wrapper ────────────────────────────────────── */
.ft-main {
    position: relative;
    z-index: 10;
    padding-top: 0;
    padding-bottom: 0;
}

.ft-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 640px) {
    .ft-container {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .ft-container {
        padding: 0 48px;
    }
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.ft-hero {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Dark text for H1 inline spans */
.ft-h1-dark {
    color: #111827;
}

.ft-hero-inner {
    animation: ftFadeUp 0.5s ease both;
}

/* Badge */
.ft-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    color: white;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.025em;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ft-hero-badge svg {
    width: 14px;
    height: 14px;
    fill: white;
    flex-shrink: 0;
}

/* H1 */
.ft-hero-h1 {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: #111827;
}

@media (min-width: 640px) {
    .ft-hero-h1 {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .ft-hero-h1 {
        font-size: 60px;
    }
}

.ft-hero-h1-gradient {
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* Sub */
.ft-hero-sub {
    font-size: 17px;
    color: #4b5563;
    max-width: 672px;
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .ft-hero-sub {
        font-size: 18px;
    }
}

/* Search */
.ft-search-wrap {
    position: relative;
    max-width: 576px;
}

.ft-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.ft-search-icon svg {
    width: 16px;
    height: 16px;
}

.ft-search-input {
    width: 100%;
    padding-left: 44px;
    padding-right: 40px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    font-family: inherit;
}

.ft-search-input::placeholder {
    color: #94a3b8;
}

.ft-search-input:focus {
    box-shadow: 0 0 0 2px #c084fc;
    border-color: transparent;
}

.ft-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    padding: 2px;
    line-height: 1;
    transition: color 0.2s;
}

.ft-search-clear:hover {
    color: #475569;
}

.ft-search-clear svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   SECTION 2 — CATEGORY FILTER CARDS
   ============================================================ */
.ft-filter-section {
    padding-bottom: 40px;
}

.ft-filter-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.ft-filter-header-left h2 {
    font-size: 20px;
    color: #111827;
    margin: 0 0 2px 0;
    font-weight: 700;
}

.ft-filter-header-left p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.ft-view-all-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #7c3aed;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
}

.ft-view-all-btn:hover {
    color: #6d28d9;
}

.ft-view-all-btn svg {
    width: 16px;
    height: 16px;
}

/* Filter Cards Grid — 2 → 4 → 7 columns */
.ft-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .ft-filter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .ft-filter-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Category Card */
.ft-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ft-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.ft-cat-card.active {
    border-color: #c084fc;
    box-shadow: 0 4px 6px rgba(167, 139, 250, 0.25);
}

.ft-cat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ft-cat-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.ft-cat-card.active .ft-cat-icon-wrap {
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
}

.ft-cat-card.active .ft-cat-icon-wrap svg {
      color: #ffffff !important;
    stroke: #ffffff !important;
}

.ft-cat-label {
    font-size: 11px;
    line-height: 1.25;
    color: #374151;
    font-weight: 600;
}

.ft-cat-card.active .ft-cat-label {
    color: #6d28d9;
}

.ft-cat-count {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

.ft-cat-active-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: #7c3aed;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.ft-cat-active-dot svg {
    width: 10px;
    height: 10px;
    color: white;
}

.ft-cat-card.active .ft-cat-active-dot {
    display: flex;
}

/* ============================================================
   SECTION 3 — TOOLS GRID
   ============================================================ */
.ft-tools-section {
    padding-bottom: 96px;
}

.ft-tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.ft-tools-header-left h2 {
    font-size: 20px;
    color: #111827;
    margin: 0 0 2px 0;
    font-weight: 700;
}

.ft-tools-count {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.ft-tools-count .text-slate-700 {
    color: #334155;
}

.ft-search-results-label {
    font-size: 14px;
    color: #7c3aed;
    display: none;
}

/* Tools Grid — 1 → 2 → 4 columns */
.ft-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .ft-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ft-tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Tool Card ───────────────────────────────────────── */
.ft-tool-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.38s ease, transform 0.38s ease, box-shadow 0.3s;
}

.ft-tool-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.ft-tool-card.card-visible:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px);
}

/* Card Body */
.ft-card-body {
    flex: 1;
    padding: 20px;
}

/* Tag + Platform row */
.ft-card-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    min-width: 0;
}

.ft-card-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.ft-card-platform {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Icon + Name row */
.ft-card-name-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.ft-card-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.ft-tool-card:hover .ft-card-icon-badge {
    transform: scale(1.1);
}

.ft-card-icon-badge svg {
    width: 20px;
    height: 20px;
    color: white;
}

.ft-card-title {
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
    padding-top: 2px;
    font-weight: 700;
    transition: color 0.2s;
    margin: 0;
}

.ft-tool-card:hover .ft-card-title {
    color: #6d28d9;
}

/* Description */
.ft-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Divider */
.ft-card-divider {
    margin: 0 20px;
    border: none;
    border-top: 1px solid #f1f5f9;
}

/* Footer */
.ft-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.ft-card-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.ft-card-footer-left svg {
    width: 12px;
    height: 12px;
    color: #a78bfa;
}

.ft-card-footer-right {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    transition: color 0.2s;
}

.ft-card-footer-right svg {
    width: 12px;
    height: 12px;
}

.ft-tool-card:hover .ft-card-footer-right {
    color: #7c3aed;
}

/* Hover CTA bar */
.ft-hover-cta {
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
    background: linear-gradient(90deg, #7c3aed, #2563eb);
}

.ft-tool-card:hover .ft-hover-cta {
    height: 44px;
}

.ft-hover-cta-inner {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.ft-hover-cta-inner svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.ft-empty-state {
    text-align: center;
    padding: 96px 0;
    display: none;
}

.ft-empty-icon-wrap {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ft-empty-icon-wrap svg {
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

.ft-empty-message {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 12px;
}

.ft-empty-clear-btn {
    font-size: 14px;
    color: #7c3aed;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: inherit;
    transition: color 0.2s;
}

.ft-empty-clear-btn:hover {
    color: #6d28d9;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ft-pagination {
    margin-top: 40px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: ftFadeUp 0.3s ease both;
}

.ft-page-count-text {
    font-size: 14px;
    color: #64748b;
}

.ft-page-count-text .text-slate-700 {
    color: #334155;
}

.ft-page-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.ft-page-prev,
.ft-page-next {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
}

.ft-page-prev:hover:not(:disabled),
.ft-page-next:hover:not(:disabled) {
    border-color: #d8b4fe;
    color: #7c3aed;
}

.ft-page-prev:disabled,
.ft-page-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ft-page-prev svg,
.ft-page-next svg {
    width: 16px;
    height: 16px;
}

.ft-page-prev-text,
.ft-page-next-text {
    display: none;
}

@media (min-width: 640px) {

    .ft-page-prev-text,
    .ft-page-next-text {
        display: inline;
    }
}

.ft-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ft-page-num-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
}

.ft-page-num-btn:hover:not(.active) {
    border-color: #d8b4fe;
    color: #7c3aed;
}

.ft-page-num-btn.active {
    border: none;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    cursor: default;
    box-shadow: 0 4px 6px rgba(167, 139, 250, 0.4);
}

.ft-page-ellipsis {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    user-select: none;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.ft-cta-section {
    padding-bottom: 96px;
}

.ft-cta-card {
    background: linear-gradient(90deg, #7c3aed, #2563eb, #4f46e5);
    border-radius: 24px;
    padding: 32px;
    color: white;
    overflow: hidden;
    position: relative;
}

@media (min-width: 640px) {
    .ft-cta-card {
        padding: 40px;
    }
}

.ft-cta-blur-tr {
    position: absolute;
    top: 0;
    right: 0;
    width: 256px;
    height: 256px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(96px);
    transform: translateY(-50%) translateX(25%);
    pointer-events: none;
}

.ft-cta-blur-bl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 192px;
    height: 192px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(64px);
    transform: translateY(50%) translateX(-25%);
    pointer-events: none;
}

.ft-cta-inner {
    position: relative;
    z-index: 10;
}

.ft-cta-top-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 1024px) {
    .ft-cta-top-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.ft-cta-left h3 {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .ft-cta-left h3 {
        font-size: 36px;
    }
}

.ft-cta-left p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    max-width: 576px;
    margin: 0;
    line-height: 1.6;
}

.ft-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #7e22ce;
    border: none;
    cursor: pointer;
    border-radius: 9999px;
    padding: 0 28px;
    height: 48px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

.ft-cta-btn:hover {
    background: #f5f3ff;
}

.ft-cta-btn svg {
    width: 16px;
    height: 16px;
}

/* Stats row */
.ft-cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
    .ft-cta-stats {
        gap: 24px;
    }
}

.ft-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 640px) {
    .ft-stat-item {
        gap: 12px;
    }
}

.ft-stat-icon-wrap {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ft-stat-icon-wrap svg {
    width: 20px;
    height: 20px;
    color: white;
}

.ft-stat-value {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    color: white;
}

@media (min-width: 640px) {
    .ft-stat-value {
        font-size: 24px;
    }
}

.ft-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

@media (min-width: 640px) {
    .ft-stat-label {
        font-size: 12px;
    }
}

/* ============================================================
   TOOL MODAL
   ============================================================ */
.ft-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ft-modal-overlay.open {
    display: flex;
}

.ft-modal-panel {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 672px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: ftModalIn 0.22s ease both;
}

@keyframes ftModalIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.ft-modal-header {
    border-radius: 24px 24px 0 0;
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.ft-modal-header-blur {
    position: absolute;
    top: 0;
    right: 0;
    width: 192px;
    height: 192px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(96px);
    transform: translateY(-50%) translateX(25%);
    pointer-events: none;
}

.ft-modal-header-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ft-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ft-modal-icon-badge {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.ft-modal-icon-badge svg {
    width: 24px;
    height: 24px;
    color: white;
}

.ft-modal-tool-name {
    font-size: 18px;
    color: white;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
}

.ft-modal-tool-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 2px;
}

.ft-modal-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.ft-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ft-modal-close-btn svg {
    width: 16px;
    height: 16px;
    color: white;
}

/* Modal Body */
.ft-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ft-modal-label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.ft-modal-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    font-size: 14px;
    color: #334155;
    resize: none;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    font-family: inherit;
    line-height: 1.6;
}

.ft-modal-textarea::placeholder {
    color: #94a3b8;
}

.ft-modal-textarea:focus {
    box-shadow: 0 0 0 2px #c084fc;
    border-color: transparent;
}

/* Generate Button */
.ft-modal-generate-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
    font-family: inherit;
}

.ft-modal-generate-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.ft-modal-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ft-modal-generate-btn svg {
    width: 16px;
    height: 16px;
}

/* Spinner */
.ft-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ftSpin 0.8s linear infinite;
}

@keyframes ftSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Output area */
.ft-modal-output {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: none;
    animation: ftOutputIn 0.3s ease both;
}

.ft-modal-output.visible {
    display: block;
}

@keyframes ftOutputIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ft-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.ft-output-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.ft-output-header-left svg {
    width: 16px;
    height: 16px;
    color: #a855f7;
}

.ft-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid;
    cursor: pointer;
    background: #ffffff;
    color: #7c3aed;
    border-color: #ddd6fe;
    transition: all 0.2s;
    font-family: inherit;
}

.ft-copy-btn:hover {
    background: #f5f3ff;
}

.ft-copy-btn svg {
    width: 14px;
    height: 14px;
}

.ft-copy-btn.copied {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.ft-output-text {
    background: #ffffff;
    padding: 16px;
    font-size: 14px;
    color: #334155;
    white-space: pre-wrap;
    line-height: 1.6;
}

.ft-output-regen {
    background: #f8fafc;
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ft-regen-hint {
    font-size: 12px;
    color: #94a3b8;
}

.ft-regen-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #7c3aed;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.ft-regen-btn:hover {
    color: #6d28d9;
}

.ft-regen-btn svg {
    width: 12px;
    height: 12px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes ftFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ftFadeUpCard {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ftFadeUpTool {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered entrance for category cards */
.ft-cat-card {
    opacity: 0;
    animation: ftFadeUpCard 0.3s ease both;
}

.ft-cat-card:nth-child(1) {
    animation-delay: 0.00s;
}

.ft-cat-card:nth-child(2) {
    animation-delay: 0.04s;
}

.ft-cat-card:nth-child(3) {
    animation-delay: 0.08s;
}

.ft-cat-card:nth-child(4) {
    animation-delay: 0.12s;
}

.ft-cat-card:nth-child(5) {
    animation-delay: 0.16s;
}

.ft-cat-card:nth-child(6) {
    animation-delay: 0.20s;
}

.ft-cat-card:nth-child(7) {
    animation-delay: 0.24s;
}

/* Spinner */
@keyframes ftSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal open/close overlay fade */
.ft-modal-overlay {
    animation: none;
}

.ft-modal-overlay.open {
    animation: ftOverlayIn 0.2s ease both;
}

@keyframes ftOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Pagination entrance */
.ft-pagination {
    animation: ftFadeUp 0.3s ease both;
}

/* CTA right section flex-shrink fix */
.ft-cta-right {
    flex-shrink: 0;
}
/* === Archive design safety fixes === */
.post-type-archive-tools .ft-page,
.tax-tool_category .ft-page,
.page-template-default .ft-page{
  background:#f3f5fb;
}
.post-type-archive-tools .ft-container,
.tax-tool_category .ft-container,
.page-template-default .ft-container{
  max-width:1280px;
}
.post-type-archive-tools .ft-card-title a,
.post-type-archive-tools .ft-card-description,
.post-type-archive-tools .ft-card-footer a,
.tax-tool_category .ft-card-title a,
.tax-tool_category .ft-card-description,
.tax-tool_category .ft-card-footer a{
  text-decoration:none !important;
}
.ft-card-icon-badge svg,
.ft-card-platform-token svg{
  width:22px !important;
  height:22px !important;
  display:block;
}
.ft-card-platform-token img,
.ft-platform-img-icon{
  width:22px !important;
  height:22px !important;
  object-fit:contain;
}

/* === Final archive polish: keep latest card UI without inherited link underlines === */
.post-type-archive-tools .ft-tool-card,
.post-type-archive-tools .ft-tool-card *,
.tax-tool_category .ft-tool-card,
.tax-tool_category .ft-tool-card *{
  text-decoration:none !important;
}
.post-type-archive-tools .ft-tool-card:hover,
.tax-tool_category .ft-tool-card:hover{
  text-decoration:none !important;
}
.post-type-archive-tools .ft-card-icon-badge,
.tax-tool_category .ft-card-icon-badge{
  overflow:hidden;
}
.post-type-archive-tools .ft-card-icon-badge svg,
.tax-tool_category .ft-card-icon-badge svg,
.post-type-archive-tools .ft-card-platform-token svg,
.tax-tool_category .ft-card-platform-token svg{
  width:22px !important;
  height:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  display:block !important;
}
.post-type-archive-tools .ft-card-icon-img,
.tax-tool_category .ft-card-icon-img,
.post-type-archive-tools .ft-card-platform-token img,
.tax-tool_category .ft-card-platform-token img{
  width:22px !important;
  height:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  object-fit:contain !important;
  display:block !important;
}


/* === Final dynamic archive UI fixes: icon visibility + no text decoration === */
.post-type-archive-tools .ft-tool-card,
.tax-tool_category .ft-tool-card,
body .ft-tool-card{
  text-decoration:none !important;
  color:inherit !important;
}
.post-type-archive-tools .ft-tool-card *,
.tax-tool_category .ft-tool-card *,
body .ft-tool-card *{
  text-decoration:none !important;
}
.post-type-archive-tools .ft-card-title,
.tax-tool_category .ft-card-title,
body .ft-card-title{
  color:#111827 !important;
  text-decoration:none !important;
}
.post-type-archive-tools .ft-card-desc,
.tax-tool_category .ft-card-desc,
body .ft-card-desc{
  color:#64748b !important;
  text-decoration:none !important;
}
.post-type-archive-tools .ft-card-footer,
.tax-tool_category .ft-card-footer,
body .ft-card-footer{
  text-decoration:none !important;
}
.ft-card-icon-badge{
  background:#4d36ff;
  overflow:hidden;
}
.ft-card-icon-badge > .ft-card-platform-token,
.ft-card-icon-badge > .ft-card-icon-img{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  border-radius:12px;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#fff !important;
}
.ft-card-icon-badge > .ft-card-platform-token svg,
.ft-card-icon-badge > .ft-card-platform-token svg *,
.ft-card-icon-badge > .ft-card-platform-token img{
  width:22px !important;
  height:22px !important;
  max-width:22px !important;
  max-height:22px !important;
  display:block !important;
  color:#fff !important;
  fill:currentColor;
}
.ft-card-icon-badge .ft-card-platform-token[data-platform="facebook"]{background:#1877f2;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="instagram"]{background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);}
.ft-card-icon-badge .ft-card-platform-token[data-platform="linkedin"]{background:#0a66c2;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="x"]{background:#111827;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="twitter"]{background:#111827;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="youtube"]{background:#ff0000;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="tiktok"]{background:#000;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="pinterest"]{background:#bd081c;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="threads"]{background:#000;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="bluesky"]{background:#1185fe;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="gmb"],
.ft-card-icon-badge .ft-card-platform-token[data-platform="google-my-business"]{background:#fff;border:1px solid #dbe3ef;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="social-media"]{background:#4d36ff;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="gmb"] svg,
.ft-card-icon-badge .ft-card-platform-token[data-platform="google-my-business"] svg{fill:initial !important;color:initial !important;}
.ft-card-icon-badge .ft-card-icon-img{
  object-fit:cover !important;
  padding:0 !important;
}

/* === Final tools archive/icon polish === */
.post-type-archive-tools .ft-tool-card,
.tax-tool_category .ft-tool-card,
.post-type-archive-tools .ft-tool-card *,
.tax-tool_category .ft-tool-card *{
  text-decoration:none !important;
}
.post-type-archive-tools .ft-card-title,
.tax-tool_category .ft-card-title,
.post-type-archive-tools .ft-card-desc,
.tax-tool_category .ft-card-desc,
.post-type-archive-tools .ft-card-footer,
.tax-tool_category .ft-card-footer{
  text-decoration:none !important;
}
.ft-card-icon-badge,
.ft-card-icon-badge .ft-card-platform-token{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  border-radius:12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.ft-card-icon-badge .ft-card-platform-token{
  background:#4d36ff;
  color:#fff !important;
  box-shadow:0 8px 18px rgba(77,54,255,.18);
}
.ft-card-icon-badge .ft-card-platform-token svg,
.ft-card-icon-badge .ft-card-platform-token svg *,
.ft-card-icon-badge > svg,
.ft-card-icon-badge > svg *{
  width:20px !important;
  height:20px !important;
  max-width:22px !important;
  max-height:22px !important;
  color:#fff !important;
  fill:currentColor;
  stroke:currentColor;
}
.ft-card-icon-badge .ft-card-platform-token img,
.ft-card-platform-token .ft-platform-img-icon,
.ft-card-platform-token .ft-card-icon-img{
  width:22px !important;
  height:22px !important;
  object-fit:contain !important;
  display:block !important;
}
.ft-card-icon-badge .ft-card-platform-token[data-platform="facebook"]{background:#1877f2 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="instagram"]{background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4) !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="linkedin"]{background:#0a66c2 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="x"],
.ft-card-icon-badge .ft-card-platform-token[data-platform="twitter"]{background:#111827 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="youtube"]{background:#ff0033 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="tiktok"]{background:#0f0f0f !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="pinterest"]{background:#e60023 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="threads"]{background:#0f0f0f !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="bluesky"]{background:#1083fe !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="social-media"]{background:#4d36ff !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="gmb"],
.ft-card-icon-badge .ft-card-platform-token[data-platform="google-business"],
.ft-card-icon-badge .ft-card-platform-token[data-platform="google-my-business"]{
  background:#fff !important;
  border:1px solid #dbe3ef !important;
  color:#4285f4 !important;
}
.ft-card-icon-badge .ft-card-platform-token[data-platform="gmb"] svg,
.ft-card-icon-badge .ft-card-platform-token[data-platform="gmb"] svg *,
.ft-card-icon-badge .ft-card-platform-token[data-platform="google-business"] svg,
.ft-card-icon-badge .ft-card-platform-token[data-platform="google-business"] svg *,
.ft-card-icon-badge .ft-card-platform-token[data-platform="google-my-business"] svg,
.ft-card-icon-badge .ft-card-platform-token[data-platform="google-my-business"] svg *{
  color:initial !important;
  fill:initial;
  stroke:initial;
}

/* === Final platform icon normalization: shared archive + single tools === */
.nav-icon-svg svg,
.ft-pnav-token svg,
.ft-card-platform-token svg,
.ft-form-header-icon svg,
.ft-plat-icon svg{
  width:19px;
  height:19px;
  display:block;
  flex:0 0 auto;
  font-weight:400 !important;
}
.nav-icon-svg img.ft-platform-img-icon,
.ft-pnav-token img.ft-platform-img-icon,
.ft-card-platform-token img.ft-platform-img-icon,
.ft-form-header-icon img.ft-platform-img-icon,
.ft-plat-icon img.ft-platform-img-icon{
  width:19px !important;
  height:19px !important;
  max-width:19px !important;
  max-height:19px !important;
  object-fit:contain !important;
  display:block !important;
}
.nav-icon-svg[data-platform="gmb"] svg,
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg,
.ft-card-platform-token[data-platform="gmb"] svg,
.ft-form-header-icon[data-platform="gmb"] svg,
.ft-plat-icon.ft-pi-gmb svg{
  fill:initial !important;
  stroke:initial !important;
  color:initial !important;
}
.nav-icon-svg[data-platform="gmb"] svg *,
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg *,
.ft-card-platform-token[data-platform="gmb"] svg *,
.ft-form-header-icon[data-platform="gmb"] svg *,
.ft-plat-icon.ft-pi-gmb svg *{
  fill:revert-layer !important;
  stroke:revert-layer !important;
}
.ft-card-platform-token[data-platform="gmb"] svg path,
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg path{
  stroke:none !important;
}
.ft-card-icon-badge > .ft-card-platform-token[data-platform="gmb"]{background:#fff !important;color:#4285F4 !important;border:1px solid #dbe3ef !important;}
.ft-card-icon-badge > .ft-card-platform-token:not([data-platform="gmb"]):not([data-platform="instagram"]) svg{color:#fff;fill:currentColor;}
.ft-card-icon-badge > .ft-card-platform-token:not([data-platform="gmb"]):not([data-platform="instagram"]) svg *{color:inherit;}
.ft-card-icon-badge > .ft-card-platform-token[data-platform="instagram"] svg{fill:#fff !important;}
.ft-card-icon-badge > .ft-card-platform-token[data-platform="instagram"] svg *{fill:#ffffff0c !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="facebook"]{background:#1877F2 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="instagram"]{background:linear-gradient(135deg,#F58529 0%,#DD2A7B 50%,#8134AF 100%) !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="threads"]{background:#0f0f0f !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="x"]{background:#0f0f0f !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="pinterest"]{background:#E60023 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="linkedin"]{background:#0A66C2 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="youtube"]{background:#FF0033 !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="tiktok"]{background:#0f0f0f !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="bluesky"]{background:#1083FE !important;}
.ft-card-icon-badge .ft-card-platform-token[data-platform="social-media"]{background:#1877F2 !important;}
.ft-pnav-btn[data-platform="instagram"] .ft-pnav-token svg{fill:none;stroke:currentColor;}
.ft-pnav-btn[data-platform="instagram"] .ft-pnav-token svg circle[fill="currentColor"]{fill:currentColor !important;stroke:none !important;}
.ft-pnav-btn[data-platform="social-media"] .ft-pnav-token{background:#1877F2;}
.ft-pnav-btn[data-platform="social-media"] .ft-pnav-token img.ft-platform-img-icon{filter:none;}
/* Keep Google Business Profile icon multicolor after legacy archive icon rules */
.ft-card-platform-token[data-platform="gmb"] svg path:nth-of-type(1),
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg path:nth-of-type(1),
.nav-icon-svg[data-platform="gmb"] svg path:nth-of-type(1){fill:#4285F4 !important;stroke:none !important;}
.ft-card-platform-token[data-platform="gmb"] svg path:nth-of-type(2),
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg path:nth-of-type(2),
.nav-icon-svg[data-platform="gmb"] svg path:nth-of-type(2){fill:#EA4335 !important;stroke:none !important;}
.ft-card-platform-token[data-platform="gmb"] svg path:nth-of-type(3),
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg path:nth-of-type(3),
.nav-icon-svg[data-platform="gmb"] svg path:nth-of-type(3){fill:#FBBC05 !important;stroke:none !important;}
.ft-card-platform-token[data-platform="gmb"] svg path:nth-of-type(4),
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg path:nth-of-type(4),
.nav-icon-svg[data-platform="gmb"] svg path:nth-of-type(4){fill:#34A853 !important;stroke:none !important;}
.ft-card-platform-token[data-platform="gmb"] svg path:nth-of-type(5),
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg path:nth-of-type(5),
.nav-icon-svg[data-platform="gmb"] svg path:nth-of-type(5){fill:#4285F4 !important;stroke:none !important;}
.ft-card-platform-token[data-platform="gmb"] svg path:nth-of-type(6),
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg path:nth-of-type(6),
.nav-icon-svg[data-platform="gmb"] svg path:nth-of-type(6){fill:#fff !important;stroke:none !important;}
.ft-card-platform-token[data-platform="gmb"] svg path:nth-of-type(7),
.ft-pnav-btn[data-platform="gmb"] .ft-pnav-token svg path:nth-of-type(7),
.nav-icon-svg[data-platform="gmb"] svg path:nth-of-type(7){fill:#4285F4 !important;stroke:none !important;}
