.textcc-container,
.textcc-container * {
    box-sizing: border-box;
}

.textcc-container {
    --textcc-primary: #1E90FF;
    --textcc-primary-dark: #1976D2;
    --textcc-text: #101828;
    --textcc-muted: #4A5565;
    --textcc-border: #E5E7EB;
    --textcc-soft: #F3F4F6;
    --textcc-panel: #F9FAFB;
    --textcc-radius-xl: 32px;
    --textcc-radius-lg: 16px;
    --textcc-radius-md: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--textcc-text);
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    background: #fff;
}

.textcc-container button,
.textcc-container textarea {
    font: inherit;
}

.textcc-header {
    text-align: center;
    padding: 64px 20px 28px;
}

.textcc-title {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -1.5px;
    color: var(--textcc-text);
}

.textcc-subtitle {
    margin: 0 auto;
    max-width: 768px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--textcc-muted);
}

.textcc-tool-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 0 20px 32px;
    background: var(--textcc-soft);
    border-radius: 999px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.05);
}

.textcc-tool-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #21304a;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    line-height: 44px;
    cursor: pointer;
    transition: .25s ease;
    white-space: nowrap;
}

.textcc-tool-btn:hover {
    background: rgba(30, 144, 255, .10);
    color: var(--textcc-primary);
}

.textcc-tool-btn.active,
.textcc-container .textcc-tool-btn[aria-selected="true"] {
    background: var(--textcc-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 144, 255, .24);
}

.textcc-main-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    margin: 0 20px 26px;
    background: #fff;
    border: 1px solid var(--textcc-border);
    border-radius: var(--textcc-radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.10);
    overflow: hidden;
}

.textcc-editor-section {
    padding: 28px 28px 20px;
    border-right: 1px solid var(--textcc-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.textcc-actions-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.textcc-submit-btn,
.textcc-copy-btn,
.textcc-clear-btn,
.textcc-cta-button,
.textcc-faq-question {
    appearance: none;
    cursor: pointer;
}

.textcc-submit-btn,
.textcc-copy-btn,
.textcc-clear-btn {
    min-height: 46px;
    border-radius: 12px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: .25s ease;
}

.textcc-submit-btn {
    border: 1px solid var(--textcc-primary);
    background: var(--textcc-primary);
    color: #fff;
}

.textcc-submit-btn:hover {
    background: var(--textcc-primary-dark);
    border-color: var(--textcc-primary-dark);
}

.textcc-copy-btn {
    border: 1px solid #d7e8fb;
    background: #eff6ff;
    color: #1157b3;
}

.textcc-copy-btn:hover {
    background: #dfefff;
}

.textcc-clear-btn {
    border: 1px solid var(--textcc-border);
    background: #fff;
    color: #344054;
}

.textcc-clear-btn:hover {
    background: #f8fafc;
}

.textcc-textarea {
    display: block;
    width: 100%;
    min-height: 540px;
    padding: 24px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
}

.textcc-textarea::placeholder { color: #99A1AF; }
.textcc-textarea:focus { box-shadow: inset 0 0 0 2px rgba(30,144,255,.18); }

.textcc-stats-section {
    background: var(--textcc-panel);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.textcc-stats-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.textcc-stats-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--textcc-primary);
    color: #fff;
}

.textcc-stats-title { margin: 0; font-size: 18px; font-weight: 600; }
.textcc-metrics-bar { display: grid; gap: 0; }
.textcc-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--textcc-border);
}
.textcc-metric-row:last-child { border-bottom: 0; }
.textcc-metric-label { display: flex; align-items: center; gap: 12px; }
.textcc-metric-name { font-size: 14px; color: var(--textcc-muted); }
.textcc-metric-value { font-size: 14px; font-weight: 700; color: var(--textcc-text); }

.textcc-how-to-use {
    background: #fff;
    border: 1px solid var(--textcc-border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(16,24,40,.06);
}
.textcc-how-to-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.textcc-how-to-steps { display: grid; gap: 12px; }
.textcc-step { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; line-height: 1.5; }
.textcc-step-number { color: var(--textcc-primary); font-weight: 700; }
.textcc-step-text { color: var(--textcc-muted); }

.textcc-footer { text-align: center; padding: 0 20px 32px; }
.textcc-rating { color: #f0b100; font-size: 16px; line-height: 1.5; }
.textcc-footer-text { margin: 4px 0 0; font-size: 14px; color: var(--textcc-muted); }

.textcc-seo-content,
.textcc-faq-section {
    max-width: 1152px;
    margin: 0 auto;
    padding: 80px 20px 0;
}

.textcc-seo-content > h2,
.textcc-faq-section > h2,
.textcc-cta-section h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 500;
    color: var(--textcc-text);
}

.textcc-seo-content > p,
.textcc-faq-subtitle,
.textcc-cta-section p {
    margin: 0 auto 28px;
    max-width: 896px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--textcc-muted);
}

