.tools-section {
    padding: 70px 0 100px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 142, 228, 0.06) 0%, transparent 55%),
        #f8f9fc;
    font-family: var(--body-font, "Plus Jakarta Sans", system-ui, sans-serif);
}

.tools-section--index {
    padding: 36px 0 72px;
}

.tools-index-banner {
    background: linear-gradient(180deg, #f0f4ff 0%, #f8f9fc 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tools-index-banner .page-banner__inner {
    padding-top: 108px !important;
    padding-bottom: 20px !important;
}

.tools-index-banner h1 span {
    color: #25d366;
}

.tools-index-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 44px;
}

.tools-index-stat {
    background: #fff;
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 20, 40, 0.04);
}

.tools-index-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #128c41;
    line-height: 1.1;
    margin-bottom: 4px;
}

.tools-index-stat span {
    font-size: 13px;
    font-weight: 600;
    color: #667085;
}

.tools-category {
    margin-bottom: 48px;
}

.tools-category:last-child {
    margin-bottom: 0;
}

.tools-category__head {
    margin-bottom: 22px;
}

.tools-category__head h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--title-color);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.tools-category__head p {
    margin: 0;
    color: #667085;
    font-size: 15px;
}

.tools-index-seo {
    padding-top: 0;
    padding-bottom: 80px;
}

.tools-index-seo__lead {
    max-width: 720px;
    margin: 12px auto 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.7;
}

.fmt-tool-cta__inner p {
    margin: 0 0 14px;
    color: #667085;
    font-size: 15px;
}

.tool-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(37, 211, 102, 0.12);
    color: #128c41;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 999px;
    z-index: 1;
}

.tool-card:hover .tool-card__badge {
    background: rgba(37, 211, 102, 0.2);
}

@media (max-width: 767px) {
    .tools-index-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 32px;
    }

    .tools-category__head h2 {
        font-size: 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .tools-section--index {
        padding: 24px 0 56px;
    }

    .tool-card {
        min-height: 0;
    }
}

/* Kill full-width line under page banner on tools pages */
.tools-page .page-banner,
.tools-page .page-banner--compact {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.tools-page .page-banner::after,
.tools-page .page-banner--compact::after,
.tools-page .page-banner::before {
    content: none !important;
    display: none !important;
    height: 0 !important;
    background: none !important;
}

.tools-intro {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.tools-intro p {
    color: #555;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 0;
}

.tools-intro--compact {
    margin-bottom: 44px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.tool-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(47, 142, 228, 0.1);
    border-radius: 18px;
    padding: 26px 24px 22px;
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 8px 28px rgba(15, 20, 40, 0.06);
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #35e7ea 0%, #2f8ee4 50%, #1a6fc4 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 142, 228, 0.28);
    box-shadow: 0 20px 48px rgba(47, 142, 228, 0.14);
    color: inherit;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card__arrow {
    position: absolute;
    right: 20px;
    bottom: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 142, 228, 0.08);
    color: var(--base-color);
    font-size: 14px;
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.tool-card:hover .tool-card__arrow {
    opacity: 1;
    transform: translate(0, 0);
    background: linear-gradient(135deg, #35e7ea 0%, #2f8ee4 100%);
    color: #fff;
}

.tool-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(47, 142, 228, 0.14) 0%, rgba(53, 231, 234, 0.14) 100%);
    color: var(--base-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 18px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(47, 142, 228, 0.18);
}

.tool-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--title-color);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.tool-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 18px;
}

.tool-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--base-color);
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 20, 40, 0.06);
    transition: color 0.2s ease, gap 0.2s ease;
}

.tool-card-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-link {
    color: #1a6fc4;
    gap: 12px;
}

.tool-card:hover .tool-card-link i {
    transform: translateX(3px);
}

.tool-workspace-section {
    padding: 70px 0 90px;
    background: #f8f9fc;
}

.tool-workspace-section--compact {
    padding: 12px 0 40px;
}

.tool-workspace {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(47, 142, 228, 0.12);
    box-shadow: 0 12px 40px rgba(15, 20, 40, 0.08);
    overflow: hidden;
}

.tool-workspace--compact {
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 20, 40, 0.06);
}

.tool-workspace--compact .tool-workspace-body {
    padding: 20px 22px 22px;
}

.tool-workspace-header {
    padding: 28px 32px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tool-workspace-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--title-color);
}

.tool-workspace-header p {
    color: #666;
    margin-bottom: 24px;
}

.tool-workspace-header--compact {
    padding-top: 24px;
    border-bottom: none;
}

.tool-workspace-header--compact p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.65;
    max-width: 720px;
}

.tool-info-head {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: left;
}

.tool-info-head.text-center {
    text-align: center;
}

.tool-info-head h2 {
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.tool-info-head p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.tool-info-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--base-color);
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(47, 142, 228, 0.08);
    border: 1px solid rgba(47, 142, 228, 0.15);
}

/* Message Formatter — classic UI (WhatsForm-style) */
.fmt-tool--classic {
    max-width: 960px;
    margin: 0 auto;
}

.fmt-tool__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
    align-items: stretch;
}

.fmt-tool__columns .fmt-editor,
.fmt-tool__columns .fmt-preview-panel {
    min-height: 320px;
}

.fmt-preview-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.fmt-wa-mock {
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.fmt-wa-mock__top {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e5ea;
    background: #fafbfc;
}

.fmt-wa-mock__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #25d366;
}

.fmt-wa-mock__chat {
    flex: 1;
    padding: 16px;
    background: #e5ddd5 url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cdc4' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    align-items: flex-end;
}

.fmt-wa-bubble {
    position: relative;
    max-width: 92%;
    background: #fff;
    border-radius: 8px 8px 8px 0;
    padding: 8px 10px 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    margin-left: 8px;
}

.fmt-wa-bubble::before {
    content: "";
    position: absolute;
    left: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 12px 8px;
    border-color: transparent transparent #fff transparent;
}

.fmt-wa-bubble__text {
    font-size: 15px;
    line-height: 1.55;
    color: #111b21;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.fmt-wa-bubble__empty {
    color: #8696a0;
    font-size: 14px;
}

