/* ==========================================================================
   Pishgamit Tools Modern UI/UX Stylesheet
   ========================================================================== */

/* --- Tools Hero Section (Index) --- */
.tools-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(102, 126, 234, 0.12) 100%);
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tools-hero::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tools-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tools-hero-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.tools-search-box {
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

.tools-search-input {
    width: 100%;
    height: 52px;
    padding: 0 3rem 0 1.25rem;
    font-size: 1rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.tools-search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.15);
}

.tools-search-icon {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
}

/* Quick Filter Tags below search */
.tools-quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.tools-quick-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tools-quick-tag:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    transform: translateY(-2px);
}

/* --- Category Filter Tabs --- */
.tools-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    justify-content: center;
}

.tool-cat-btn {
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-cat-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.tool-cat-btn.active {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.tool-cat-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
}

.tool-cat-btn.active .tool-cat-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* --- Featured Popular Tools Section --- */
.featured-tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.featured-tools-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-tool-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.featured-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}

.featured-tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--tool-accent, #0d6efd);
}

.featured-tool-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.featured-tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.featured-tool-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.featured-tool-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.featured-tool-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tool-accent, #0d6efd);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Modern Tool Card (General Grid) --- */
.modern-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.modern-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}

.modern-tool-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.modern-tool-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.modern-tool-heading {
    flex-grow: 1;
}

.modern-tool-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.modern-tool-category-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.modern-tool-text {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.modern-tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.modern-tool-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    transition: all 0.2s ease;
}

/* Category Sections */
.tool-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    background: #f8fafc;
    border-right: 4px solid #0d6efd;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Empty Search Results */
.tools-no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    margin: 2rem 0;
}

.tools-no-results.visible {
    display: block;
}

/* ==========================================================================
   Tool Page Navigation Component (_ToolNav)
   ========================================================================== */
.tool-nav-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tool-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.tool-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.tool-breadcrumb a:hover {
    color: #0d6efd;
}

.tool-breadcrumb .separator {
    font-size: 0.7rem;
    color: #cbd5e1;
}

.tool-breadcrumb .current {
    font-weight: 700;
    color: #0f172a;
}

.btn-tool-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-tool-back:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* Related Tools Strip */
.tool-related-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.tool-related-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.25rem;
}

.tool-related-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tool-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tool-pill.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   Modern Interactive Tool Components (Fintech & SaaS grade)
   ========================================================================== */

