 .page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.image_to_text .hero {
    text-align: center;
}

.image_to_text .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

[data-theme="dark"] .hero__badge {
    background: #1e2240;
}


.image_to_text .card {
    background: var(--header-bg);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 16px;
}

.image_to_text .card__header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.image_to_text .card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
}

.image_to_text .card__title i {
    color: var(--primary-color);
    font-size: 17px;
}

.image_to_text .card__actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.image_to_text .chip-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--divider);
    background: var(--section-bg);
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-text);
    transition: all .2s;
}

.image_to_text .chip-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eef0fd;
}

[data-theme="dark"] .image_to_text .chip-btn:hover {
    background: #1e2240;
}

.dropzone {
    margin: 16px;
    border: 2px dashed var(--divider);
    border-radius: var(--radius-md);
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s, background .25s, transform .2s;
    background: var(--section-bg);
    min-height: 200px;
    position: relative;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--primary-color);
    background: #f0f1fe;
    transform: scale(1.005);
}

[data-theme="dark"] .dropzone:hover,
[data-theme="dark"] .dropzone.dragover {
    background: #1a1d30;
}

.dropzone__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef0fd, #e0e3fc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-color);
    box-shadow: 0 8px 24px var(--primary-glow);
    animation: float 3.2s ease-in-out infinite;
}

[data-theme="dark"] .dropzone__icon {
    background: linear-gradient(135deg, #1e2240, #252a50);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-7px)
    }
}

.dropzone h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-text);
}

.dropzone p {
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.7;
}

.dropzone__browse {
    padding: 9px 22px;
    border-radius: 10px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: all .2s;
}

.dropzone__browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, .3);
}

.queue-section {
    padding: 14px 16px;
}

.queue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.queue-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.queue-count {
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.queue-item {
    border-radius: var(--radius-md);
    border: 2px solid var(--divider);
    background: var(--section-bg);
    overflow: hidden;
    position: relative;
    transition: border-color .2s;
}

.queue-item.processing {
    border-color: var(--primary-color);
}

.queue-item.done {
    border-color: #22c55e;
}

.queue-item.error {
    border-color: #ef4444;
}

.queue-item__img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    background: repeating-conic-gradient(#e0e0e0 0% 25%, #f8f8f8 0% 50%) 0 0/12px 12px;
}

[data-theme="dark"] .queue-item__img {
    background: repeating-conic-gradient(#1e2737 0% 25%, #151d29 0% 50%) 0 0/12px 12px;
}

.queue-item__info {
    padding: 6px 8px;
}

.queue-item__name {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item__status {
    font-size: 10px;
    color: var(--gray-text);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.queue-item__status.processing {
    color: var(--primary-color);
}

.queue-item__status.done {
    color: #16a34a;
}

.queue-item__status.error {
    color: #ef4444;
}

.queue-item__remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: none;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.queue-item__remove:hover {
    background: #ef4444;
}

.queue-add-tile {
    border-radius: var(--radius-md);
    border: 2px dashed var(--divider);
    background: var(--section-bg);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 500;
}

.queue-add-tile:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f1fe;
}

[data-theme="dark"] .queue-add-tile:hover {
    background: #1a1d30;
}

.queue-add-tile i {
    font-size: 22px;
}

.options-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--divider);
    flex-wrap: wrap;
}

.options-label {
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 500;
    white-space: nowrap;
}

.lang-select {
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid var(--divider);
    background: var(--input-bg);
    color: var(--primary-text);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color .2s;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.lang-select:focus {
    border-color: var(--primary-color);
}

.toggle-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid var(--divider);
    background: var(--section-bg);
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-text);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}

.toggle-chip input {
    display: none;
}

.toggle-chip.checked {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eef0fd;
}

[data-theme="dark"] .toggle-chip.checked {
    background: #1e2240;
}

.action-bar {
    padding: 13px 16px;
    border-top: 1px solid var(--divider);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.extract-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: all .2s;
}

.extract-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(99, 102, 241, .3);
}