.fmt-wa-bubble__time {
    position: absolute;
    right: 8px;
    bottom: 4px;
    font-size: 11px;
    color: #8696a0;
    line-height: 1;
}

/* Preview formatting — scoped classes (avoids theme overrides) */
.fmt-wa-bubble__text .fmt-fmt-bold {
    font-weight: 700 !important;
    color: #111b21;
}

.fmt-wa-bubble__text .fmt-fmt-italic {
    font-style: italic !important;
}

.fmt-wa-bubble__text .fmt-fmt-strike {
    text-decoration: line-through !important;
    opacity: 0.85;
}

.fmt-wa-bubble__text .fmt-fmt-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 4px;
    border-radius: 3px;
}

.fmt-wa-bubble__text .fmt-fmt-quote {
    display: block;
    margin: 6px 0;
    padding: 6px 10px 6px 12px;
    border-left: 3px solid #25d366;
    background: rgba(37, 211, 102, 0.08);
    border-radius: 0 4px 4px 0;
    color: #333;
}

.fmt-wa-bubble__text .fmt-ul,
.fmt-wa-bubble__text .fmt-ol {
    margin: 6px 0;
    padding-left: 20px;
}

.fmt-wa-bubble__text .fmt-ul li,
.fmt-wa-bubble__text .fmt-ol li {
    margin: 2px 0;
    list-style-position: outside;
}

.fmt-wa-bubble__text .fmt-ul li {
    list-style-type: disc;
}

.fmt-wa-bubble__text .fmt-ol li {
    list-style-type: decimal;
}

.fmt-preview-panel__head {
    display: none;
}

.fmt-tool__preview--classic {
    flex: 1;
    min-height: 260px;
    margin: 0;
}

.fmt-editor {
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fmt-editor__toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e5ea;
    background: #fafbfc;
    flex-wrap: wrap;
}

.fmt-editor__toolbar button {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #555;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.fmt-editor__toolbar button:hover {
    background: #eef1f5;
    color: #222;
}

.fmt-editor__input {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #111b21;
    resize: none;
    flex: 1;
    min-height: 260px;
    font-family: inherit;
    background: #fff;
}

.fmt-editor__input:focus {
    box-shadow: none;
}

.fmt-tool__actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
    align-items: stretch;
}

.fmt-tool__actions-row .fmt-btn,
a.fmt-btn,
button.fmt-btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 20px !important;
    margin: 0;
    border: none !important;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.fmt-tool__actions-row .fmt-btn i {
    font-size: 16px;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fmt-tool__actions-row .fmt-btn:hover,
a.fmt-btn:hover,
button.fmt-btn:hover {
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

.fmt-btn--copy {
    background: #2f8ee4 !important;
    color: #fff !important;
}

.fmt-btn--copy:hover {
    background: #2578c4 !important;
    color: #fff !important;
}

.fmt-btn--whatsapp {
    background: #25d366 !important;
    color: #fff !important;
}

.fmt-btn--whatsapp:hover {
    background: #1fb855 !important;
    color: #fff !important;
}

.fmt-btn--whatsapp.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Message Unsaved Number tool */
.unsaved-editor {
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.unsaved-editor__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
}

.unsaved-editor .tool-form-group {
    margin-bottom: 14px;
}

.unsaved-editor .tool-form-group:last-child {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.unsaved-editor .tool-form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.unsaved-editor .tool-form-group label small {
    font-weight: 500;
    color: #999;
}

.unsaved-editor .tool-form-group input,
.unsaved-editor .tool-form-group textarea,
.unsaved-select {
    width: 100%;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #111b21;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.unsaved-editor .tool-form-group textarea {
    resize: none;
    min-height: 110px;
    flex: 1;
    line-height: 1.5;
}

.unsaved-editor .tool-form-group input:focus,
.unsaved-editor .tool-form-group textarea:focus,
.unsaved-select:focus {
    outline: none;
    border-color: #2f8ee4;
    box-shadow: 0 0 0 3px rgba(47, 142, 228, 0.12);
}

.unsaved-preview-meta {
    width: 100%;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #54656f;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 6px 12px;
    text-align: center;
}

.unsaved-link-box {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f4f8fd;
    border: 1px dashed rgba(47, 142, 228, 0.3);
    border-radius: 12px;
}

.unsaved-link-box__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2f8ee4;
    margin-bottom: 8px;
}

.unsaved-link-box__input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    color: #333;
    padding: 0;
    outline: none;
}

/* Link Generator result panel */
.link-result {
    margin-bottom: 16px;
    border: 1px solid rgba(47, 142, 228, 0.18);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(47, 142, 228, 0.06);
}

.link-result__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f4f8fd;
    border-bottom: 1px solid rgba(47, 142, 228, 0.12);
}

.link-result__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4f91;
}

.link-result__title i {
    color: #2f8ee4;
}

.link-result__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(47, 142, 228, 0.12);
    color: #2f8ee4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.link-result__badge.is-ready {
    background: rgba(37, 211, 102, 0.14);
    color: #128c41;
}

.link-result__row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.link-result__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    color: #111b21;
    padding: 14px 16px;
    outline: none;
}

.link-result__input::placeholder {
    color: #98a2b3;
    font-family: inherit;
    font-size: 13px;
}

.link-result__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border: none;
    border-left: 1px solid rgba(47, 142, 228, 0.12);
    background: #f4f8fd;
    color: #1d4f91;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.link-result__copy:hover {
    background: #e8f1fb;
    color: #2f8ee4;
}

.link-result__hint {
    padding: 10px 14px;
    border-top: 1px solid rgba(15, 20, 40, 0.06);
    background: #fafbfc;
    font-size: 12px;
    font-weight: 500;
    color: #667085;
}

.link-result__hint strong {
    color: #111b21;
    font-weight: 700;
}

.link-tool .fmt-wa-mock__chat {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
}

@media (max-width: 575px) {
    .link-result__row {
        flex-direction: column;
    }

    .link-result__copy {
        justify-content: center;
        border-left: none;
        border-top: 1px solid rgba(47, 142, 228, 0.12);
        padding: 12px 16px;
    }
}

