/* ==========================================================================
   DoxKing — styles.css (Global)
   Variables, reset, base, buttons, utility.
   Shared by ALL languages.
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --accent: #0d9488;
    --accent-light: #ccfbf1;
    --ink: #1e2330;
    --ink-soft: #545b6b;
    --border: #e3e6ec;
    --bg: #f6f7fb;
    --card: #ffffff;
    --success: #16a34a;
    --warn: #d97706;
    --danger: #dc2626;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(20, 24, 39, 0.04), 0 8px 24px rgba(20, 24, 39, 0.06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-pad: 24px;
    --sidebar-width: 260px;
    --header-height: 63px;

    --glow-border: rgba(129, 140, 248, 0.40);
    --glow-border-hover: rgba(129, 140, 248, 0.75);
    --glow-shadow: rgba(129, 140, 248, 0.20);
    --glow-shadow-strong: rgba(129, 140, 248, 0.35);
}

html[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #1e1b4b;
    --accent: #2dd4bf;
    --accent-light: #134e4a;
    --ink: #e5e7eb;
    --ink-soft: #9ca3af;
    --border: #2d3340;
    --bg: #0f1419;
    --card: #1a1f2e;
    --success: #22c55e;
    --warn: #f59e0b;
    --danger: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

main {
    padding: 40px 0 64px;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    margin-bottom: 14px;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

p {
    color: var(--ink-soft);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-primary:disabled {
    background: #b7bcf5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: #0b7a70;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
}

/* ============================================================
   HIDE GOOGLE TRANSLATE UI (safety)
   ============================================================ */
.goog-te-banner-frame,
body>.skiptranslate>iframe,
.skiptranslate.goog-te-gadget {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

body {
    top: 0 !important;
}

#google_translate_element {
    display: none !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    text-align: center;
    padding: 40px 0 30px;
    min-height: 150px;
    box-sizing: border-box;
}

.hero p.lead {
    max-width: 620px;
    margin: 14px auto 0;
    font-size: 1.05rem;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 32px auto;
    max-width: 1180px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: -webkit-left;
}

.trust-item .trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-item .trust-text strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
}

.trust-item .trust-text span {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

/* ============================================================
   TRUST CONTAINER
   ============================================================ */
.trust-container {
    max-width: 100%;
    margin: 60px auto;
    padding: 50px 60px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.trust-container h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.trust-container p {
    max-width: 760px;
    margin: 0 auto;
    color: #64748b;
    font-size: 17px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .trust-container {
        margin: 40px 15px;
        padding: 35px 22px;
        border-radius: 18px;
    }

    .trust-container h2 {
        font-size: 28px;
    }

    .trust-container p {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* ============================================================
   CATEGORY FILTER
   ============================================================ */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.category-btn {
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: all .15s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
    text-decoration: none;
}

.tool-card .tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.tool-card .tool-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.tool-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--ink);
}

.tool-card p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--ink-soft);
}

.tool-badge {
    position: absolute;
    top: 5px;
    right: 16px;
    background: var(--accent-light);
    color: #0b675f;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

/* ============================================================
   TOOL PAGE — HERO / WORKSPACE
   ============================================================ */
.tool-hero {
    text-align: center;
    padding: 40px 0 8px;
}

.tool-hero .tool-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.tool-hero h1 {
    margin-bottom: 10px;
}

.tool-hero p {
    max-width: 620px;
    margin: 0 auto;
}

.workspace {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin: 28px 0;
}
@media (max-width: 600px) {
    .workspace {
        padding: 10px;
    }
}
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 44px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.dropzone svg {
    color: var(--primary);
    margin-bottom: 12px;
}

.dropzone .dz-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.dropzone .dz-sub {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.file-row .f-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-row .f-meta {
    flex: 1;
    min-width: 0;
}

.file-row .f-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-row .f-size {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.file-row .f-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 1.1rem;
    padding: 4px 8px;
}

.file-row .f-remove:hover {
    color: var(--danger);
}

.file-row .f-progress {
    width: 100%;
    height: 5px;
    background: var(--border);
    border-radius: 4px;
    margin-top: 6px;
    overflow: hidden;
}

.file-row .f-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width .2s ease;
}

.options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 20px 0;
}

.field {
    flex: 1;
    min-width: 160px;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink-soft);
}

.field select,
.field input[type="text"],
.field input[type="number"],
.field input[type="password"],
.field input[type="url"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    background: #fff;
}

.field select:focus,
.field input:focus {
    outline: none;
    border-color: var(--primary);
}

.field input[type="range"] {
    width: 100%;
}

.field-note {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-top: 4px;
}

.progress-wrap {
    margin: 18px 0;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width .25s ease;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 8px;
    text-align: center;
}

.result-card {
    text-align: center;
    padding: 20px 0;
}

