/* ═══════════════════════════════════════════════
   UPENDRA DEV PLATFORM — Tool Page Styles
   ═══════════════════════════════════════════════ */

/* ─── Tool Page Layout ─── */
.tool-page {
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.tool-hero {
    padding: var(--space-3xl) 0 var(--space-2xl);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
}

.tool-hero-inner {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.tool-page-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.4));
    flex-shrink: 0;
}

.tool-hero-text h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.tool-hero-text p {
    font-size: 1rem;
    max-width: 600px;
}

.tool-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.tool-breadcrumb a {
    color: var(--accent);
}

.tool-breadcrumb a:hover {
    text-decoration: underline;
}

.tool-breadcrumb-sep {
    color: var(--text-muted);
}

/* ─── Tool Workspace ─── */
.tool-workspace {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

.workspace-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px;
    margin-bottom: 2px;
}

.panel-title {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ─── Textarea panels ─── */
.editor-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-textarea, .code-output {
    width: 100%;
    min-height: 320px;
    flex: 1;
    padding: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    resize: vertical;
    transition: all var(--transition);
}

.code-output {
    background: rgba(var(--accent-rgb), 0.02);
    color: var(--success);
    cursor: default;
}

.code-textarea:focus {
    outline: none;
}

/* Global move of actions out of textareas */
.editor-actions {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    order: -1; /* renders before the textarea in column layout */
}

/* Hide editor-actions if the parent panel has a panel-actions in the header */
.workspace-panel:has(.panel-actions) .editor-actions {
    display: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.85rem;
}

.btn-icon:hover {
    background: var(--surface-3);
    border-color: var(--border-accent);
    color: var(--accent);
}

.btn-icon.btn-danger-hover:hover {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.code-textarea::placeholder {
    color: var(--text-muted);
}

/* ─── Options Bar ─── */
.options-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.option-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-xs) 0;
}

.option-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.option-row label {
    font-size: 0.875rem;
    color: var(--text-subtle);
    cursor: pointer;
    line-height: 1.4;
}

.option-row input:disabled+label {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Toggle Switch UI ─── */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--surface-3);
    transition: .3s;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: .3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: rgba(var(--accent-rgb), 0.2);
    border-color: var(--accent);
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px var(--accent);
}

.switch input:checked + .slider:before {
    transform: translateX(16px);
    background-color: var(--accent);
}

.option-row-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-xs) 0;
    cursor: pointer;
}

.option-label-wrap {
    display: flex;
    flex-direction: column;
}

.option-label-main {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

/* ─── Workspace Middle Column ─── */
.workspace-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-lg);
    width: 100%;
}

/* Moved workspace-grid-3col layout definitions to media queries at the bottom */

.btn-convert-middle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
    margin-top: 50px;
}

.btn-convert-middle:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-hover, var(--accent));
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.45);
}

.btn-convert-middle:active {
    transform: scale(0.95);
}

.btn-convert-middle i {
    transition: transform 0.3s var(--transition);
}

.btn-convert-middle:hover i {
    transform: translateX(2px);
}

.action-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    min-width: 110px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.action-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

/* ─── Action Buttons Row ─── */
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

/* ─── Symmetrical Action Footer (centered below grid) ─── */
.action-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    margin-top: var(--space-lg);
}

/* ─── File Zone Card (symmetrical upload/download) ─── */
.file-zone-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-2);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    min-height: 56px;
    text-decoration: none;
    color: var(--text);
}

.file-zone-card:hover {
    border-color: var(--border-accent);
    background: rgba(var(--accent-rgb), 0.04);
    color: var(--text);
}

.file-zone-card input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-zone-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.file-zone-text {
    font-size: 0.875rem;
    color: var(--text-subtle);
}

/* ─── File Upload (legacy — kept for backward compat) ─── */
.file-upload-zone {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-2);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
}

.file-upload-zone:hover {
    border-color: var(--border-accent);
    background: rgba(var(--accent-rgb), 0.04);
}

.file-upload-zone input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    font-size: 0.875rem;
    color: var(--text-subtle);
}

/* ─── Result output (read-only) ─── */
.code-output {
    width: 100%;
    min-height: 320px;
    flex: 1;
    padding: var(--space-md);
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--success);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    resize: vertical;
    cursor: default;
}

