.case_converter_section .tool-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
    margin-top: 15px;
    min-width: 0;
}

/* ============ CARD ============ */
.case_converter_section .card {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--card-shadow);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}



.case_converter_section .card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case_converter_section .card-title i {
    color: var(--primary-color);
    font-size: 17px;
}

.case_converter_section .divider-line {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

/* ============ TEXTAREA ============ */
.case_converter_section .textarea-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}

.case_converter_section .input-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.case_converter_section #inputText,
.case_converter_section #outputText {
    width: 100%;
    min-height: 200px;
    max-width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    padding-right: 80px;
    /* space for action buttons */
    font-size: 14px;
    color: var(--primary-text);
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
    font-family: "Poppins", sans-serif;
    line-height: 1.7;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.case_converter_section #inputText:focus,
.case_converter_section #outputText:focus {
    border-color: var(--primary-color);
}

.case_converter_section #outputText {
    cursor: default;
    color: var(--primary-text);
}

.case_converter_section .textarea-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 1;
}

.case_converter_section .icon-btn {
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-text);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.case_converter_section .icon-btn:hover {
    background: var(--hover-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.case_converter_section .icon-btn span {
    font-size: 10px;
    font-weight: 600;
}

/* ============ STATS BAR ============ */
.case_converter_section .stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.case_converter_section .stat-chip {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.case_converter_section .stat-chip .stat-val {
    font-weight: 700;
    color: var(--primary-color);
}

/* ============ QUICK CASES ============ */
.quick-cases-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.quick-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-btn {
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.case-btn:hover,
.case-btn.active {
    background: var(--hover-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.case-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ============ SIDEBAR ============ */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.category-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-text);
    padding: 0 0 6px;
}

.sidebar-case-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-case-btn {
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: "Poppins", sans-serif;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.sidebar-case-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.sidebar-case-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.sidebar-case-btn:hover .btn-name,
.sidebar-case-btn:hover .btn-preview {
    color: #fff;
}

.sidebar-case-btn.active .btn-name,
.sidebar-case-btn.active .btn-preview {
    color: #fff;
}

.btn-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-preview {
    font-size: 10px;
    color: var(--gray-text);
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ COPY BTN ============ */
.case_converter_section .copy-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

.case_converter_section .copy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.case_converter_section .copy-btn:active {
    transform: translateY(0);
}

.case_converter_section .copy-btn.copied {
    background: #22c55e;
}

/* ============ FIND & REPLACE ============ */
.find-replace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.mini-input-wrap label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.mini-input {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    color: var(--primary-text);
    outline: none;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.mini-input:focus {
    border-color: var(--primary-color);
}

.replace-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

.replace-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ============ TOAST ============ */
.case_converter_section .toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
    white-space: nowrap;
}

.case_converter_section .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .case_converter_section .tool-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .sidebar-section {
        grid-template-columns: 1fr;
    }

    .find-replace-grid {
        grid-template-columns: 1fr;
    }

    .case_converter_section #inputText,
    .case_converter_section #outputText {
        min-height: 160px;
    }
}

/* ============ HISTORY ============ */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 0;
}

.history-item:hover {
    border-color: var(--primary-color);
    background: var(--hover-color);
}

.history-item .h-case {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.history-item .h-text {
    font-size: 11px;
    color: var(--gray-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.empty-history {
    font-size: 11px;
    color: var(--gray-text);
    text-align: center;
    padding: 10px;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--input-bg);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* ============ TOGGLE ============ */
.case_converter_section .toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.case_converter_section .toggle-label {
    font-size: 12px;
    color: var(--primary-text);
    font-weight: 500;
}

.case_converter_section .toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.case_converter_section .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.case_converter_section .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border);
    border-radius: 20px;
    transition: 0.3s;
}

.case_converter_section .slider:before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.case_converter_section input:checked+.slider {
    background: var(--primary-color);
}

.case_converter_section input:checked+.slider:before {
    transform: translateX(16px);
}

/* ============ BADGE ============ */
.case_converter_section .case-btn-badge {
    font-size: 9px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 5px;
    font-weight: 700;
}


/* ============ FORMAT TABS (Desktop) ============ */
.format-tabs {
    display: flex;
    gap: 6px;
    background: var(--input-bg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 14px;
}

.format-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-text);
    border-radius: 10px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    transition: all 0.2s;
}

.format-tab.active {
    background: var(--primary-color);
    color: #fff;
}

.format-tab-panel {
    display: none;
}

.format-tab-panel.active {
    display: block;
}

.format-card .sidebar-case-list {
    max-height: 280px;
    overflow-y: auto;
}

/* Hidden by default — mobile-only elements */
.mobile-format-fab,
.format-sheet-overlay,
.format-card .sheet-handle,
.format-card .sheet-close {
    display: none;
}

/* ============ MOBILE: BOTTOM SHEET ============ */
@media (max-width: 900px) {

    .mobile-format-fab {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 998;
        background: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 50px;
        padding: 12px 18px;
        font-size: 13px;
        font-weight: 600;
        font-family: "Poppins", sans-serif;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }

    .format-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .format-sheet-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .format-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 78vh;
        overflow-y: auto;
        transform: translateY(110%);
        transition: transform 0.35s cubic-bezier(.22, 1, .36, 1);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    }

    /* .history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--input-bg);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
} */

    .format-card.sheet-open {
        transform: translateY(0);
    }

    .format-card .sheet-handle {
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border);
        border-radius: 4px;
        margin: 0 auto 14px;
    }

    .format-card .sheet-close {
        display: flex;
        margin-left: auto;
        background: transparent;
        border: none;
        color: var(--gray-text);
        font-size: 16px;
        cursor: pointer;
    }

    .format-card .sidebar-case-list {
        max-height: none;
        overflow-y: visible;
    }
}



/* ============ HOW TO USE ============ */
.how-use-section {
    padding: 10px 0 80px;
}

.how-use-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 32%),
        linear-gradient(135deg, var(--card-color), var(--body-background));
    box-shadow: var(--card-shadow);
    padding: 30px;
}