.result-card .r-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.stat-strip {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.stat-strip .stat {
    text-align: center;
}

.stat-strip .stat b {
    display: block;
    font-size: 1.3rem;
    color: var(--primary);
}

.stat-strip .stat span {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin: 14px 0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid #c7d2fe;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
    margin: 56px auto;
    max-width: 1180px;
    padding: 0 var(--container-pad);
    width: 100%;
}

.content-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.content-section>p {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.content-section .steps-list,
.content-section .feature-list {
    margin-top: 8px;
    margin-left: 20px;
}

.content-section .related-tools {
    margin-top: 6px;
}

.steps-list {
    counter-reset: step;
    list-style: none;
    display: grid;
    gap: 16px;
}

.steps-list li {
    counter-increment: step;
    padding-left: 46px;
    position: relative;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
    padding-left: 0;
    margin: 8px 0 16px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    display: block;
    overflow: visible;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 1px;
    top: 0.1em;
    width: 18px;
    height: 1.65em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--accent);
    margin-left: -20px;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 760px) {
    .feature-list li {
        padding-left: 28px;
        font-size: 0.92rem;
    }
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    color: var(--ink);
    font-size: 0.98rem;
    padding-right: 30px;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.related-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.related-tools a {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.87rem;
    color: var(--ink);
    font-weight: 600;
    background: #fff;
    transition: all .15s ease;
}

.related-tools a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

/* ============================================================
   FAQ — TWO-COLUMN
   ============================================================ */
.faq-columns {
    column-count: 2;
    column-gap: 34px;
    margin-top: 20px;
}

.faq-columns .faq-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.faq-category {
    margin-top: 28px;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    column-span: all;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}

.faq-category:first-of-type {
    margin-top: 0;
}

@media (max-width: 780px) {
    .faq-columns {
        column-count: 1;
    }
}

/* ============================================================
   WHY DOXKING
   ============================================================ */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.why-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.why-card .why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.why-card .why-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.why-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--ink);
}

.why-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.how-step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px 26px;
    text-align: center;
}

.how-step .how-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.how-step .how-icon {
    width: 54px;
    height: 54px;
    margin: 6px auto 14px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-step .how-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.how-step h3 {
    margin-bottom: 8px;
    font-size: 1.02rem;
    color: var(--ink);
}

.how-step p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ============================================================
   USE-CASES
   ============================================================ */
.use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.use-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    transition: transform .18s ease, border-color .18s ease;
}

.use-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.use-card .use-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.use-card .use-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.use-card h3 {
    font-size: 0.98rem;
    margin-bottom: 6px;
    color: var(--ink);
}