.extract-btn:active {
    transform: scale(.98);
}

.extract-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-btn {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
    background: var(--section-bg);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.progress-wrap {
    display: none;
    padding: 14px 18px;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--divider);
}

.progress-wrap.visible {
    display: flex;
}

.progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-status {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-text);
}

.progress-pct {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

.progress-bar {
    height: 5px;
    border-radius: 20px;
    background: var(--divider);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #818cf8);
    transition: width .4s cubic-bezier(.22, 1, .36, 1);
}

.progress-steps {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.step-dot {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--gray-text);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid var(--divider);
    background: var(--section-bg);
    transition: all .3s;
}

.step-dot.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #eef0fd;
}

.step-dot.done {
    border-color: #22c55e;
    color: #16a34a;
    background: #f0fdf4;
}

[data-theme="dark"] .step-dot.active {
    background: #1e2240;
}

[data-theme="dark"] .step-dot.done {
    background: #052e16;
    color: #4ade80;
}

.output-section {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: fadeSlideUp .4s cubic-bezier(.22, 1, .36, 1) both;
}

.output-section.visible {
    display: flex;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}



.result-card__header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.result-card__thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--divider);
    flex-shrink: 0;
}

.result-card__meta {
    flex: 1;
    min-width: 0;
}

.result-card__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-card__sub {
    font-size: 10px;
    color: var(--gray-text);
    margin-top: 2px;
}

.result-card__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}

.output-card__header {
    padding: 13px 16px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.output-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.output-title i {
    font-size: 15px;
    color: var(--primary-color);
}

.output-card__actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.output-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--divider);
    background: var(--section-bg);
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-text);
    transition: all .2s;
}

.output-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.output-action-btn.success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

.stats-row {
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--divider);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 9px;
    background: var(--section-bg);
    border: 1px solid var(--divider);
    flex: 1;
    min-width: 80px;
}

.stat-label {
    font-size: 10px;
    color: var(--gray-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-text);
}

.text-output {
    width: 100%;
    min-height: 130px;
    padding: 14px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.8;
    color: var(--primary-text);
    background: var(--section-bg);
    border: none;
    outline: none;
    resize: vertical;
    border-bottom: 1px solid var(--divider);
}

.text-output::placeholder {
    color: var(--gray-text);
}

.confidence-row {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
}

.confidence-label {
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 500;
    white-space: nowrap;
}

.confidence-bar-wrap {
    flex: 1;
    min-width: 80px;
    height: 6px;
    border-radius: 20px;
    background: var(--divider);
    overflow: hidden;
}

.confidence-bar-fill {
    height: 100%;
    border-radius: inherit;
    transition: width .6s cubic-bezier(.22, 1, .36, 1);
}

.confidence-pct {
    font-size: 12px;
    font-weight: 700;
    min-width: 36px;
    text-align: right;
}

.combined-card {
    border: 2px solid var(--primary-color);
}

.combined-label {
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .05em;
}

.download-row {
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    flex: 1;
    min-width: 130px;
    padding: 11px 18px;
    border-radius: var(--radius-md);
    border: none;
    background: #10b981;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, .25);
    transition: all .2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, .35);
}

.error-card {
    display: none;
    margin: 0 16px 16px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    align-items: flex-start;
    gap: 9px;
    animation: fadeSlideUp .3s ease both;
}

[data-theme="dark"] .error-card {
    background: #1a0a0a;
    border-color: #7f1d1d;
}

.error-card.visible {
    display: flex;
}

.error-card i {
    color: #ef4444;
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

.error-card__text {
    font-size: 12px;
    color: #dc2626;
    line-height: 1.6;
}

[data-theme="dark"] .error-card__text {
    color: #f87171;
}

.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.info-item {
    background: var(--header-bg);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-item__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.info-item__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 3px;
}

.info-item__desc {
    font-size: 11px;
    color: var(--gray-text);
    line-height: 1.6;
}

.extract-btn .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: none;
}

.extract-btn.loading .spinner {
    display: block;
}