.unsaved-tool .fmt-wa-mock__chat {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
}

/* Website Widget tool */
.widget-options {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
}

.widget-color-input {
    width: 56px !important;
    height: 44px !important;
    padding: 4px !important;
    border-radius: 10px !important;
    cursor: pointer;
    background: #fff;
}

.widget-site-mock {
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
    box-shadow: 0 10px 30px rgba(15, 20, 40, 0.06);
}

.widget-site-mock__top {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e5ea;
    background: #f3f5f8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-site-mock__dots {
    width: 42px;
    height: 10px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 5px),
        radial-gradient(circle at 21px 5px, #febc2e 4px, transparent 5px),
        radial-gradient(circle at 37px 5px, #28c840 4px, transparent 5px);
    flex-shrink: 0;
}

.widget-site-mock__url {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 999px;
    padding: 5px 12px;
}

.widget-site-mock__url i {
    font-size: 10px;
    color: #98a2b3;
}

.widget-site-mock__live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #12b76a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.widget-site-mock__live i {
    font-size: 7px;
    animation: widget-pulse 1.4s ease infinite;
}

@keyframes widget-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.widget-site-mock__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(15, 20, 40, 0.06);
    background: #fff;
}

.widget-site-mock__logo {
    width: 72px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f8ee4, #35e7ea);
    margin-right: auto;
}

.widget-site-mock__nav > span:not(.widget-site-mock__logo) {
    width: 36px;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 20, 40, 0.08);
}

.widget-site-mock__page {
    position: relative;
    flex: 1;
    min-height: 240px;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(47, 142, 228, 0.08), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
    padding: 18px 16px 56px;
}

.widget-site-mock__hero {
    background: #fff;
    border: 1px solid rgba(15, 20, 40, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(15, 20, 40, 0.04);
}

.widget-site-mock__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2f8ee4;
    background: rgba(47, 142, 228, 0.1);
    border-radius: 999px;
    padding: 4px 8px;
    margin-bottom: 12px;
}

.widget-site-mock__line {
    height: 10px;
    border-radius: 6px;
    background: rgba(15, 20, 40, 0.08);
    margin-bottom: 10px;
}

.widget-site-mock__line--title {
    height: 14px;
    width: 78%;
    background: rgba(15, 20, 40, 0.14);
}

.widget-site-mock__line--short {
    width: 45%;
}

.widget-site-mock__line--mid {
    width: 68%;
}