.how-use-header {
    max-width: 720px;
    margin-bottom: 24px;
}

.section-kicker {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    background: var(--hover-color);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.how-use-header h2 {
    color: var(--primary-text);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    margin-bottom: 10px;
}

.how-use-header p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
}

.how-use-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 22px;
    align-items: stretch;
}

.how-use-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.how-step-card {
    position: relative;
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.how-step-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 14px 35px rgba(99, 102, 241, 0.12);
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.step-icon {
    height: 42px;
    width: 42px;
    border-radius: 12px;
    background: var(--hover-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.step-number {
    height: 28px;
    min-width: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.how-step-card h3 {
    color: var(--primary-text);
    font-size: 15px;
    margin-bottom: 7px;
}

.how-step-card p {
    color: var(--gray-text);
    font-size: 12px;
    line-height: 1.7;
}

.how-use-preview {
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.preview-window {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--input-bg);
    overflow: hidden;
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.55;
}

.preview-body {
    padding: 16px;
}

.preview-label {
    display: block;
    color: var(--gray-text);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.preview-text {
    color: var(--primary-text);
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.preview-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.22);
}

.preview-text.output {
    color: var(--primary-color);
    font-weight: 700;
}

.tips-title {
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tips-list span {
    color: var(--primary-text);
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 500;
}

[data-theme="dark"] .section-kicker,
[data-theme="dark"] .step-icon {
    background: rgba(99, 102, 241, 0.14);
}

[data-theme="dark"] .how-use-shell {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 34%),
        linear-gradient(135deg, #111827, var(--card-color));
}

@media (max-width: 900px) {
    .how-use-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .how-use-section {
        padding: 0 0 60px;
    }

    .how-use-shell {
        padding: 20px;
    }

    .how-use-steps {
        grid-template-columns: 1fr;
    }
}





/* ============ FEATURES SECTION ============ */
.case-features-section {
    padding: 80px 0;
    background: var(--section-bg);
}

.case-features-header {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.case-features-header .section-kicker {
    margin: 0 auto 12px;
}

.case-features-header h2 {
    color: var(--primary-text);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    margin-bottom: 10px;
}

.case-features-header p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
}

.case-features-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: stretch;
}

.case-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 35px rgba(99, 102, 241, 0.12);
}

.feature-icon {
    height: 46px;
    width: 46px;
    border-radius: 14px;
    background: var(--hover-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 16px;
}

.feature-card h3 {
    color: var(--primary-text);
    font-size: 15px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-text);
    font-size: 12px;
    line-height: 1.7;
}

.feature-highlight-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.22), transparent 34%),
        linear-gradient(135deg, var(--primary-color), #818cf8);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: #fff;
    box-shadow: 0 18px 42px rgba(99, 102, 241, 0.25);
}

.highlight-badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 18px;
}