.extract-btn.loading .btn-icon {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.mini-spin {
    width: 11px;
    height: 11px;
    border: 2px solid rgba(99, 102, 241, .3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.badge-blue {
    background: #eff6ff;
    color: #2563eb;
}

[data-theme="dark"] .badge-blue {
    background: #1e3a5f;
    color: #60a5fa;
}

@media(max-width:640px) {
    .page {
        padding: 16px 12px 48px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .info-strip {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
    }

    .extract-btn,
    .secondary-btn,
    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .download-row {
        flex-direction: column;
    }

    .queue-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}



.itt-how {
    /* margin-top: 34px; */
    padding: 26px;
    /* border-radius: var(--radius-lg); */
    /* border: 1px solid var(--divider); */
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, .12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, .10), transparent 30%),
        var(--header-bg);
    /* box-shadow: var(--card-shadow); */
    overflow: hidden;
}

.itt-how__header {
    max-width: 720px;
    margin-bottom: 22px;
}

.itt-how__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 30px;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

[data-theme="dark"] .itt-how__badge {
    background: #1e2240;
}

.itt-how__header h2 {
    font-size: 28px;
    line-height: 1.25;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.itt-how__header p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray-text);
}

.itt-how__grid {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 18px;
    align-items: stretch;
}

.itt-how__steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.itt-step {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
    background: var(--section-bg);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

.itt-step::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, .10), transparent 55%);
    opacity: 0;
    transition: opacity .25s ease;
}

.itt-step:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, .45);
    box-shadow: 0 14px 34px rgba(99, 102, 241, .12);
}

.itt-step:hover::before {
    opacity: 1;
}

.itt-step__number {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 24px;
    font-weight: 800;
    color: rgba(99, 102, 241, .12);
}

.itt-step__icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 19px;
    margin-bottom: 14px;
}

[data-theme="dark"] .itt-step__icon {
    background: #1e2240;
}

.itt-step__content {
    position: relative;
}

.itt-step__content h3 {
    font-size: 14px;
    color: var(--primary-text);
    margin-bottom: 7px;
}

.itt-step__content p {
    font-size: 12px;
    line-height: 1.75;
    color: var(--gray-text);
}

.itt-how__panel {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, .22);
    background: linear-gradient(180deg, rgba(99, 102, 241, .08), rgba(99, 102, 241, .02)), var(--section-bg);
}

.itt-panel__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.itt-panel__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 12px 26px var(--primary-glow);
}

.itt-panel__top h3 {
    font-size: 15px;
    color: var(--primary-text);
    margin-bottom: 3px;
}

.itt-panel__top p {
    font-size: 12px;
    color: var(--gray-text);
}

.itt-tip-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.itt-tip-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--primary-text);
}

.itt-tip-list i {
    color: #16a34a;
    font-size: 16px;
    margin-top: 1px;
}

.itt-mini-card {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: var(--header-bg);
    border: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.itt-mini-card span {
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.itt-mini-card strong {
    font-size: 13px;
    color: var(--primary-color);
}

@media (max-width: 820px) {
    .itt-how__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .itt-how {
        padding: 18px;
        margin-top: 24px;
    }

    .itt-how__header h2 {
        font-size: 22px;
    }

    .itt-how__steps {
        grid-template-columns: 1fr;
    }

    .itt-mini-card {
        align-items: flex-start;
        flex-direction: column;
    }
}



.itt-features {
    /* margin-top: 34px; */
    padding: 26px;
    /* border-radius: var(--radius-lg); */
    /* border: 1px solid var(--divider); */
    background: var(--header-bg);
    /* box-shadow: var(--card-shadow); */
}

.itt-features__header {
    max-width: 720px;
    margin-bottom: 22px;
}

.itt-features__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 30px;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

[data-theme="dark"] .itt-features__badge {
    background: #1e2240;
}

.itt-features__header h2 {
    font-size: 28px;
    line-height: 1.25;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.itt-features__header p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray-text);
}

.itt-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.itt-feature-card {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
    background: var(--section-bg);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.itt-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, .38);
    box-shadow: 0 16px 34px rgba(99, 102, 241, .12);
}