.widget-site-mock__cta-fake {
    width: 88px;
    height: 28px;
    border-radius: 999px;
    margin-top: 6px;
    background: linear-gradient(135deg, #35e7ea, #2f8ee4);
}

.widget-site-mock__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.widget-site-mock__card {
    height: 54px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(15, 20, 40, 0.06);
}

.widget-site-mock__meta {
    padding: 10px 14px;
    border-top: 1px solid #e2e5ea;
    background: #fafbfc;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-site-mock__meta i {
    color: #25d366;
}

.widget-site-mock__meta strong {
    color: #111b21;
}

.widget-float-wrap {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.widget-float-wrap.is-left {
    align-items: flex-start;
}

.widget-tooltip {
    max-width: 180px;
    background: #111b21;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.widget-float-wrap:hover .widget-tooltip,
.widget-float-wrap:focus-within .widget-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.widget-float-btn {
    position: relative;
    right: auto;
    bottom: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: widget-bob 2.4s ease-in-out infinite;
}

.widget-float-btn:hover {
    transform: scale(1.06);
    color: #fff !important;
    animation: none;
}

.widget-float-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    animation: none;
}

@keyframes widget-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Embed code panel */
.widget-embed {
    margin-bottom: 16px;
    border: 1px solid #1e293b;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.widget-embed__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-embed__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}

.widget-embed__lang {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(47, 142, 228, 0.2);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.widget-embed__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.widget-embed__copy:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.widget-embed__body {
    padding: 14px 16px;
    max-height: 220px;
    overflow: auto;
}

.widget-embed__pre {
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

.widget-embed__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #cbd5e1;
}

.widget-embed__code .tok-comment {
    color: #64748b;
    font-style: italic;
}

.widget-embed__code .tok-tag {
    color: #7dd3fc;
}

.widget-embed__code .tok-attr {
    color: #fbbf24;
}

.widget-embed__code .tok-str {
    color: #86efac;
}

.widget-embed__hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.widget-embed__tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(47, 142, 228, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 500;
}

.widget-embed__tip i {
    color: #7dd3fc;
}

.widget-embed__tip code {
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

@media (max-width: 575px) {
    .widget-options {
        grid-template-columns: 1fr;
    }
}

.fmt-tool__steps-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.fmt-tool__step-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fmt-tool__step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fmt-tool__step-label {
    font-size: 15px;
    color: #888;
    font-weight: 500;
}

.fmt-tool__steps-bottom .fmt-tool__step-arrow {
    font-size: 12px;
    color: #ccc;
}

@media (max-width: 767px) {
    .fmt-tool__columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .fmt-tool__actions-row {
        grid-template-columns: 1fr;
    }

    .fmt-tool__steps-bottom {
        gap: 10px;
    }

    .fmt-tool__step-label {
        font-size: 13px;
    }
}

/* Message Formatter — compact layout */
.fmt-tool--compact .fmt-tool__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fmt-tool__steps--inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fmt-tool__steps--inline .fmt-tool__step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.fmt-tool__steps--inline .fmt-tool__step b {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #35e7ea 0%, #2f8ee4 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fmt-tool__step-arrow {
    font-size: 10px;
    color: #ccc;
}

.fmt-tool--compact .fmt-tool__quick {
    margin: 0;
    flex-shrink: 0;
}

.fmt-tool--compact .fmt-tool__select {
    max-width: 200px;
    padding: 8px 12px;
    font-size: 13px;
}

.format-toolbar--compact {
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: none;
    gap: 6px;
}

.format-toolbar--compact button {
    padding: 7px 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.format-toolbar--compact button span {
    display: inline;
}

.fmt-tool--compact .fmt-tool__grid {
    gap: 14px;
    margin-bottom: 14px;
}

.fmt-tool--compact .fmt-tool__panel textarea {
    min-height: 200px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
}

.fmt-tool--compact .fmt-tool__preview {
    min-height: 200px;
    padding: 12px 14px;
    font-size: 14px;
}

.fmt-tool__meta {
    font-size: 12px;
    color: #999;
}

.fmt-tool__link-btn {
    border: none;
    background: none;
    color: var(--base-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.fmt-tool__link-btn:hover {
    text-decoration: underline;
}

.fmt-tool__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.fmt-tool__footer .fmt-tool__phone {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.fmt-tool__footer .fmt-tool__phone input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.fmt-tool__footer .fmt-tool__phone input:focus {
    outline: none;
    border-color: var(--base-color);
    box-shadow: 0 0 0 3px rgba(47, 142, 228, 0.12);
}

.fmt-tool__actions {
    margin: 0;
    flex-shrink: 0;
}

.tool-btn--sm {
    padding: 9px 18px !important;
    font-size: 14px !important;
}

.fmt-tool--compact .fmt-tool__syntax {
    margin-top: 14px;
    font-size: 13px;
}

.fmt-tool--compact .fmt-tool__syntax summary {
    padding: 10px 0;
}

.fmt-tool--compact .fmt-tool__syntax-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.tool-info-section--compact {
    padding: 0 0 40px;
}

.tool-info-section--compact .tool-info-block {
    margin-bottom: 36px;
}

.tool-info-section--compact .tool-info-head {
    margin-bottom: 24px;
}

.tool-info-section--compact .tool-info-head h2 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 0;
}

.tool-feature-grid--compact {
    gap: 16px;
}

.tool-feature-grid--compact .tool-feature-card {
    padding: 20px 18px;
}

.tool-feature-grid--compact .tool-feature-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.tool-feature-grid--compact .tool-feature-card p {
    font-size: 14px;
    line-height: 1.55;
}

.tool-feature-grid--compact .tool-feature-icon {
    width: 42px;
    height: 42px;
    font-size: 17px;
    margin-bottom: 12px;
}

.fmt-tool-cta--compact {
    padding: 24px 28px;
    margin-top: 8px;
}

.fmt-tool-cta--compact .fmt-tool-cta__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fmt-tool-cta--compact .fmt-tool-cta__inner h3 {
    font-size: 18px;
    margin: 0;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.tool-btn-whatsapp.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Message Formatter tool (legacy + shared) */
.fmt-tool__intro {
    margin-bottom: 24px;
}

.fmt-tool__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fmt-tool__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f4f8fd;
    border: 1px solid rgba(47, 142, 228, 0.12);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--title-color);
    line-height: 1.45;
}

.fmt-tool__step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #35e7ea 0%, #2f8ee4 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fmt-tool__quick {
    margin-bottom: 18px;
}

.fmt-tool__quick label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--title-color);
}

.fmt-tool__select {
    width: 100%;
    max-width: 360px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
}

.format-toolbar--enhanced {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fmt-tool__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.fmt-tool__panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fmt-tool__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.fmt-tool__panel-head label {
    font-weight: 600;
    color: var(--title-color);
    margin: 0;
}

.fmt-tool__meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

.fmt-tool__preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

.fmt-tool__panel textarea {
    width: 100%;
    min-height: 280px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.65;
    resize: vertical;
    font-family: inherit;
}

.fmt-tool__panel textarea:focus {
    outline: none;
    border-color: var(--base-color);
    box-shadow: 0 0 0 3px rgba(47, 142, 228, 0.15);
}

.fmt-tool__panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fmt-tool__preview {
    min-height: 280px;
    padding: 18px;
    background: linear-gradient(180deg, #e8f5e9 0%, #eef4fc 100%);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 12px;
    line-height: 1.65;
    overflow-y: auto;
}

.fmt-tool__preview-empty {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.fmt-tool__preview-content strong {
    font-weight: 700;
}

.fmt-tool__preview-content em {
    font-style: italic;
}

.fmt-tool__preview-content del {
    opacity: 0.75;
}

.fmt-tool__preview-content blockquote {
    margin: 8px 0;
    padding: 10px 14px;
    border-left: 3px solid #25d366;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 0 8px 8px 0;
    color: #444;
}

.fmt-tool__preview-content .fmt-inline-code,
.fmt-tool__preview-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.fmt-tool__preview-content .fmt-bullet,
.fmt-tool__preview-content .fmt-numbered {
    display: list-item;
    margin-left: 20px;
}

.fmt-tool__raw {
    padding: 12px 14px;
    background: #1e2433;
    border-radius: 10px;
}

.fmt-tool__raw-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.fmt-tool__raw code {
    display: block;
    color: #d7e3ff;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fmt-tool__phone input {
    width: 100%;
    max-width: 360px;
}

.fmt-tool__syntax {
    margin-top: 24px;
    padding: 16px 18px;
    background: #f4f8fd;
    border: 1px solid rgba(47, 142, 228, 0.12);
    border-radius: 12px;
}

.fmt-tool__syntax summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--title-color);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fmt-tool__syntax summary::-webkit-details-marker {
    display: none;
}

.fmt-tool__syntax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.fmt-tool__syntax-grid div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fmt-tool__syntax-grid code {
    font-size: 13px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fmt-tool__syntax-grid span {
    font-size: 13px;
    color: #666;
}

.tool-btn-whatsapp.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.fmt-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fmt-how-card {
    background: #fff;
    border: 1px solid rgba(47, 142, 228, 0.12);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(15, 20, 40, 0.05);
}

.fmt-how-card__num {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: var(--base-color);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.fmt-how-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--title-color);
}

.fmt-how-card p {
    color: #666;
    line-height: 1.65;
    margin: 0;
}

.fmt-syntax-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid rgba(47, 142, 228, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 20, 40, 0.05);
}

.fmt-syntax-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.fmt-syntax-table th,
.fmt-syntax-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
}

.fmt-syntax-table th {
    background: #f4f8fd;
    font-weight: 700;
    color: var(--title-color);
}

.fmt-syntax-table td code {
    font-size: 13px;
    background: rgba(47, 142, 228, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fmt-syntax-table tbody tr:last-child td {
    border-bottom: none;
}

.fmt-tool-cta {
    margin-top: 20px;
    padding: 40px 32px;
    background: linear-gradient(135deg, #0c1a32 0%, #102848 50%, #0a1830 100%);
    border-radius: 20px;
    text-align: center;
}

.fmt-tool-cta__inner h3 {
    color: #fff;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin-bottom: 10px;
}

.fmt-tool-cta__inner p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin: 0 auto 20px;
    line-height: 1.65;
}

.fmt-tool-cta__inner .tool-actions {
    justify-content: center;
}

@media (max-width: 991px) {
    .fmt-tool__grid,
    .fmt-tool__steps,
    .fmt-how-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .fmt-tool__panel textarea,
    .fmt-tool__preview {
        min-height: 220px;
    }
}

.tool-workspace-body {
    padding: 32px;
}

.tool-form-group {
    margin-bottom: 20px;
}

.tool-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--title-color);
}

.tool-form-group input,
.tool-form-group textarea,
.tool-form-group select {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-form-group input:focus,
.tool-form-group textarea:focus,
.tool-form-group select:focus {
    outline: none;
    border-color: var(--base-color);
    box-shadow: 0 0 0 3px rgba(47, 142, 228, 0.15);
}

.tool-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #35e7ea 0%, #2f8ee4 50%, #1a6fc4 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(47, 142, 228, 0.35);
    color: #fff;
}

.tool-btn-secondary {
    background: #eef4fc;
    color: var(--base-color);
}

.tool-btn-secondary:hover {
    background: #dceaf8;
    box-shadow: none;
    color: #1a6fc4;
}

.tool-btn-whatsapp {
    background: #25d366;
}

.tool-btn-whatsapp:hover {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.tool-output {
    margin-top: 24px;
    padding: 20px;
    background: #f4f8fd;
    border: 1px dashed rgba(47, 142, 228, 0.35);
    border-radius: 12px;
}

.tool-output-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--base-color);
    margin-bottom: 10px;
}

.tool-output-value {
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
    color: #333;
    margin-bottom: 14px;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.format-toolbar button {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.format-toolbar button:hover,
.format-toolbar button.active {
    border-color: var(--base-color);
    color: var(--base-color);
    background: rgba(47, 142, 228, 0.08);
}

.tool-preview-box {
    min-height: 120px;
    padding: 16px;
    background: #eef4fc;
    border-radius: 12px;
    white-space: pre-wrap;
    line-height: 1.6;
}

.tool-code-block {
    width: 100%;
    min-height: 160px;
    font-family: monospace;
    font-size: 13px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #1e2433;
    color: #d7e3ff;
    resize: vertical;
}

.tool-sidebar {
    margin-top: 30px;
}

.tool-sidebar h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.tool-sidebar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-sidebar-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid rgba(47, 142, 228, 0.2);
    color: #444;
    font-size: 14px;
    text-decoration: none;
}

.tool-sidebar-links a:hover,
.tool-sidebar-links a.active {
    background: var(--base-color);
    border-color: var(--base-color);
    color: #fff;
}

/* WhatsApp Emoji Keyboard */
.emoji-shell {
    border: 1px solid #e2e5ea;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 20, 40, 0.06);
    margin-bottom: 16px;
}

.emoji-shell__top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #eef0f3;
    background: #f8fafc;
}

.emoji-search-wrap {
    flex: 1;
    position: relative;
}

.emoji-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 13px;
}

.emoji-search-wrap input {
    width: 100%;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    padding: 12px 14px 12px 38px;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.emoji-search-wrap input:focus {
    border-color: rgba(37, 211, 102, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}

.emoji-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.emoji-count {
    font-size: 12px;
    font-weight: 700;
    color: #667085;
    background: #eef2f7;
    border-radius: 999px;
    padding: 7px 10px;
    white-space: nowrap;
}

.emoji-copied {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.14);
    color: #128c41;
    font-size: 12px;
    font-weight: 700;
}

.emoji-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f3;
    overflow-x: auto;
    margin-bottom: 0;
    scrollbar-width: thin;
}

.emoji-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e5ea;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #344054;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.emoji-cat__icon {
    font-size: 15px;
    line-height: 1;
}

.emoji-cat__name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emoji-cat:hover {
    border-color: rgba(37, 211, 102, 0.4);
    background: rgba(37, 211, 102, 0.06);
}

.emoji-cat.is-active {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.emoji-grid-wrap {
    position: relative;
    padding: 12px 14px 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.emoji-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #667085;
    margin-bottom: 10px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding: 0 2px 4px 0;
    background: transparent;
    border-radius: 0;
    scrollbar-width: thin;
}

.emoji-item {
    border: 1px solid transparent;
    background: #fff;
    border-radius: 12px;
    font-size: 26px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 20, 40, 0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.emoji-item:hover {
    transform: translateY(-1px) scale(1.05);
    border-color: rgba(37, 211, 102, 0.35);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.12);
    background: #fff;
}

.emoji-item:active {
    transform: scale(0.96);
}

.emoji-empty {
    text-align: center;
    padding: 40px 16px;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}

.emoji-tray {
    border-top: 1px solid #eef0f3;
    padding: 14px;
    background: #fff;
}

.emoji-tray__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.emoji-tray__clear {
    border: none;
    background: transparent;
    color: #2f8ee4;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.emoji-tray__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
}

.emoji-tray__row input {
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 22px;
    line-height: 1.2;
    background: #f8fafc;
    outline: none;
}

.emoji-copy-btn {
    height: 48px !important;
    min-height: 48px !important;
    min-width: 110px;
    padding: 0 18px !important;
}

.emoji-recent {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e6e9ef;
}

.emoji-recent__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #98a2b3;
    margin-bottom: 8px;
}

.emoji-recent__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.emoji-recent__list .emoji-item {
    width: 42px;
    height: 42px;
    font-size: 22px;
}

@media (max-width: 767px) {
    .emoji-cat__name {
        display: none;
    }

    .emoji-cat {
        padding: 8px 10px;
    }
}

@media (max-width: 575px) {
    .emoji-tray__row {
        grid-template-columns: 1fr;
    }

    .emoji-shell__top {
        flex-direction: column;
        align-items: stretch;
    }

    .emoji-meta {
        justify-content: space-between;
    }
}

.qr-preview {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.qr-preview canvas,
.qr-preview img {
    max-width: 220px;
    border-radius: 12px;
}

/* QR Code Generator */
.qr-preview-card {
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
    box-shadow: 0 10px 30px rgba(15, 20, 40, 0.06);
}

.qr-preview-card__top {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e5ea;
    background: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.qr-preview-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.qr-preview-card__label i {
    color: #2f8ee4;
}

.qr-preview-card__status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(152, 162, 179, 0.16);
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.qr-preview-card__status.is-ready {
    background: rgba(37, 211, 102, 0.14);
    color: #128c41;
}

.qr-preview-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.qr-preview-card__frame {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 12px;
    min-height: 280px;
}

.qr-preview-card__frame canvas {
    display: none;
    max-width: 100%;
    height: auto !important;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 20, 40, 0.1);
    padding: 10px;
}

.qr-preview-card__frame.has-qr canvas {
    display: block;
}

.qr-preview-card__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #98a2b3;
    padding: 20px;
}

.qr-preview-card__frame.has-qr .qr-preview-card__empty {
    display: none;
}

.qr-preview-card__empty i {
    font-size: 42px;
    opacity: 0.45;
}

.qr-preview-card__empty p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    max-width: 200px;
    line-height: 1.4;
}