.use-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-wrap {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: var(--bg);
    font-weight: 800;
    color: var(--ink);
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.compare-table td {
    color: var(--ink-soft);
}

.compare-table td:first-child {
    font-weight: 700;
    color: var(--ink);
}

.compare-table .yes {
    color: var(--success);
    font-weight: 700;
}

.compare-table .no {
    color: var(--danger);
    font-weight: 700;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   RECENT TOOLS
   ============================================================ */
.recent-tools {
    margin-top: 44px;
}

.recent-tools-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.recent-tools-list .rt-item {
    min-width: 140px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--ink);
    flex-shrink: 0;
    text-decoration: none;
}

.recent-tools-list .rt-item:hover {
    border-color: var(--primary);
    text-decoration: none;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   DARK MODE — GLOBAL
   ============================================================ */
html[data-theme="dark"] body {
    background: var(--bg);
    color: var(--ink);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
    color: var(--ink);
}

html[data-theme="dark"] p {
    color: var(--ink-soft);
}


html[data-theme="dark"] .btn-secondary {
    background: var(--card);
    color: var(--ink);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .btn-secondary:hover {
    border-color: var(--glow-border-hover);
    color: var(--primary);
    background: var(--primary-light);
}

html[data-theme="dark"] .tool-card {
    background: var(--card);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .tool-card h3 {
    color: var(--ink);
}

html[data-theme="dark"] .tool-card p {
    color: var(--ink-soft);
}

html[data-theme="dark"] .tool-card .tool-icon {
    background: var(--primary-light);
    color: var(--primary);
}

html[data-theme="dark"] .tool-badge {
    background: #14b8a6;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .tool-badge:hover {
    background: #0d9488;
}

html[data-theme="dark"] .category-btn {
    background: var(--card);
    color: var(--ink-soft);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .category-btn:hover,
html[data-theme="dark"] .category-btn.active {
    background: var(--primary);
    color: #0f1419;
    border-color: var(--primary);
}

html[data-theme="dark"] .content-section h2 {
    color: var(--ink);
    border-bottom-color: var(--glow-border);
}

html[data-theme="dark"] .faq-item {
    border-color: var(--glow-border);
}

html[data-theme="dark"] .faq-item summary {
    color: var(--ink);
}

html[data-theme="dark"] .related-tools a {
    background: var(--card);
    color: var(--ink);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .related-tools a:hover {
    color: var(--primary);
    border-color: var(--glow-border-hover);
}

html[data-theme="dark"] .recent-tools-list .rt-item {
    background: var(--card);
    color: var(--ink);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .alert-info {
    background: rgba(129, 140, 248, 0.12);
    color: var(--primary);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .alert-error {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.45);
}

html[data-theme="dark"] .alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.45);
}

html[data-theme="dark"] .progress-track {
    background: var(--border);
}

html[data-theme="dark"] .progress-fill {
    background: var(--primary);
}

html[data-theme="dark"] .spinner {
    border-color: rgba(129, 140, 248, 0.3);
    border-top-color: var(--primary);
}

html[data-theme="dark"] .trust-item {
    background: var(--card);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .why-card {
    background: var(--card);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .how-step {
    background: var(--card);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .use-card {
    background: var(--card);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .compare-wrap {
    background: var(--card);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .compare-table th {
    background: var(--bg);
    color: var(--ink);
}

html[data-theme="dark"] .compare-table td {
    color: var(--ink-soft);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .faq-category {
    border-bottom-color: var(--glow-border);
}

html[data-theme="dark"] .trust-container {
    background: var(--card);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .trust-container h2 {
    color: var(--ink);
}

html[data-theme="dark"] .trust-container p {
    color: var(--ink-soft);
}

html[data-theme="dark"] .trust-item .trust-text strong {
    color: var(--ink);
}

html[data-theme="dark"] .trust-item .trust-text span {
    color: var(--ink-soft);
}

html[data-theme="dark"] .tool-card:hover,
html[data-theme="dark"] .why-card:hover,
html[data-theme="dark"] .how-step:hover,
html[data-theme="dark"] .use-card:hover,
html[data-theme="dark"] .trust-item:hover,
html[data-theme="dark"] .related-tools a:hover,
html[data-theme="dark"] .recent-tools-list .rt-item:hover {
    border-color: var(--glow-border-hover) !important;
    box-shadow: 0 0 0 1px var(--glow-border-hover),
        0 8px 28px var(--glow-shadow-strong) !important;
}

@media (max-width: 600px) {
    :root {
        --container-pad: 16px;
    }
}

/* Prevent layout shifts on homepage */
#tools .tools-grid {
    min-height: 1100px;
    align-content: start;
}

#why-doxking .trust-container {
    min-height: 230px;
}

main {
    width: 100%;
    display: flow-root;
}

@media (max-width: 768px) {
    #tools .tools-grid {
        min-height: 3600px;
    }

    #why-doxking .trust-container {
        min-height: 220px;
    }
}

/* ============================================================
   NEED SOMETHING ELSE? — Tool Suggestion Grid
   ============================================================ */
.tool-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

.tool-suggestion {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tool-suggestion::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 0 4px 4px 0;
    transition: height .35s ease;
}

.tool-suggestion:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
    transform: translateY(-3px);
    text-decoration: none;
}

.tool-suggestion:hover::after {
    height: 60%;
}

.tool-suggestion-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: var(--primary);
    border-radius: 14px;
    transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.12);
}

.tool-suggestion:hover .tool-suggestion-icon {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.25);
}

.tool-suggestion-icon-png {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.tool-suggestion-icon-warn {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.tool-suggestion-icon-pdf {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.tool-suggestion-content {
    flex: 1;
    min-width: 0;
}

.tool-suggestion-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 5px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.tool-suggestion-desc {
    font-size: 0.79rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.tool-suggestion-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: all .3s ease;
    background: var(--bg);
    border-radius: 50%;
}

.tool-suggestion:hover .tool-suggestion-arrow {
    color: #ffffff;
    background: var(--primary);
    transform: translateX(4px) scale(1.1);
}

@media (max-width: 760px) {
    .tool-suggestion-grid {
        grid-template-columns: 1fr;
    }

    .tool-suggestion {
        padding: 15px 16px;
        gap: 13px;
    }

    .tool-suggestion-icon {
        width: 46px;
        height: 46px;
    }

    .tool-suggestion-arrow {
        display: none;
    }
}

/* ============================================================
   DARK MODE — Tool Suggestion
   ============================================================ */
html[data-theme="dark"] .tool-suggestion {
    background: var(--card);
    border-color: var(--glow-border);
}

html[data-theme="dark"] .tool-suggestion:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(129, 140, 248, 0.2);
}

html[data-theme="dark"] .tool-suggestion-icon {
    background: linear-gradient(135deg, #1e1b4b 0%, #252b5d 100%);
    color: var(--primary);
}

html[data-theme="dark"] .tool-suggestion-icon-png {
    background: linear-gradient(135deg, #422006 0%, #78350f 100%);
    color: #fbbf24;
}

html[data-theme="dark"] .tool-suggestion-icon-warn {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fca5a5;
}

html[data-theme="dark"] .tool-suggestion-icon-pdf {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #93c5fd;
}

html[data-theme="dark"] .tool-suggestion-title {
    color: var(--ink);
}

html[data-theme="dark"] .tool-suggestion-desc {
    color: var(--ink-soft);
}

html[data-theme="dark"] .tool-suggestion-arrow {
    background: var(--bg);
    color: var(--ink-soft);
}

html[data-theme="dark"] .tool-suggestion:hover .tool-suggestion-arrow {
    background: var(--primary);
    color: #0f1419;
}

/* RTL Support (Arabic) */
html[dir="rtl"] .tool-suggestion::after {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 4px;
}

html[dir="rtl"] .tool-suggestion-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .tool-suggestion:hover .tool-suggestion-arrow {
    transform: scaleX(-1) translateX(-4px) scale(1.1);
}