.itt-feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 14px;
}

.itt-feature-card__icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.itt-feature-card__icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.itt-feature-card__icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.itt-feature-card__icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.itt-feature-card__icon.pink {
    background: #fdf2f8;
    color: #db2777;
}

[data-theme="dark"] .itt-feature-card__icon {
    background: #1e2240;
}

[data-theme="dark"] .itt-feature-card__icon.green {
    background: #052e16;
}

[data-theme="dark"] .itt-feature-card__icon.orange {
    background: #431407;
}

[data-theme="dark"] .itt-feature-card__icon.purple {
    background: #2e1065;
}

[data-theme="dark"] .itt-feature-card__icon.blue {
    background: #172554;
}

[data-theme="dark"] .itt-feature-card__icon.pink {
    background: #500724;
}

.itt-feature-card h3 {
    font-size: 14px;
    color: var(--primary-text);
    margin-bottom: 7px;
}

.itt-feature-card p {
    font-size: 12px;
    line-height: 1.75;
    color: var(--gray-text);
}

@media (max-width: 820px) {
    .itt-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .itt-features {
        padding: 18px;
        margin-top: 24px;
    }

    .itt-features__header h2 {
        font-size: 22px;
    }

    .itt-features__grid {
        grid-template-columns: 1fr;
    }
}


.itt-content {
    /* margin-top: 34px; */
    padding: 26px;
    /* border-radius: var(--radius-lg); */
    /* border: 1px solid var(--divider); */
    background:
        linear-gradient(135deg, rgba(99, 102, 241, .08), transparent 45%),
        var(--header-bg);
    /* box-shadow: var(--card-shadow); */
    overflow: hidden;
}

.itt-content__wrap {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 24px;
    align-items: center;
}

.itt-content__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 30px;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

[data-theme="dark"] .itt-content__badge {
    background: #1e2240;
}

.itt-content__main h2 {
    font-size: 28px;
    line-height: 1.28;
    color: var(--primary-text);
    margin-bottom: 12px;
}

.itt-content__main p {
    font-size: 13px;
    line-height: 1.85;
    color: var(--gray-text);
    margin-bottom: 12px;
}

.itt-content__points {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.itt-content__point {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--section-bg);
    border: 1px solid var(--divider);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 500;
}

.itt-content__point i {
    color: #16a34a;
    font-size: 17px;
    margin-top: 1px;
}

.itt-content__side {
    display: grid;
    gap: 12px;
}

.itt-content__preview {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, .22);
    background: var(--section-bg);
}

.itt-preview__toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.itt-preview__toolbar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--divider);
}

.itt-preview__toolbar span:nth-child(1) {
    background: #ef4444;
}

.itt-preview__toolbar span:nth-child(2) {
    background: #f59e0b;
}

.itt-preview__toolbar span:nth-child(3) {
    background: #22c55e;
}

.itt-preview__image {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--header-bg);
    border: 1px dashed rgba(99, 102, 241, .35);
}

.itt-preview__image i {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 20px;
}

[data-theme="dark"] .itt-preview__image i {
    background: #1e2240;
}

.itt-preview__image strong {
    display: block;
    font-size: 13px;
    color: var(--primary-text);
    margin-bottom: 3px;
}

.itt-preview__image small {
    font-size: 11px;
    color: var(--gray-text);
}

.itt-preview__arrow {
    width: 34px;
    height: 34px;
    margin: 12px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: #eef0fd;
    animation: ittBounce 1.6s ease-in-out infinite;
}

[data-theme="dark"] .itt-preview__arrow {
    background: #1e2240;
}

@keyframes ittBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

.itt-preview__text {
    padding: 14px;
    border-radius: 14px;
    background: var(--header-bg);
    border: 1px solid var(--divider);
    display: grid;
    gap: 8px;
}