.qr-preview-card__meta {
    padding: 12px 14px;
    border-top: 1px solid #e2e5ea;
    background: #fafbfc;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    text-align: center;
}

.qr-preview-card__meta strong {
    color: #111b21;
}

.qr-size-group {
    min-width: 0;
}

.qr-generate-btn {
    width: 100%;
    margin-top: 4px;
    height: 48px !important;
    min-height: 48px !important;
}

.fmt-btn:disabled,
.fmt-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* Chat Button Generator preview */
.chatbtn-phone-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 10px;
    align-items: stretch;
}

.chatbtn-phone-row .chatbtn-country {
    min-width: 0;
    padding-left: 10px;
    padding-right: 28px;
    font-size: 14px;
}

.chatbtn-phone-row input {
    min-width: 0;
}

.chatbtn-sliders {
    display: grid;
    gap: 14px;
}

.chatbtn-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.chatbtn-slider-head label {
    margin-bottom: 0;
}

.chatbtn-slider-value {
    font-size: 12px;
    font-weight: 700;
    color: #2f8ee4;
    background: rgba(47, 142, 228, 0.1);
    border-radius: 999px;
    padding: 3px 8px;
}

.chatbtn-sliders input[type="range"] {
    width: 100%;
    accent-color: #25d366;
    cursor: pointer;
}