.feature-highlight-card h3 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.feature-highlight-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlight-list {
    display: grid;
    gap: 10px;
}

.highlight-list div {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
}

.highlight-list i {
    font-size: 17px;
}

[data-theme="dark"] .feature-icon {
    background: rgba(99, 102, 241, 0.14);
}

[data-theme="dark"] .feature-card {
    background: var(--card-color);
}

@media (max-width: 1024px) {
    .case-features-layout {
        grid-template-columns: 1fr;
    }

    .case-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .case-features-section {
        padding: 60px 0;
    }

    .case-features-grid {
        grid-template-columns: 1fr;
    }

    .feature-highlight-card {
        padding: 20px;
    }

    .feature-highlight-card h3 {
        font-size: 21px;
    }
}




/* ============ CONTENT SECTION ============ */
.case-content-section {
    padding: 80px 0;
    background: var(--body-background);
}

.case-content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.case-content-main {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.case-content-main h2 {
    color: var(--primary-text);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    margin-bottom: 14px;
}

.case-content-main p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 14px;
}

.content-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.content-info-card {
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: 0.25s ease;
}

.content-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.1);
}

.content-info-card i {
    height: 42px;
    width: 42px;
    border-radius: 12px;
    background: var(--hover-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.content-info-card h3 {
    color: var(--primary-text);
    font-size: 14px;
    margin-bottom: 6px;
}

.content-info-card p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 0;
}

.case-content-side {
    position: sticky;
    top: 95px;
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--card-shadow);
}

.side-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.side-title i {
    color: var(--primary-color);
    font-size: 19px;
}

.case-format-list {
    display: grid;
    gap: 10px;
}

.case-format-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 12px;
}

.case-format-list span {
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
}

.case-format-list code {
    color: var(--primary-color);
    background: var(--hover-color);
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 11px;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
}

[data-theme="dark"] .content-info-card,
[data-theme="dark"] .case-format-list div {
    background: var(--input-bg);
}

[data-theme="dark"] .content-info-card i,
[data-theme="dark"] .case-format-list code {
    background: rgba(99, 102, 241, 0.14);
}

@media (max-width: 1024px) {
    .case-content-wrap {
        grid-template-columns: 1fr;
    }

    .case-content-side {
        position: static;
    }
}