.textcc-seo-content {
    background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
}

.textcc-seo-content > h3 { margin: 34px 0 20px; font-size: 30px; font-weight: 500; }
.textcc-use-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.textcc-use-case-item,
.textcc-why-use {
    background: #eff6ff;
    border: 2px solid #dbeafe;
    border-radius: 16px;
}
.textcc-use-case-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
}
.textcc-use-case-item p,
.textcc-why-use p { margin: 0; color: #1e2939; line-height: 1.6; }
.textcc-use-case-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--textcc-primary);
    color: #fff;
    font-weight: 700;
    flex: 0 0 32px;
}
.textcc-why-use {
    padding: 28px;
    background: linear-gradient(135deg, #eff6ff 0%, rgba(219,234,254,.5) 100%);
    border-color: #bedbff;
}
.textcc-why-use h3 { margin: 0 0 14px; font-size: 24px; font-weight: 600; }

.textcc-faq-section { text-align: center; }
.textcc-faq-items { display: grid; gap: 16px; margin-top: 28px; text-align: left; }
.textcc-faq-item {
    background: #fff;
    border: 2px solid var(--textcc-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.06);
}
.textcc-faq-question {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--textcc-text);
}
.textcc-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--textcc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.textcc-faq-answer { padding: 0 32px 24px; color: var(--textcc-muted); }
.textcc-faq-answer p { margin: 0; line-height: 1.6; }

.textcc-cta-section {
    margin: 96px auto 0;
    max-width: 976px;
    padding: 72px 64px;
    text-align: center;
    background: linear-gradient(135deg, #101828 0%, #1e2939 100%);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    position: relative;
    overflow: hidden;
}
.textcc-cta-section::before,
.textcc-cta-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(64px);
    opacity: .12;
}
.textcc-cta-section::before { width: 320px; height: 320px; background: #1E90FF; right: -80px; top: -60px; }
.textcc-cta-section::after { width: 320px; height: 320px; background: #51A2FF; left: -100px; bottom: -140px; }
.textcc-cta-section > * { position: relative; z-index: 1; }
.textcc-cta-section h2 { color: #fff !important; }
.textcc-cta-section p { color: #d1d5dc !important; max-width: 768px; }
.textcc-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.textcc-cta-button {
    min-height: 64px;
    min-width: 230px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.textcc-cta-primary {
    background: #fff !important;
    border: 2px solid #fff !important;
    color: #101828 !important;
}
.textcc-cta-secondary {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,.95) !important;
    color: #fff !important;
}
.textcc-cta-primary:hover { background: #f8fafc !important; }
.textcc-cta-secondary:hover { background: rgba(255,255,255,.08) !important; }

@media (max-width: 1100px) {
    .textcc-main-container { grid-template-columns: 1fr; }
    .textcc-editor-section { border-right: 0; border-bottom: 1px solid var(--textcc-border); }
    .textcc-stats-section { width: 100%; }
    .textcc-use-cases { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .textcc-header { padding-top: 40px; }
    .textcc-tool-selector,
    .textcc-main-container { margin-left: 12px; margin-right: 12px; }
    .textcc-editor-section,
    .textcc-stats-section { padding: 20px; }
    .textcc-actions-bar { justify-content: stretch; }
    .textcc-submit-btn,
    .textcc-copy-btn,
    .textcc-clear-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
    .textcc-textarea { min-height: 320px; }
    .textcc-faq-question { padding: 18px 20px; font-size: 16px; }
    .textcc-faq-answer { padding: 0 20px 20px; }
    .textcc-cta-section { margin-top: 72px; padding: 48px 20px; border-radius: 24px; }
    .textcc-cta-button { width: 100%; min-width: 0; }
}

.entry-title:empty,
.page-title:empty,
.elementor-heading-title:empty {
    display: none !important;
}