.chatbtn-preview-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: widget-bob 2.4s ease-in-out infinite;
    line-height: 1;
}

.chatbtn-preview-btn:hover {
    transform: scale(1.04);
    color: #fff !important;
    animation: none;
}

.chatbtn-preview-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    animation: none;
}

@media (max-width: 575px) {
    .chatbtn-phone-row {
        grid-template-columns: 100px 1fr;
        gap: 8px;
    }
}

/* vCard Generator */
.vcard-form-row {
    margin-bottom: 0;
}

.vcard-preview-card {
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
    box-shadow: 0 10px 30px rgba(15, 20, 40, 0.06);
}

.vcard-preview-card__top {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e5ea;
    background: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vcard-preview-card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.vcard-preview-card__label i {
    color: #2f8ee4;
}

.vcard-preview-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(152, 162, 179, 0.16);
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vcard-preview-card__badge.is-ready {
    background: rgba(37, 211, 102, 0.14);
    color: #128c41;
}

.vcard-preview-card__body {
    flex: 1;
    padding: 20px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcard-face {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 18px;
    padding: 24px 20px 18px;
    box-shadow: 0 14px 36px rgba(15, 20, 40, 0.1);
    text-align: center;
}

.vcard-face__avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c41 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.vcard-face__name {
    font-size: 20px;
    font-weight: 800;
    color: #111b21;
    margin-bottom: 4px;
    word-break: break-word;
}

.vcard-face__role {
    font-size: 13px;
    font-weight: 600;
    color: #667085;
    margin-bottom: 16px;
    min-height: 18px;
}

.vcard-face__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    border-top: 1px solid #eef0f3;
}

.vcard-face__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid #eef0f3;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    word-break: break-word;
}

.vcard-face__list li:last-child {
    border-bottom: none;
}

.vcard-face__list li i {
    width: 16px;
    text-align: center;
    color: #25d366;
    flex-shrink: 0;
}

.vcard-face__list li.is-empty {
    opacity: 0.45;
}

.vcard-share-tip {
    margin: -4px 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #128c41;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.vcard-share-tip strong {
    font-weight: 700;
}

/* Number Validator */
.validate-tool {
    max-width: none;
}

.validate-editor {
    margin-bottom: 0;
    height: 100%;
}

.validate-run-btn {
    width: 100%;
    height: 48px !important;
    min-height: 48px !important;
    margin-top: 4px;
}

.validate-hints {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.validate-hints li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #667085;
}

.validate-hints li i {
    width: 16px;
    color: #25d366;
    text-align: center;
}

.validate-panel {
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 360px;
    box-shadow: 0 10px 30px rgba(15, 20, 40, 0.06);
}

.validate-panel.is-valid {
    border-color: rgba(37, 211, 102, 0.35);
}

.validate-panel.is-invalid {
    border-color: rgba(220, 53, 69, 0.28);
}

.validate-panel__top {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e5ea;
    background: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.validate-panel__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.validate-panel__label i {
    color: #2f8ee4;
}

.validate-panel__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(152, 162, 179, 0.16);
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.validate-panel__badge.is-ready {
    background: rgba(37, 211, 102, 0.14);
    color: #128c41;
}

.validate-panel__badge.is-bad {
    background: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

.validate-panel__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 14px;
}

.validate-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 24px 12px;
    color: #667085;
    margin: 0;
    border: 0;
    background: transparent;
}