.itt-preview__text span {
    display: block;
    height: 8px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(99, 102, 241, .28), rgba(99, 102, 241, .08));
}

.itt-preview__text span.short {
    width: 62%;
}

.itt-content__stat {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.itt-content__stat div {
    padding: 14px;
    border-radius: 14px;
    background: var(--section-bg);
    border: 1px solid var(--divider);
}

.itt-content__stat strong {
    display: block;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.itt-content__stat span {
    font-size: 11px;
    color: var(--gray-text);
    font-weight: 500;
}

@media (max-width: 820px) {
    .itt-content__wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .itt-content {
        padding: 18px;
        margin-top: 24px;
    }

    .itt-content__main h2 {
        font-size: 22px;
    }

    .itt-content__stat {
        grid-template-columns: 1fr;
    }
}


.itt-examples {
    /* margin-top: 34px; */
    padding: 26px;
    /* border-radius: var(--radius-lg); */
    /* border: 1px solid var(--divider); */
    /* background: var(--header-bg); */
    /* box-shadow: var(--card-shadow); */
}

.itt-examples__header {
    max-width: 720px;
    margin-bottom: 22px;
}

.itt-examples__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 30px;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

[data-theme="dark"] .itt-examples__badge {
    background: #1e2240;
}

.itt-examples__header h2 {
    font-size: 28px;
    line-height: 1.25;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.itt-examples__header p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray-text);
}

.itt-examples__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.itt-example-card {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
    background: var(--section-bg);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.itt-example-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, .38);
    box-shadow: 0 16px 34px rgba(99, 102, 241, .12);
}

.itt-example-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.itt-example-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 19px;
}

.itt-example-card__icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.itt-example-card__icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

[data-theme="dark"] .itt-example-card__icon {
    background: #1e2240;
}

[data-theme="dark"] .itt-example-card__icon.green {
    background: #052e16;
}

[data-theme="dark"] .itt-example-card__icon.orange {
    background: #431407;
}

.itt-example-card__top span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-text);
}

.itt-example-card__preview {
    display: grid;
    grid-template-columns: 1fr 28px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.itt-example-card__preview > i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--header-bg);
    color: var(--primary-color);
    font-size: 15px;
    border: 1px solid var(--divider);
}

.itt-example-img {
    min-height: 92px;
    padding: 12px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, .16), transparent),
        var(--header-bg);
    border: 1px dashed rgba(99, 102, 241, .35);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.itt-example-img.green {
    background:
        linear-gradient(135deg, rgba(22, 163, 74, .14), transparent),
        var(--header-bg);
    border-color: rgba(22, 163, 74, .32);
}

.itt-example-img.orange {
    background:
        linear-gradient(135deg, rgba(234, 88, 12, .14), transparent),
        var(--header-bg);
    border-color: rgba(234, 88, 12, .32);
}

.itt-example-img span {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 4px;
}

.itt-example-img small {
    font-size: 10px;
    color: var(--gray-text);
}

.itt-example-text {
    min-height: 92px;
    padding: 12px;
    border-radius: 14px;
    background: var(--header-bg);
    border: 1px solid var(--divider);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.itt-example-text span {
    height: 7px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(99, 102, 241, .30), rgba(99, 102, 241, .08));
}

.itt-example-text span.short {
    width: 64%;
}

.itt-example-card p {
    font-size: 12px;
    line-height: 1.75;
    color: var(--gray-text);
}

@media (max-width: 900px) {
    .itt-examples__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .itt-examples {
        padding: 18px;
        margin-top: 24px;
    }

    .itt-examples__header h2 {
        font-size: 22px;
    }

    .itt-example-card__preview {
        grid-template-columns: 1fr;
    }

    .itt-example-card__preview > i {
        transform: rotate(90deg);
        margin: 0 auto;
    }
}


.itt-faq {
    /* margin-top: 34px; */
    padding: 26px;
    /* border-radius: var(--radius-lg); */
    /* border: 1px solid var(--divider); */
    background: var(--section-bg);
    /* box-shadow: var(--card-shadow); */
}