/* ─── Filter input ─── */
.filter-input {
    width: 100%;
    padding: 0.55rem var(--space-md);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

/* ─── Tab switcher ─── */
.tab-bar {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--space-xl);
    gap: 0;
}

.tab-btn {
    padding: var(--space-md) var(--space-xl);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ─── Info box ─── */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-subtle);
    line-height: 1.6;
}

.info-box-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.warn-box {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--text-subtle);
}

/* ─── Related Tools ─── */
.related-tools {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-subtle);
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.related-tool-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}

.related-tool-link:hover {
    border-color: var(--border-accent);
    background: var(--surface-3);
    transform: translateX(4px);
    color: var(--text);
}

.related-tool-link .icon {
    font-size: 1.5rem;
}

.related-tool-link .name {
    font-size: 0.9rem;
    font-weight: 600;
}

.related-tool-link .desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ─── XML Output (CodeMirror override) ─── */
.cm-wrapper {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    min-height: 320px;
}

/* ─── Salary Result ─── */
.salary-result {
    text-align: center;
    padding: var(--space-3xl);
}

.hike-number {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.hike-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.hike-message {
    font-size: 1.1rem;
    color: var(--text-subtle);
    min-height: 1.5em;
}

/* ─── Generated URL area ─── */
.url-result {
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    word-break: break-all;
    line-height: 1.7;
    color: var(--accent);
    margin: var(--space-md) 0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .tool-hero-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ─── 3-column grid (input | action | output) ─── */
@media (max-width: 899px) {
    .workspace-grid-3col {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 900px) {
    .workspace-grid-3col {
        grid-template-columns: 1fr minmax(130px, 150px) 1fr !important;
    }
}

/* ─── Middle convert button ─── */
.workspace-middle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-convert-middle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
    transition: all var(--transition, 0.2s);
}

.btn-convert-middle:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.btn-convert-middle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface-2);
    color: var(--text-muted);
    box-shadow: none;
}

@media (max-width: 899px) {
    .workspace-middle {
        padding: var(--space-sm) 0;
    }

    .btn-convert-middle {
        width: 100%;
        border-radius: var(--radius-md);
        height: 48px;
        font-size: 1.1rem;
    }

    .btn-convert-middle i {
        transform: rotate(90deg);
    }

    .btn-convert-middle .btn-convert-text {
        display: inline !important;
        font-family: inherit;
        font-weight: 600;
        margin-left: 8px;
    }
}

/* ─── Panel footer row ─── */
.panel-footer-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-top: var(--space-md);
}

/* ═══════════════════════════════════════════════
   NEW SECTIONS — How-to, Social Proof, FAQ, Blog, Support
   ═══════════════════════════════════════════════ */

/* ─── Section wrapper shared ─── */
.tool-section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.tool-section-alt {
    background: var(--surface);
}

.tool-section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.tool-section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.tool-section-header h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin-bottom: var(--space-sm);
}

.tool-section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Social Proof Bar ─── */
.social-proof-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.proof-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.proof-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
}

/* ─── How-to Steps ─── */
.how-to-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    counter-reset: step-counter;
}

.how-to-step {
    position: relative;
    padding: var(--space-xl);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    counter-increment: step-counter;
    transition: border-color var(--transition), transform var(--transition);
}

.how-to-step:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

.how-to-step::before {
    content: counter(step-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.how-to-step h4 {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.how-to-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ─── FAQ Accordion ─── */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-2);
    transition: border-color var(--transition);
}

.faq-item:focus-within,
.faq-item[open] {
    border-color: var(--border-accent);
}

.faq-item summary {
    list-style: none;
    padding: var(--space-lg) var(--space-xl);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    color: var(--text);
    transition: color var(--transition);
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    font-weight: 300;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    color: var(--accent);
}

.faq-answer {
    padding: 0 var(--space-xl) var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.75;
    border-top: 1px solid var(--border);
}

.faq-answer code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: var(--surface-3);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--accent);
}

/* ─── Blog Cards ─── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-xl);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}

.blog-card:hover {
    border-color: var(--border-accent);
    background: var(--surface-3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.blog-card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.blog-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
}

.blog-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Support / Buy Me a Coffee Banner ─── */
.support-banner-wrapper {
    padding: 0;
    margin: 0;
}