@media (max-width: 768px) {
    .content-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .case-content-section {
        padding: 60px 0;
    }

    .case-content-main,
    .case-content-side {
        padding: 20px;
    }

    .case-format-list div {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* ============ EXAMPLE SECTION ============ */
.case-example-section {
    padding: 80px 0;
    background: var(--section-bg);
}

.case-example-header {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.case-example-header .section-kicker {
    margin: 0 auto 12px;
}

.case-example-header h2 {
    color: var(--primary-text);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    margin-bottom: 10px;
}

.case-example-header p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
}

.case-example-wrap {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.example-input-card {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 35%),
        var(--body-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.example-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.example-card-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.example-original-box {
    color: var(--primary-text);
    background: var(--input-bg);
    border: 1px dashed var(--primary-color);
    border-radius: var(--radius-md);
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}

.example-arrow-box {
    height: 46px;
    width: 46px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: absolute;
    right: -33px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid var(--section-bg);
    z-index: 2;
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.25);
}

.example-output-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.example-output-card {
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: 0.25s ease;
}

.example-output-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.1);
}

.example-output-card span {
    width: fit-content;
    display: block;
    color: var(--primary-color);
    background: var(--hover-color);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 12px;
}

.example-output-card p {
    color: var(--primary-text);
    font-size: 13px;
    line-height: 1.7;
    word-break: break-word;
}

[data-theme="dark"] .example-input-card,
[data-theme="dark"] .example-output-card {
    background: var(--card-color);
}

[data-theme="dark"] .example-output-card span {
    background: rgba(99, 102, 241, 0.14);
}

@media (max-width: 900px) {
    .case-example-wrap {
        grid-template-columns: 1fr;
    }

    .example-arrow-box {
        position: static;
        transform: none;
        margin: 18px auto 0;
    }

    .example-arrow-box i {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .case-example-section {
        padding: 60px 0;
    }

    .example-output-grid {
        grid-template-columns: 1fr;
    }

    .example-input-card {
        padding: 20px;
    }
}


/* ============ FAQ SECTION ============ */
.case-faq-section {
    padding: 80px 0;
    background: var(--body-background);
}

.case-faq-header {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.case-faq-header .section-kicker {
    margin: 0 auto 12px;
}

.case-faq-header h2 {
    color: var(--primary-text);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    margin-bottom: 10px;
}

.case-faq-header p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
}

.case-faq-container {
    max-width: 850px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.case-faq-item {
    background: var(--card-color);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.case-faq-item.active {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 16px 34px rgba(99, 102, 241, 0.1);
}

.case-faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--primary-text);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    font-family: "Poppins", sans-serif;
}

.case-faq-question span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.case-faq-question i {
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--hover-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.35s ease, background 0.25s ease;
}

.case-faq-item.active .case-faq-question i {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: #fff;
}

.case-faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-faq-answer-inner {
    padding: 0 20px 20px;
}

.case-faq-answer-inner p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

[data-theme="dark"] .case-faq-question i {
    background: rgba(99, 102, 241, 0.14);
}

[data-theme="dark"] .case-faq-item.active .case-faq-question i {
    background: var(--primary-color);
}

@media (max-width: 600px) {
    .case-faq-section {
        padding: 60px 0;
    }

    .case-faq-question {
        padding: 16px;
    }

    .case-faq-question span {
        font-size: 13px;
    }

    .case-faq-answer-inner {
        padding: 0 16px 16px;
    }
}



/* ============ RELATED TOOLS SECTION ============ */
.case-related-section {
    padding: 80px 0;
    background: var(--section-bg);
}

.case-related-header {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.case-related-header .section-kicker {
    margin: 0 auto 12px;
}

.case-related-header h2 {
    color: var(--primary-text);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    margin-bottom: 10px;
}

.case-related-header p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.8;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-tool-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: var(--body-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    color: var(--primary-text);
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
    transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.related-tool-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 22px 45px rgba(99, 102, 241, 0.16);
}

.related-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(99, 102, 241, 0.18),
        transparent 34%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.related-tool-card:hover .related-glow {
    opacity: 1;
}

.related-tool-icon {
    height: 52px;
    width: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    transition: transform 0.25s ease;
}

.related-tool-card:hover .related-tool-icon {
    transform: translateY(-3px) scale(1.06);
}

.related-tool-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.related-tool-icon.green {
    background: #ecfdf5;
    color: #059669;
}

.related-tool-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.related-tool-icon.violet {
    background: #f5f3ff;
    color: #7c3aed;
}

.related-tool-icon.cyan {
    background: #ecfeff;
    color: #0891b2;
}

.related-tool-icon.pink {
    background: #fdf2f8;
    color: #db2777;
}

.related-tag {
    width: fit-content;
    display: block;
    color: var(--primary-color);
    background: var(--hover-color);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: capitalize;
}

.related-tool-card h3 {
    color: var(--primary-text);
    font-size: 17px;
    margin-bottom: 8px;
}

.related-tool-card p {
    color: var(--gray-text);
    font-size: 13px;
    line-height: 1.7;
}

[data-theme="dark"] .related-tool-card {
    background: var(--card-color);
}

[data-theme="dark"] .related-tool-icon {
    background: rgba(99, 102, 241, 0.14);
    color: var(--primary-color);
}

[data-theme="dark"] .related-tag {
    background: rgba(99, 102, 241, 0.14);
}

@media (max-width: 900px) {
    .related-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .case-related-section {
        padding: 60px 0;
    }

    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .related-tool-card {
        min-height: auto;
    }
}