.validate-empty__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.validate-empty p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    max-width: 220px;
    line-height: 1.45;
}

.validate-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin: 0;
}

.validate-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e5ea;
}

.validate-hero.is-valid {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.28);
}

.validate-hero.is-invalid {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.22);
}

.validate-hero__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: #fff;
}

.validate-hero.is-valid .validate-hero__icon {
    color: #128c41;
}

.validate-hero.is-invalid .validate-hero__icon {
    color: #b02a37;
}

.validate-hero__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.validate-hero__text strong {
    font-size: 14px;
    color: #111b21;
}

.validate-hero__text span {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
}

.validate-rows {
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    overflow: hidden;
}

.validate-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid #eef0f3;
}

.validate-row:last-child {
    border-bottom: none;
}

.validate-row__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #667085;
}

.validate-row__label i {
    width: 14px;
    color: #25d366;
    text-align: center;
}

.validate-row__value {
    font-size: 13px;
    font-weight: 700;
    color: #111b21;
    text-align: right;
    word-break: break-word;
}

.validate-row__value.is-ok {
    color: #128c41;
}

.validate-row__value.is-bad {
    color: #b02a37;
}

.validate-row__value.is-warn {
    color: #b45309;
}

.validate-row__value.is-checking {
    color: #667085;
}

.validate-row__value i {
    margin-right: 4px;
}

.validate-row--wa {
    background: rgba(37, 211, 102, 0.06);
}

.validate-panel__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.validate-panel__actions .fmt-btn {
    height: 46px !important;
    min-height: 46px !important;
    font-size: 13px;
}

@media (max-width: 575px) {
    .validate-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .validate-row__value {
        text-align: left;
    }

    .validate-panel__actions {
        grid-template-columns: 1fr;
    }
}