.support-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06) 0%, rgba(var(--accent2-rgb, 124, 58, 237), 0.06) 100%);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: var(--radius-lg);
    margin: var(--space-md) auto;
    box-sizing: border-box;
}

.support-banner-text {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.support-banner-text h3 {
    font-size: 1rem;
    margin: 0 0 2px 0;
    font-weight: 700;
    line-height: 1.25;
}

.support-banner-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Force vertical alignment for Buy Me a Coffee Button Widget */
.support-banner > a,
.support-banner > div:not(.support-banner-text),
.support-banner .bmc-btn-container,
.support-banner a[data-name="bmc-button"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 0 !important;
    flex-shrink: 0;
}



/* ─── Hire Me Section (homepage) ─── */
.hire-me-section {
    position: relative;
}

.hire-me-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-3xl);
    align-items: start;
}

.hire-me-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: border-color var(--transition), background var(--transition);
}

.service-card:hover {
    border-color: var(--border-accent);
    background: var(--surface-3);
}

.service-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.service-body h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.service-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.hire-me-cta-card {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
    padding: var(--space-xl);
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* ─── Stat row inside CTA card ─── */
.hire-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hire-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.hire-stat-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.hire-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Capability pills ─── */
.hire-caps-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hire-caps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.hire-cap {
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    transition: border-color var(--transition), background var(--transition);
    cursor: default;
}

.hire-cap:hover {
    border-color: var(--border-accent);
    background: var(--surface-3);
}

/* ─── Cert badges ─── */
.hire-certs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border);
}

.hire-cert-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.hire-cert-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}


.cta-rate-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-md);
    border-radius: 999px;
    width: fit-content;
}

.hire-me-cta-card h3 {
    font-size: 1.3rem;
    line-height: 1.3;
}

.hire-me-detail-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.hire-me-detail-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hire-me-detail-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .hire-me-grid {
        grid-template-columns: 1fr;
    }

    .hire-me-services {
        grid-template-columns: 1fr 1fr;
    }

    .hire-me-cta-card {
        position: static;
    }

    .how-to-steps {
        grid-template-columns: 1fr 1fr;
    }

    .social-proof-bar {
        gap: var(--space-lg);
    }
}

@media (max-width: 640px) {
    .hire-me-services {
        grid-template-columns: 1fr;
    }

    .how-to-steps {
        grid-template-columns: 1fr;
    }

    /* Support Banner Mobile Alignment */
    .support-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
    }

    .support-banner-text {
        text-align: center;
        min-width: 100%;
    }

    .support-banner > a,
    .support-banner > div:not(.support-banner-text),
    .support-banner .bmc-btn-container,
    .support-banner a[data-name="bmc-button"] {
        margin: var(--space-xs) auto 0 !important;
    }

    /* Drag & Drop Modal Mobile Responsiveness */
    .drag-drop-modal-box {
        padding: var(--space-xl) var(--space-lg);
    }

    .drag-drop-title {
        font-size: 1.3rem;
    }

    .drag-drop-icon {
        font-size: 3rem;
    }
}

/* ─── Full-Screen Glassmorphic Drag & Drop Popup Modal ─── */
.drag-drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(13, 27, 42, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px dashed var(--accent);
    box-sizing: border-box;
}

[data-theme="light"] .drag-drop-overlay {
    background: rgba(244, 246, 251, 0.85);
}

.drag-drop-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drag-drop-modal-box {
    background: var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-3xl);
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.4);
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0, 0, 0.2, 1);
    max-width: 500px;
    width: 90%;
}

.drag-drop-overlay.active .drag-drop-box {
    transform: scale(1);
}

.drag-drop-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    animation: bounce-drop 1.2s infinite ease-in-out;
}

@keyframes bounce-drop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.drag-drop-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.drag-drop-subtitle {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* File Dropzone & Editor Drag Active States */
.file-dropzone {
    border: 2px dashed var(--border-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    background: rgba(0, 212, 255, 0.03);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.file-dropzone:hover,
.file-dropzone.drag-active {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
}

.code-textarea.drag-active,
.editor-wrapper.drag-active {
    border-color: var(--accent) !important;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.25) !important;
    background: rgba(0, 212, 255, 0.04) !important;
}

.file-hidden-input {
    display: none !important;
}