/* Main Workspace Card */
.tool-workspace {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tool-workspace-header {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool-workspace-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tool-workspace-body {
    padding: 1.75rem;
}

/* Segmented Switcher Tabs (Horizontal Scrollable on Mobile) */
.tool-segment-nav {
    display: flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    padding: 0.35rem;
    background: #f1f5f9;
    border-radius: 14px;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.tool-segment-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tool-segment-item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.55rem 1.15rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.tool-segment-item:hover {
    color: #0f172a;
}

.tool-segment-item.active {
    background: #ffffff;
    color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Modern Input Box */
.modern-input-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    transition: all 0.25s ease;
    position: relative;
}

.modern-input-card:focus-within {
    border-color: #0d6efd;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.input-top-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.huge-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    outline: none;
    padding: 0;
    direction: ltr;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.huge-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Central Swap Button */
.tool-swap-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem 0;
    position: relative;
}

.tool-swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.tool-swap-btn:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    transform: rotate(180deg) scale(1.05);
}

/* Quick Chips */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.chip-btn {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.chip-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

/* Live Rate Pill */
.rate-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.rate-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    display: inline-block;
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Result Hero Container */
.tool-hero-result {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 18px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.tool-hero-result.blue {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.hero-result-amount {
    font-size: 2.1rem;
    font-weight: 800;
    color: #166534;
    direction: rtl;
    display: inline-block;
    line-height: 1.2;
}

.blue .hero-result-amount {
    color: #1e40af;
}

.hero-result-words {
    font-size: 1rem;
    font-weight: 600;
    color: #15803d;
    margin-top: 0.4rem;
    line-height: 1.5;
}

.blue .hero-result-words {
    color: #2563eb;
}

.btn-copy-result {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1e293b;
    cursor: pointer;
    margin-top: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-copy-result:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.btn-copy-result.copied {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* Monospace Preview Display (Password, GUID, Hash) */
.tool-mono-display {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-family: monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #0f172a;
    text-align: center;
    word-break: break-all;
    position: relative;
    user-select: all;
}

/* Range Slider */
.modern-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: #e2e8f0;
    outline: none;
    transition: background 0.2s;
}

.modern-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.4);
    transition: transform 0.15s ease;
}

.modern-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Visual Breakdown Bar */
.breakdown-bar {
    height: 14px;
    border-radius: 8px;
    background: #e2e8f0;
    display: flex;
    overflow: hidden;
    margin: 1rem 0;
}

.breakdown-seg-principal {
    background: #0d6efd;
    height: 100%;
    transition: width 0.4s ease;
}

.breakdown-seg-interest {
    background: #f59e0b;
    height: 100%;
    transition: width 0.4s ease;
}

/* Minimal FAQ Section at bottom */
.tool-seo-faq {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.tool-seo-faq h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Responsive Mobile Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .tool-workspace-header {
        padding: 1.1rem 1rem;
    }

    .tool-workspace-title {
        font-size: 1.15rem;
    }

    .tool-workspace-body {
        padding: 1.15rem 1rem;
    }

    .tool-segment-nav {
        padding: 0.3rem;
        gap: 0.25rem;
        margin-bottom: 1.25rem;
    }

    .tool-segment-item {
        padding: 0.5rem 0.95rem;
        font-size: 0.84rem;
        gap: 0.35rem;
    }

    .modern-input-card {
        padding: 1rem;
    }

    .huge-input {
        font-size: 1.4rem;
    }

    /* Horizontal scroll for related pills in _ToolNav on mobile */
    .tool-related-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .tool-related-pills {
        display: flex;
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .tool-related-pills::-webkit-scrollbar {
        display: none;
    }

    .tool-pill {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Horizontal scroll for category and coin chips on mobile */
    #unitCategoryPills,
    #coinPills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.35rem;
        margin-bottom: 0.5rem;
    }

    #unitCategoryPills::-webkit-scrollbar,
    #coinPills::-webkit-scrollbar {
        display: none;
    }

    #unitCategoryPills .chip-btn,
    #coinPills .chip-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */
[data-theme="dark"] .tool-workspace,
[data-theme="dark"] .tool-nav-container,
[data-theme="dark"] .featured-tool-card,
[data-theme="dark"] .modern-tool-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .tool-workspace-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #334155;
}

[data-theme="dark"] .tool-workspace-title,
[data-theme="dark"] .featured-tool-name,
[data-theme="dark"] .modern-tool-title,
[data-theme="dark"] .tool-breadcrumb .current {
    color: #f8fafc;
}

[data-theme="dark"] .modern-input-card {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .modern-input-card:focus-within {
    border-color: #3b82f6;
    background: #0f172a;
}

[data-theme="dark"] .huge-input {
    color: #f8fafc;
}

[data-theme="dark"] .input-top-label,
[data-theme="dark"] .featured-tool-desc,
[data-theme="dark"] .modern-tool-text,
[data-theme="dark"] .tool-breadcrumb,
[data-theme="dark"] .tool-breadcrumb a {
    color: #94a3b8;
}

[data-theme="dark"] .tool-segment-nav {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .tool-segment-item {
    color: #94a3b8;
}

[data-theme="dark"] .tool-segment-item.active {
    background: #1e293b;
    color: #60a5fa;
}

[data-theme="dark"] .tool-swap-btn,
[data-theme="dark"] .chip-btn,
[data-theme="dark"] .btn-tool-back,
[data-theme="dark"] .tool-pill {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .tool-swap-btn:hover,
[data-theme="dark"] .btn-tool-back:hover,
[data-theme="dark"] .tool-pill:hover,
[data-theme="dark"] .chip-btn:hover {
    background: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .chip-btn.active,
[data-theme="dark"] .tool-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .tool-hero-result {
    background: rgba(22, 101, 52, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .hero-result-amount {
    color: #4ade80;
}

[data-theme="dark"] .hero-result-words {
    color: #86efac;
}

[data-theme="dark"] .tool-hero-result.blue {
    background: rgba(30, 58, 138, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .blue .hero-result-amount {
    color: #60a5fa;
}

[data-theme="dark"] .blue .hero-result-words {
    color: #93c5fd;
}

[data-theme="dark"] .btn-copy-result,
[data-theme="dark"] .tool-mono-display {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .rate-live-pill {
    background: rgba(22, 101, 52, 0.3);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

[data-theme="dark"] .tool-seo-faq {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .tool-seo-faq h2 {
    color: #f8fafc;
}