.itt-faq__header {
    max-width: 720px;
    margin-bottom: 22px;
}

.itt-faq__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 30px;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

[data-theme="dark"] .itt-faq__badge {
    background: #1e2240;
}

.itt-faq__header h2 {
    font-size: 28px;
    line-height: 1.25;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.itt-faq__header p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray-text);
}

.itt-faq__list {
    display: grid;
    gap: 10px;
}

.itt-faq__item {
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
    background: var(--header-bg);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.itt-faq__item.active {
    border-color: rgba(99, 102, 241, .42);
    box-shadow: 0 14px 32px rgba(99, 102, 241, .10);
}

.itt-faq__question {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 600;
}

.itt-faq__question i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #eef0fd;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .3s ease, background .3s ease;
}

[data-theme="dark"] .itt-faq__question i {
    background: #1e2240;
}

.itt-faq__item.active .itt-faq__question i {
    transform: rotate(180deg);
}

.itt-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.itt-faq__answer p {
    padding: 0 18px 16px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--gray-text);
}

@media (max-width: 640px) {
    .itt-faq {
        padding: 18px;
        margin-top: 24px;
    }

    .itt-faq__header h2 {
        font-size: 22px;
    }

    .itt-faq__question {
        padding: 14px;
        font-size: 12px;
    }

    .itt-faq__answer p {
        padding: 0 14px 14px;
    }
}



.itt-related {
    /* margin-top: 34px; */
    padding: 26px;
    /* border-radius: var(--radius-lg); */
    /* border: 1px solid var(--divider); */
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, .10), transparent 32%),
        var(--header-bg);
    /* box-shadow: var(--card-shadow); */
}

.itt-related__header {
    max-width: 720px;
    margin-bottom: 22px;
}

.itt-related__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 30px;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

[data-theme="dark"] .itt-related__badge {
    background: #1e2240;
}

.itt-related__header h2 {
    font-size: 28px;
    line-height: 1.25;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.itt-related__header p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray-text);
}

.itt-related__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.itt-related-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr 34px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--divider);
    background: var(--section-bg);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.itt-related-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, .10), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
}

.itt-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, .42);
    box-shadow: 0 16px 34px rgba(99, 102, 241, .12);
}

.itt-related-card:hover::before {
    opacity: 1;
}

.itt-related-card__icon,
.itt-related-card div,
.itt-related-card span {
    position: relative;
    z-index: 1;
}

.itt-related-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0fd;
    color: var(--primary-color);
    font-size: 21px;
}

.itt-related-card__icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.itt-related-card__icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.itt-related-card__icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.itt-related-card__icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.itt-related-card__icon.pink {
    background: #fdf2f8;
    color: #db2777;
}

[data-theme="dark"] .itt-related-card__icon {
    background: #1e2240;
}

[data-theme="dark"] .itt-related-card__icon.green {
    background: #052e16;
}

[data-theme="dark"] .itt-related-card__icon.orange {
    background: #431407;
}

[data-theme="dark"] .itt-related-card__icon.purple {
    background: #2e1065;
}

[data-theme="dark"] .itt-related-card__icon.blue {
    background: #172554;
}

[data-theme="dark"] .itt-related-card__icon.pink {
    background: #500724;
}

.itt-related-card h3 {
    font-size: 14px;
    color: var(--primary-text);
    margin-bottom: 4px;
}

.itt-related-card p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--gray-text);
}

.itt-related-card > span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--header-bg);
    color: var(--primary-color);
    border: 1px solid var(--divider);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.itt-related-card:hover > span {
    transform: translateX(4px);
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 760px) {
    .itt-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .itt-related {
        padding: 18px;
        margin-top: 24px;
    }

    .itt-related__header h2 {
        font-size: 22px;
    }

    .itt-related-card {
        grid-template-columns: 42px 1fr 30px;
        padding: 14px;
    }

    .itt-related-card__icon {
        width: 42px;
        height: 42px;
    }
}