.widget-preview-frame {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    min-height: 220px;
    background: linear-gradient(180deg, #f8f9fc 0%, #eef2f8 100%);
    position: relative;
    overflow: hidden;
}

.widget-preview-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.validation-result {
    padding: 16px 18px;
    border-radius: 12px;
    font-weight: 500;
}

.validation-result.valid {
    background: rgba(37, 211, 102, 0.12);
    color: #128c41;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.validation-result.invalid {
    background: rgba(220, 53, 69, 0.1);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

.template-vars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.template-vars button {
    border: 1px solid rgba(47, 142, 228, 0.25);
    background: #eef4fc;
    color: var(--base-color);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

/* Message Template Filler (WhatsForm-style) */
.tmpl-tool {
    max-width: 800px;
    margin: 0 auto;
}

.tmpl-empty[hidden],
.tmpl-main[hidden],
.tmpl-fill-layout[hidden],
.tmpl-modal__list[hidden],
.tmpl-modal__editor[hidden],
.tmpl-modal__back[hidden],
.tmpl-custom-row[hidden] {
    display: none !important;
}

.tmpl-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
}

.tmpl-empty__icon {
    margin-bottom: 16px;
}

.tmpl-empty__icon i {
    font-size: 3rem;
    color: #d1d5db;
}

.tmpl-empty p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0 0 20px;
}

.tmpl-main {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 24px;
}

.tmpl-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.tmpl-toolbar__select {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.tmpl-toolbar__select .tmpl-select {
    display: block;
    width: 100%;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    margin: 0;
    padding: 12px 40px 12px 14px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.tmpl-toolbar__select .tmpl-select:hover {
    border-color: #25d366;
}

.tmpl-toolbar__select .tmpl-select:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: none;
}

.tmpl-toolbar__chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #9ca3af;
    pointer-events: none;
    line-height: 1;
}

.tmpl-manage-btn {
    flex: 0 0 auto;
    align-self: center;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    margin: 0;
    white-space: nowrap;
    background: #fff;
    border: 2px dashed #25d366;
    color: #128c41;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.tmpl-manage-btn:hover {
    background: #f0fdf0;
    border-color: #128c41;
}

.tmpl-manage-btn i {
    font-size: 14px;
    line-height: 1;
}

.tmpl-manage-btn span {
    line-height: 1;
}

.tmpl-fill-layout {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    align-items: flex-start;
}

.tmpl-fill-left,
.tmpl-fill-right {
    flex: 1;
    min-width: 0;
}

.tmpl-fill-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tmpl-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tmpl-field-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tmpl-field-row > label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.tmpl-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tmpl-badge--auto {
    background: #ecfdf5;
    color: #059669;
}

.tmpl-badge--multi {
    background: #eff6ff;
    color: #2563eb;
}

.tmpl-field-input,
.tmpl-multi-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.tmpl-field-input:focus,
.tmpl-multi-input:focus {
    outline: none;
    border-color: #25d366;
}

.tmpl-multi-entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tmpl-multi-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmpl-multi-entry .tmpl-multi-input {
    flex: 1;
}

.tmpl-multi-remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.tmpl-multi-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.tmpl-multi-add {
    background: none;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    cursor: pointer;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
    width: 100%;
    margin-top: 6px;
}

.tmpl-multi-add:hover {
    border-color: #25d366;
    color: #128c41;
    background: #f0fdf4;
}

.tmpl-preview-mock {
    margin-bottom: 0;
    height: auto !important;
    min-height: 200px !important;
    max-height: none;
}

.tmpl-preview-mock .fmt-wa-mock__chat {
    flex: 0 0 auto;
    min-height: 140px;
    max-height: none;
    overflow: visible;
    align-items: flex-end;
    height: auto;
}

.tmpl-phone-group {
    margin-bottom: 0;
}

.tmpl-actions {
    flex-direction: column;
    margin-bottom: 0 !important;
}

.tmpl-actions .fmt-btn {
    width: 100%;
}

.tmpl-tool .fmt-tool__steps-bottom {
    margin-top: 28px;
    padding-top: 8px;
    position: relative;
    z-index: 1;
    clear: both;
}

.tmpl-vars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tmpl-vars button {
    border: 1px dashed #25d366;
    color: #128c41;
    background: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tmpl-vars button:hover {
    background: #f0fdf0;
}

.tmpl-custom-row {
    margin-bottom: 12px;
}

.tmpl-custom-row__inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tmpl-custom-row__inputs input {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    border: 2px solid #25d366;
    border-radius: 8px;
    font-size: 14px;
}

.tmpl-custom-ok,
.tmpl-custom-cancel {
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    border: none;
}

.tmpl-custom-ok {
    background: #25d366;
    color: #fff;
}

.tmpl-custom-cancel {
    background: #f3f4f6;
    color: #6c757d;
    border: 1px solid #e6e6e6;
}

.tmpl-multi-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #4b5563;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 0;
}

.tmpl-multi-check input {
    accent-color: #25d366;
    margin: 0;
}

.tmpl-multi-check span {
    color: #b0b7c0;
    font-size: 0.68rem;
}

.tmpl-save-btn {
    width: 100%;
    margin-top: 8px;
}

.tmpl-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tmpl-modal[hidden] {
    display: none !important;
}

.tmpl-modal__dialog {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.tmpl-modal__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    border-bottom: 1px solid #e6e6e6;
}

.tmpl-modal__head h3 {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.tmpl-modal__head h3 i {
    color: #25d366;
    margin-right: 8px;
}

.tmpl-modal__back,
.tmpl-modal__close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 1rem;
}

.tmpl-modal__back:hover,
.tmpl-modal__close:hover {
    background: #f3f4f6;
    color: #128c41;
}

.tmpl-modal__list {
    padding: 24px;
}

.tmpl-create-new-btn {
    width: 100%;
    background: none;
    border: 2px dashed #25d366;
    color: #128c41;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tmpl-create-new-btn:hover {
    background: #f0fdf0;
}

.tmpl-modal__empty {
    text-align: center;
    color: #9ca3af;
    padding: 24px 0;
    font-size: 0.95rem;
}

.tmpl-saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.tmpl-saved-item:hover {
    background: #f9fafb;
}

.tmpl-saved-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tmpl-saved-info strong {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.tmpl-saved-info span {
    font-size: 0.8rem;
    color: #9ca3af;
}

.tmpl-saved-actions {
    display: flex;
    gap: 8px;
}

.tmpl-saved-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    font-size: 0.9rem;
    color: #25d366;
}

.tmpl-saved-actions button[data-del] {
    color: #dc3545;
}

.tmpl-modal__editor {
    padding: 0;
}

.tmpl-modal__editor-grid {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.tmpl-modal__editor-form,
.tmpl-modal__preview {
    flex: 1;
    min-width: 0;
}

.tmpl-modal__editor-form .tool-form-group {
    margin-bottom: 12px;
}

.tmpl-modal__editor-form input[type="text"],
.tmpl-modal__editor-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

.tmpl-modal__editor-form input[type="text"]:focus,
.tmpl-modal__editor-form textarea:focus {
    outline: none;
    border-color: #25d366;
}

.tmpl-modal__editor-form textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.tmpl-modal__preview-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.tmpl-modal__preview-box {
    background: #efeae2;
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
}

.tmpl-modal__preview-empty {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    display: block;
    padding-top: 60px;
}

.tmpl-modal__bubble {
    background: #dcf8c6;
    border-radius: 0 8px 8px 8px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #1a1a1a;
    word-wrap: break-word;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.tmpl-var {
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
}

.tmpl-var--auto {
    background: #d1fae5;
    color: #065f46;
}

.tmpl-var--custom {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 768px) {
    .tmpl-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tmpl-toolbar__select,
    .tmpl-manage-btn {
        width: 100%;
        align-self: stretch;
    }

    .tmpl-fill-layout,
    .tmpl-modal__editor-grid {
        flex-direction: column;
    }
}

.tool-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tool-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 140px;
}

.tool-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #35e7ea 0%, #2f8ee4 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-step-text {
    font-weight: 600;
    color: var(--title-color);
    font-size: 15px;
}

.tool-info-section {
    padding: 0 0 60px;
    background: #f8f9fc;
}

.tool-info-block {
    margin-bottom: 50px;
}

.tool-info-block:last-child {
    margin-bottom: 0;
}

.tool-info-block .bi-section-title-1 h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--title-color);
}

.tool-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.tool-feature-card {
    background: #fff;
    border: 1px solid rgba(47, 142, 228, 0.12);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(15, 20, 40, 0.05);
    height: 100%;
}

.tool-feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--title-color);
}

.tool-feature-card p {
    color: #666;
    line-height: 1.65;
    margin-bottom: 0;
}

.tool-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 142, 228, 0.12) 0%, rgba(53, 231, 234, 0.12) 100%);
    color: var(--base-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.tool-faq-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.tool-faq-wrap .accordion-item {
    background: #fff;
    border: 1px solid rgba(47, 142, 228, 0.12);
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.tool-faq-wrap .accordion-button {
    font-weight: 600;
    color: var(--title-color);
    background: #fff;
    box-shadow: none !important;
    padding: 18px 22px;
}

.tool-faq-wrap .accordion-button:not(.collapsed) {
    color: var(--base-color);
    background: rgba(47, 142, 228, 0.06);
}

.tool-faq-wrap .accordion-body {
    color: #666;
    line-height: 1.7;
    padding: 0 22px 18px;
}

@media (max-width: 991px) {
    .tool-feature-grid {
        grid-template-columns: 1fr;
    }

    .tool-step {
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .tool-form-row {
        grid-template-columns: 1fr;
    }

    .tool-workspace-header,
    .tool-workspace-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .format-toolbar--compact button span {
        display: none;
    }

    .format-toolbar--compact button {
        padding: 8px 10px;
    }

    .fmt-tool__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .fmt-tool__actions {
        justify-content: stretch;
    }

    .fmt-tool__actions .tool-btn {
        flex: 1;
    }

    .fmt-tool--compact .fmt-tool__grid {
        grid-template-columns: 1fr;
    }
}
