/* ============================================================
   PDF Tools — Theme Toggle (Dark / Light)
   Shared stylesheet loaded by every page (base + studios).
   Default (no [data-theme]) = dark. Set on <html> by theme.js.
   Light theme uses the Indigo / Slate scheme.
   ============================================================ */

/* -------- Base pages (style.css CSS variables) -------- */
html[data-theme="light"] {
    --bg-primary: #eff6ff;
    --bg-secondary: #e0eafd;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #dbe3f0;
    --border-hover: #c7d2fe;
    --accent-blue: #4f46e5;
    --accent-purple: #4338ca;
    --accent-green: #4f46e5;
    --accent-orange: #4338ca;
    --accent-red: #dc2626;
    --accent-cyan: #4f46e5;
    --accent-pink: #4338ca;
    --convert-color: #4f46e5;
    --organize-color: #4338ca;
    --edit-color: #4338ca;
    --secure-color: #4f46e5;
    --optimize-color: #4f46e5;
    --view-color: #4338ca;
    --ai-color: #4f46e5;
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);

    /* ---------- Ad-gate timer + download overlay (light theme) ---------- */
    --ad-overlay-bg: rgba(15, 23, 42, 0.6);
    --ad-box-shadow: 0 30px 60px -12px rgba(17, 24, 46, 0.18);
    --ad-btn-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
    --ad-btn-hover-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
    --ad-close-hover-bg: rgba(79, 70, 229, 0.12);
}

/* base.html hard-coded dark surfaces */
html[data-theme="light"] .navbar { background: rgba(239, 246, 255, 0.85); border-bottom-color: #c7d2fe; }
html[data-theme="light"] .nav-badge {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.2);
}
html[data-theme="light"] .tool-feature-panel {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.06), rgba(255, 255, 255, 0.85));
}
html[data-theme="light"] .feature-card,
html[data-theme="light"] .preview-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .wm-upload-link { color: #4f46e5; }
html[data-theme="light"] .wm-upload-link:hover { color: #4338ca; }
html[data-theme="light"] .wm-upload-main-icon { color: rgba(79, 70, 229, 0.5); }
html[data-theme="light"] .wm-upload-zone:hover .wm-upload-main-icon,
html[data-theme="light"] .wm-upload-zone.dragover .wm-upload-main-icon { color: #4f46e5; }
html[data-theme="light"] .wm-file-icon { color: #4f46e5; }
html[data-theme="light"] .wm-header-badge,
html[data-theme="light"] .wm-engine-badge { color: #4f46e5; }
html[data-theme="light"] .wm-upload-formats span { color: #64748b; }
html[data-theme="light"] .wm-header-icon { background: linear-gradient(135deg, #4f46e5, #4338ca); }

/* -------- Studio pages :root variables (merge, split, color-grading, watermark) -------- */
html[data-theme="light"] {
    --bg: #f8fafc;
    --sidebar: #ffffff;
    --accent: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #15803d;
    --danger: #b91c1c;
    --charcoal: #ffffff;
    --charcoal-dark: #f1f5f9;
    --charcoal-darker: #e2e8f0;
    --amber: #4f46e5;
    --amber-hover: #4338ca;
}

/* sign.html studio variables */
html[data-theme="light"] {
    --bg-deep: #f8fafc;
    --bg-surface: #ffffff;
    --bg-input: #f1f5f9;
    --amber: #4f46e5;
    --amber-dark: #4338ca;
    --amber-glow: rgba(79, 70, 229, 0.18);
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

/* studio export/primary buttons keep indigo gradient in light theme */
html[data-theme="light"] .btn-export,
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-main {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}
html[data-theme="light"] .card-mini-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: #e2e8f0;
    color: #64748b;
}
html[data-theme="light"] .panel {
    background: rgba(255, 255, 255, 0.7);
}

/* color-grading.html studio — light surfaces (scoped to .cg-page) */
html[data-theme="light"] body.cg-page .main-area { background: radial-gradient(ellipse at center, #f1f5f9 0%, #e2e8f0 100%) !important; }
html[data-theme="light"] body.cg-page .pager { background: rgba(255, 255, 255, 0.95) !important; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15) !important; }
html[data-theme="light"] body.cg-page .pager button { color: #ffffff !important; }
html[data-theme="light"] body.cg-page .pager button:disabled { background: #e2e8f0 !important; color: #94a3b8 !important; }
html[data-theme="light"] body.cg-page #export-overlay { background: rgba(241, 245, 249, 0.98) !important; }
html[data-theme="light"] body.cg-page .upload-zone { background: rgba(255, 255, 255, 0.8) !important; }
html[data-theme="light"] body.cg-page .filter-card { background: rgba(255, 255, 255, 0.85) !important; }
html[data-theme="light"] body.cg-page .filter-card:hover { border-color: #cbd5e1 !important; background: #f1f5f9 !important; }
html[data-theme="light"] body.cg-page .filter-card.active { border-color: #4f46e5 !important; background: rgba(79, 70, 229, 0.12) !important; color: #4f46e5 !important; }
html[data-theme="light"] body.cg-page .filter-card.active i { color: #4f46e5 !important; }
html[data-theme="light"] body.cg-page .ad-space { background: #f1f5f9 !important; }
html[data-theme="light"] body.cg-page .progress-track { background: #e2e8f0 !important; }
html[data-theme="light"] body.cg-page .modal-box { box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important; }
html[data-theme="light"] body.cg-page .canvas-wrapper { box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important; }

/* watermark-pdf.html inline dark panels */
html[data-theme="light"] div[style*="background: #0f172a"] {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
html[data-theme="light"] div[style*="background: #1e293b"] {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ocr-pdf.html — light surfaces (scoped to .ocr-page) */
html[data-theme="light"] body.ocr-page .dropzone { background-color: #f8fafc !important; border-color: #cbd5e1 !important; box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.15) !important; }
html[data-theme="light"] body.ocr-page .dropzone:hover,
html[data-theme="light"] body.ocr-page .dropzone.dragover { background-color: #f1f5f9 !important; border-color: #4f46e5 !important; box-shadow: 0 0 30px rgba(79, 70, 229, 0.12) !important; }
html[data-theme="light"] body.ocr-page .dropzone h2 { color: #0f172a !important; }
html[data-theme="light"] body.ocr-page .dropzone p { color: #64748b !important; }

/* watermark-pdf.html studio — light surfaces (scoped to .wm-page) */
html[data-theme="light"] body.wm-page .main-area { background: #e2e8f0 !important; }
html[data-theme="light"] body.wm-page .main-area::-webkit-scrollbar-track { background: #e2e8f0 !important; }
html[data-theme="light"] body.wm-page .main-area::-webkit-scrollbar-thumb { background: #cbd5e1 !important; }
html[data-theme="light"] body.wm-page #export-overlay { background: rgba(241, 245, 249, 0.98) !important; }
html[data-theme="light"] body.wm-page .ad-box { background: #ffffff !important; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important; }
html[data-theme="light"] body.wm-page .pager { background: rgba(255, 255, 255, 0.95) !important; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15) !important; }
html[data-theme="light"] body.wm-page .pager b#curP { color: #4f46e5 !important; }
html[data-theme="light"] body.wm-page .file-btn { border-color: #cbd5e1 !important; color: #64748b !important; background: #ffffff !important; }
html[data-theme="light"] body.wm-page input[type="text"],
html[data-theme="light"] body.wm-page input[type="number"],
html[data-theme="light"] body.wm-page select { background: #ffffff !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
html[data-theme="light"] body.wm-page select option { background: #ffffff !important; color: #0f172a !important; }
html[data-theme="light"] body.wm-page input[type="range"] { accent-color: #4f46e5 !important; }
html[data-theme="light"] body.wm-page h2 { color: #4f46e5 !important; }
html[data-theme="light"] body.wm-page .btn-main { color: #ffffff !important; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25) !important; }
html[data-theme="light"] body.wm-page .btn-main:disabled { background: #e2e8f0 !important; color: #94a3b8 !important; box-shadow: none !important; }
html[data-theme="light"] body.wm-page .spinner { border: 4px solid rgba(79, 70, 229, 0.1) !important; border-top: 4px solid #4f46e5 !important; }
html[data-theme="light"] body.wm-page #timer-display,
html[data-theme="light"] body.wm-page #process-status { color: #4f46e5 !important; }
html[data-theme="light"] body.wm-page .tool-btn.active { background: #4f46e5 !important; color: #ffffff !important; border-color: #4f46e5 !important; }

/* -------- Common Tailwind utility overrides -------- */
html[data-theme="light"] body {
    background: #eff6ff !important;
    color: #0f172a !important;
}
html[data-theme="light"] .charcoal-panel {
    background: #ffffff;
    border-color: #e2e8f0;
}
html[data-theme="light"] .preview-card {
    background: #ffffff;
    border-color: #e2e8f0;
}
html[data-theme="light"] .preview-card.selected {
    background: #eef2ff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.2) !important;
}

/* backgrounds */
html[data-theme="light"] .bg-neutral-900 { background-color: #ffffff; }
html[data-theme="light"] .bg-neutral-950 { background-color: #f1f5f9; }
html[data-theme="light"] .bg-neutral-800 { background-color: #f1f5f9; }
html[data-theme="light"] .bg-neutral-700 { background-color: #e2e8f0; }
html[data-theme="light"] .bg-zinc-900 { background-color: #ffffff; }
html[data-theme="light"] .bg-zinc-950 { background-color: #f1f5f9; }
html[data-theme="light"] .bg-zinc-800 { background-color: #f1f5f9; }
html[data-theme="light"] .bg-zinc-700 { background-color: #e2e8f0; }
html[data-theme="light"] .bg-gray-900 { background-color: #ffffff; }
html[data-theme="light"] .bg-gray-950 { background-color: #f1f5f9; }
html[data-theme="light"] .bg-gray-800 { background-color: #f1f5f9; }
html[data-theme="light"] .bg-gray-700 { background-color: #e2e8f0; }
html[data-theme="light"] .bg-gray-300 { background-color: #e2e8f0; }

/* text */
html[data-theme="light"] .text-neutral-100 { color: #0f172a; }
html[data-theme="light"] .text-neutral-200 { color: #0f172a; }
html[data-theme="light"] .text-neutral-300 { color: #1e293b; }
html[data-theme="light"] .text-neutral-400 { color: #334155; }
html[data-theme="light"] .text-neutral-500 { color: #64748b; }
html[data-theme="light"] .text-neutral-600 { color: #64748b; }
html[data-theme="light"] .text-gray-100 { color: #0f172a; }
html[data-theme="light"] .text-gray-200 { color: #0f172a; }
html[data-theme="light"] .text-gray-300 { color: #1e293b; }
html[data-theme="light"] .text-gray-400 { color: #334155; }
html[data-theme="light"] .text-gray-500 { color: #334155; }
html[data-theme="light"] .text-gray-600 { color: #64748b; }
html[data-theme="light"] .text-gray-700 { color: #64748b; }
html[data-theme="light"] .text-zinc-200 { color: #0f172a; }
html[data-theme="light"] .text-zinc-300 { color: #1e293b; }
html[data-theme="light"] .text-zinc-400 { color: #334155; }
html[data-theme="light"] .text-zinc-500 { color: #64748b; }

/* indigo accent text for light theme */
html[data-theme="light"] .text-amber-400 { color: #4f46e5; }
html[data-theme="light"] .text-amber-500 { color: #4338ca; }

/* headings that were white on dark panels become slate on light */
html[data-theme="light"] .text-white { color: #0f172a; }
html[data-theme="light"] .bg-amber-500.text-white,
html[data-theme="light"] .bg-amber-600.text-white,
html[data-theme="light"] .bg-red-500.text-white,
html[data-theme="light"] .bg-red-600.text-white,
html[data-theme="light"] .bg-red-700.text-white,
html[data-theme="light"] .bg-emerald-500.text-white,
html[data-theme="light"] .bg-emerald-600.text-white,
html[data-theme="light"] .bg-blue-500.text-white,
html[data-theme="light"] .bg-blue-600.text-white,
html[data-theme="light"] .bg-gradient-to-r.text-white { color: #fff; }
html[data-theme="light"] .hover\:bg-emerald-500:hover.text-white,
html[data-theme="light"] .hover\:bg-emerald-600:hover.text-white,
html[data-theme="light"] .hover\:bg-emerald-700:hover.text-white { color: #fff; }

/* borders */
html[data-theme="light"] .border-neutral-700 { border-color: #e2e8f0; }
html[data-theme="light"] .border-neutral-800 { border-color: #e2e8f0; }
html[data-theme="light"] .border-neutral-600 { border-color: #cbd5e1; }
html[data-theme="light"] .border-zinc-700 { border-color: #e2e8f0; }
html[data-theme="light"] .border-zinc-800 { border-color: #e2e8f0; }
html[data-theme="light"] .border-gray-700 { border-color: #e2e8f0; }
html[data-theme="light"] .border-gray-800 { border-color: #e2e8f0; }
html[data-theme="light"] .border-gray-600 { border-color: #cbd5e1; }

/* hover variants */
html[data-theme="light"] .hover\:bg-neutral-800:hover { background-color: #e2e8f0; }
html[data-theme="light"] .hover\:bg-zinc-700:hover { background-color: #e2e8f0; }
html[data-theme="light"] .hover\:bg-gray-700:hover { background-color: #e2e8f0; }
html[data-theme="light"] .hover\:text-gray-300:hover { color: #1e293b; }
html[data-theme="light"] .hover\:text-neutral-950:hover { color: #0f172a; }

/* arbitrary dark backgrounds used across studio pages */
html[data-theme="light"] .bg-\[\#242526\] { background-color: #ffffff; }
html[data-theme="light"] .bg-\[\#1c1d1e\] { background-color: #f1f5f9; }
html[data-theme="light"] .bg-\[\#181a1b\] { background-color: #f1f5f9; }
html[data-theme="light"] .bg-\[\#121216\] { background-color: #ffffff; }
html[data-theme="light"] .bg-\[\#1e1e24\] { background-color: #ffffff; }
html[data-theme="light"] .bg-\[\#121214\] { background-color: #ffffff; }
html[data-theme="light"] .bg-\[\#16161a\] { background-color: #f1f5f9; }
html[data-theme="light"] .bg-\[\#0f0f11\] { background-color: #f8fafc; }
html[data-theme="light"] .bg-\[\#1a1a1a\] { background-color: #f1f5f9; }
html[data-theme="light"] .bg-\[\#1a1a1a\]\/80 { background-color: rgba(241, 245, 249, 0.8); }
html[data-theme="light"] .bg-\[\#2a2a2a\] { background-color: #e2e8f0; }
html[data-theme="light"] .bg-\[\#26262e\] { background-color: #f1f5f9; }
html[data-theme="light"] .bg-\[\#2d2d2d\] { background-color: #e2e8f0; }
html[data-theme="light"] .border-\[\#2a2a2a\] { border-color: #e2e8f0; }
html[data-theme="light"] .border-\[\#333\] { border-color: #e2e8f0; }

/* neutral-900/80 (semi-transparent panels) */
html[data-theme="light"] .bg-neutral-900\/80 { background-color: rgba(255, 255, 255, 0.85); }
html[data-theme="light"] .bg-neutral-900\/70 { background-color: rgba(255, 255, 255, 0.8); }
html[data-theme="light"] .bg-neutral-900\/50 { background-color: rgba(255, 255, 255, 0.6); }
html[data-theme="light"] .bg-neutral-900\/40 { background-color: rgba(255, 255, 255, 0.55); }
html[data-theme="light"] .bg-gray-900\/60 { background-color: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .bg-zinc-900\/80 { background-color: rgba(255, 255, 255, 0.85); }
html[data-theme="light"] .bg-zinc-800\/60 { background-color: rgba(241, 245, 249, 0.7); }
html[data-theme="light"] .bg-zinc-950\/50 { background-color: rgba(241, 245, 249, 0.6); }
html[data-theme="light"] .border-neutral-800\/80 { border-color: rgba(226, 232, 240, 0.85); }
html[data-theme="light"] .border-gray-800\/50 { border-color: rgba(226, 232, 240, 0.6); }

/* scrollbars */
html[data-theme="light"] ::-webkit-scrollbar-track { background: #eff6ff; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c7d2fe; }

/* tool.html PDF reader dark surfaces (inline styles -> !important) */
html[data-theme="light"] .reader-toolbar {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}
html[data-theme="light"] #microsoftCanvasViewport {
    background: #dbeafe !important;
    box-shadow: inset 0 8px 32px rgba(79, 70, 229, 0.12) !important;
}
html[data-theme="light"] .toolbar-btn {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}
html[data-theme="light"] .preset-btn {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}
html[data-theme="light"] input[type="range"]::-webkit-slider-runnable-track,
html[data-theme="light"] input[type="range"]::-moz-range-track {
    background: #e2e8f0;
}
html[data-theme="light"] .reader-page-wrap {
    background: #ffffff;
    border-color: #c7d2fe;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15);
}

/* scan-qr.html special classes */
html[data-theme="light"] .bg-orbs {
    background:
        radial-gradient(1100px 600px at 10% -10%, rgba(79, 70, 229, 0.12), transparent 60%),
        radial-gradient(900px 500px at 110% 15%, rgba(217, 70, 239, 0.07), transparent 55%),
        radial-gradient(1000px 700px at 50% 125%, rgba(56, 189, 248, 0.06), transparent 60%),
        #eff6ff;
}
html[data-theme="light"] .glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
    border-color: rgba(79, 70, 229, 0.15);
}
html[data-theme="light"] .upload-zone {
    border-color: rgba(79, 70, 229, 0.2);
    background: rgba(255, 255, 255, 0.5);
}
html[data-theme="light"] .upload-zone.dragover,
html[data-theme="light"] .upload-zone:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}
html[data-theme="light"] .result-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .corner {
    border-color: #4f46e5;
}

/* ============================================================
   Light theme — studio page accent overrides (Indigo scheme)
   ============================================================ */

/* White text on accent (indigo) buttons built from CSS variables */
html[data-theme="light"] [style*="background: var(--accent-blue)"] { color: #ffffff !important; }
html[data-theme="light"] [style*="background:var(--amber)"] { color: #ffffff !important; }

/* sign.html studio */
html[data-theme="light"] .sig-tab.active,
html[data-theme="light"] .sig-empty-state .btn,
html[data-theme="light"] .sig-toolbar .btn-primary,
html[data-theme="light"] .sig-action-bar .sig-big-btn.primary { color: #ffffff; }

/* tool.html protect/unlock banners + buttons */
html[data-theme="light"] #selectedFileStatus,
html[data-theme="light"] #protectFileInfo,
html[data-theme="light"] #unlockFileInfo {
    background: rgba(79, 70, 229, 0.08) !important;
    border-color: rgba(79, 70, 229, 0.25) !important;
}
html[data-theme="light"] #protectBtn,
html[data-theme="light"] #unlockBtn { box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25) !important; }

/* tool.html PDF reader accent bits */
html[data-theme="light"] .preset-btn:hover,
html[data-theme="light"] .toolbar-btn:hover { border-color: #4f46e5 !important; color: #4f46e5 !important; }
html[data-theme="light"] .preset-btn.active {
    background: rgba(79, 70, 229, 0.12) !important;
    border-color: #4f46e5 !important;
    color: #4f46e5 !important;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.22) !important;
}
html[data-theme="light"] #dropZone.dragging {
    border-color: #4f46e5 !important;
    background: rgba(79, 70, 229, 0.08) !important;
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.25) !important;
}
html[data-theme="light"] input[type="range"]::-webkit-slider-thumb,
html[data-theme="light"] input[type="range"]::-moz-range-thumb {
    background: #4f46e5 !important;
    box-shadow: 0 0 10px #4f46e5 !important;
}

/* tool.html sign-place studio (sp-*) */
html[data-theme="light"] .sp-rp-tab.active,
html[data-theme="light"] .sp-workarea .sp-upload-screen .sp-upload-btn,
html[data-theme="light"] .sp-rp-btn-primary { color: #ffffff !important; }
html[data-theme="light"] .sp-workarea .sp-upload-screen .sp-upload-btn,
html[data-theme="light"] .sp-rp-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.25) !important;
}
html[data-theme="light"] .sp-thumbs-toggle:hover,
html[data-theme="light"] .sp-rp-toggle:hover { background: rgba(79, 70, 229, 0.08) !important; }
html[data-theme="light"] .sp-thumb-item.active { box-shadow: 0 0 12px rgba(79, 70, 229, 0.2) !important; }
html[data-theme="light"] .sp-workarea .sp-upload-screen .sp-upload-icon {
    background: rgba(79, 70, 229, 0.08) !important;
    border-color: rgba(79, 70, 229, 0.25) !important;
}
html[data-theme="light"] .sp-tb-btn.sp-tb-active { background: rgba(79, 70, 229, 0.12) !important; }
html[data-theme="light"] .sp-canvas-area { background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.03), transparent 70%) !important; }
html[data-theme="light"] .placed-sig { outline-color: rgba(79, 70, 229, 0.5) !important; }
html[data-theme="light"] .placed-sig:hover { box-shadow: 0 0 20px rgba(79, 70, 229, 0.25) !important; }
html[data-theme="light"] .sp-rp-row input[type="range"]::-webkit-slider-thumb { box-shadow: 0 1px 4px rgba(79, 70, 229, 0.4) !important; }
html[data-theme="light"] #spTextInput:focus,
html[data-theme="light"] #spFontSelect:focus { box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1) !important; }
html[data-theme="light"] .sp-rp-dropzone:hover { background: rgba(79, 70, 229, 0.04) !important; }

/* organize.html studio */
html[data-theme="light"] .organize-btn:hover { box-shadow: 0 8px 25px rgba(79, 70, 229, 0.25) !important; }
html[data-theme="light"] .sort-btn:hover { color: #ffffff !important; }
html[data-theme="light"] .upload-zone.dragover,
html[data-theme="light"] .upload-zone:hover { background: rgba(79, 70, 229, 0.05) !important; }
html[data-theme="light"] .page-card.sortable-ghost { box-shadow: 0 0 20px rgba(79, 70, 229, 0.45) !important; }

/* compare-pdf.html studio */
html[data-theme="light"] .tab-active { background: #4f46e5 !important; color: #ffffff !important; }
html[data-theme="light"] .option-active {
    background: rgba(79, 70, 229, 0.12) !important;
    border: 1px solid rgba(79, 70, 229, 0.35) !important;
}
html[data-theme="light"] .diff-edit { background: rgba(79, 70, 229, 0.3) !important; }
html[data-theme="light"] .change-edit {
    background: rgba(79, 70, 229, 0.12) !important;
    border-left: 3px solid #4f46e5 !important;
}
html[data-theme="light"] .amber-glow { box-shadow: 0 0 15px rgba(79, 70, 229, 0.4) !important; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #4f46e5 !important; }

/* compare-pdf.html studio — light surfaces (scoped to .cmp-page) */
html[data-theme="light"] body.cmp-page { background-color: #f8fafc; color: #1e293b; }
html[data-theme="light"] .cmp-page .bg-zinc-950 { background-color: #f1f5f9; }
html[data-theme="light"] .cmp-page .bg-zinc-950\/50 { background-color: rgba(241, 245, 249, 0.6); }
html[data-theme="light"] .cmp-page .bg-zinc-900 { background-color: #ffffff; }
html[data-theme="light"] .cmp-page .bg-zinc-900\/80 { background-color: rgba(255, 255, 255, 0.9); }
html[data-theme="light"] .cmp-page .bg-zinc-800 { background-color: #f8fafc; }
html[data-theme="light"] .cmp-page .bg-zinc-800\/60 { background-color: #f1f5f9; }
html[data-theme="light"] .cmp-page .bg-zinc-700 { background-color: #e2e8f0; }
html[data-theme="light"] .cmp-page .hover\:bg-zinc-700:hover { background-color: #f1f5f9; }
html[data-theme="light"] .cmp-page .border-zinc-800,
html[data-theme="light"] .cmp-page .border-zinc-700 { border-color: #e2e8f0; }
html[data-theme="light"] .cmp-page .text-white { color: #0f172a; }
html[data-theme="light"] .cmp-page .text-zinc-200 { color: #1e293b; }
html[data-theme="light"] .cmp-page .text-zinc-300 { color: #334155; }
html[data-theme="light"] .cmp-page .text-zinc-400 { color: #64748b; }
html[data-theme="light"] .cmp-page .text-zinc-500 { color: #94a3b8; }
html[data-theme="light"] .cmp-page .placeholder-zinc-500::placeholder { color: #94a3b8; }
html[data-theme="light"] .cmp-page ::-webkit-scrollbar-track { background: #e2e8f0; }
html[data-theme="light"] .cmp-page ::-webkit-scrollbar-thumb { background: #cbd5e1; }
html[data-theme="light"] .cmp-page .pdf-canvas-container canvas { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12); }

/* excel-to-pdf / ocr-pdf dropzone */
html[data-theme="light"] .dropzone:hover,
html[data-theme="light"] .dropzone.dragover {
    border-color: #4f46e5 !important;
    background-color: #f1f5f9 !important;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.12) !important;
}
html[data-theme="light"] .particle { background: #4f46e5 !important; }

/* share.html */
html[data-theme="light"] .share-header-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0.12)) !important;
    color: #4f46e5 !important;
}
html[data-theme="light"] .share-btn-download {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
}
html[data-theme="light"] .share-btn-download:hover { box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35) !important; }

/* converter pages (pdf-to-word, pptx, png, jpg) amber accents */
html[data-theme="light"] .upload-zone:hover,
html[data-theme="light"] .upload-zone.dragover {
    border-color: rgba(79, 70, 229, 0.5) !important;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(67, 56, 202, 0.02)) !important;
}
html[data-theme="light"] .bg-orbs::before { background: rgba(79, 70, 229, 0.06) !important; }
html[data-theme="light"] .bg-orbs::after { background: rgba(67, 56, 202, 0.05) !important; }
html[data-theme="light"] .spinner { border-top-color: #4f46e5 !important; }
html[data-theme="light"] #inlineProgressBar,
html[data-theme="light"] #pptxProgressFill {
    background-image: linear-gradient(90deg, #4f46e5, #4338ca) !important;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.3) !important;
}

/* ============================================================
   Light theme — Tailwind amber utilities remapped to indigo
   ============================================================ */

/* backgrounds */
html[data-theme="light"] .bg-amber-400 { background-color: #6366f1; }
html[data-theme="light"] .bg-amber-500 { background-color: #4f46e5; }
html[data-theme="light"] .bg-amber-600 { background-color: #4338ca; }
html[data-theme="light"] .bg-amber-700 { background-color: #3730a3; }
html[data-theme="light"] .bg-amber-500\/5 { background-color: rgba(79, 70, 229, 0.05); }
html[data-theme="light"] .bg-amber-500\/10 { background-color: rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .bg-amber-500\/20 { background-color: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .bg-amber-500\/30 { background-color: rgba(79, 70, 229, 0.3); }
html[data-theme="light"] .bg-amber-500\/40 { background-color: rgba(79, 70, 229, 0.4); }
html[data-theme="light"] .bg-amber-500\/50 { background-color: rgba(79, 70, 229, 0.5); }
html[data-theme="light"] .bg-amber-600\/10 { background-color: rgba(67, 56, 202, 0.1); }
html[data-theme="light"] .bg-amber-600\/20 { background-color: rgba(67, 56, 202, 0.2); }
html[data-theme="light"] .bg-amberAccent { background-color: #4f46e5; }
html[data-theme="light"] .bg-amberAccent\/5 { background-color: rgba(79, 70, 229, 0.05); }
html[data-theme="light"] .bg-amberAccent\/10 { background-color: rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .text-amberAccent { color: #4f46e5; }
html[data-theme="light"] .border-t-amberAccent { border-top-color: #4f46e5; }
html[data-theme="light"] .bg-amberAccent.text-zinc-950,
html[data-theme="light"] .hover\:bg-amberAccent:hover.text-zinc-950 { color: #ffffff; }

/* text */
html[data-theme="light"] .text-amber-200 { color: #4f46e5; }
html[data-theme="light"] .text-amber-300 { color: #4338ca; }

/* borders */
html[data-theme="light"] .border-amber-400 { border-color: #6366f1; }
html[data-theme="light"] .border-amber-500 { border-color: #4f46e5; }
html[data-theme="light"] .border-amber-600 { border-color: #4338ca; }
html[data-theme="light"] .border-amber-500\/10 { border-color: rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .border-amber-500\/20 { border-color: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .border-amber-500\/30 { border-color: rgba(79, 70, 229, 0.3); }
html[data-theme="light"] .border-amber-500\/40 { border-color: rgba(79, 70, 229, 0.4); }
html[data-theme="light"] .border-amber-500\/50 { border-color: rgba(79, 70, 229, 0.5); }
html[data-theme="light"] .border-amber-500\/60 { border-color: rgba(79, 70, 229, 0.6); }
html[data-theme="light"] .border-amberAccent\/20 { border-color: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .border-amberAccent\/40 { border-color: rgba(79, 70, 229, 0.4); }

/* hover / focus / group-hover */
html[data-theme="light"] .hover\:bg-amber-400:hover { background-color: #6366f1; }
html[data-theme="light"] .hover\:bg-amber-500:hover { background-color: #4f46e5; }
html[data-theme="light"] .hover\:bg-amber-600:hover { background-color: #4338ca; }
html[data-theme="light"] .hover\:bg-amber-500\/5:hover { background-color: rgba(79, 70, 229, 0.05); }
html[data-theme="light"] .hover\:bg-amberHover:hover { background-color: #4338ca; }
html[data-theme="light"] .hover\:bg-amberAccent\/5:hover { background-color: rgba(79, 70, 229, 0.05); }
html[data-theme="light"] .hover\:text-amber-400:hover { color: #4f46e5; }
html[data-theme="light"] .hover\:text-amber-500:hover { color: #4338ca; }
html[data-theme="light"] .hover\:border-amber-400:hover { border-color: #6366f1; }
html[data-theme="light"] .hover\:border-amber-500:hover { border-color: #4f46e5; }
html[data-theme="light"] .hover\:border-amberAccent\/60:hover { border-color: rgba(79, 70, 229, 0.6); }
html[data-theme="light"] .focus\:border-amber-500:focus { border-color: #4f46e5; }
html[data-theme="light"] .focus\:border-amber-500\/50:focus { border-color: rgba(79, 70, 229, 0.5); }
html[data-theme="light"] .group:hover .group-hover\:bg-amber-500 { background-color: #4f46e5; }
html[data-theme="light"] .group:hover .group-hover\:text-amber-400 { color: #4f46e5; }

/* gradients */
html[data-theme="light"] .from-amber-500 { --tw-gradient-from: #4f46e5; }
html[data-theme="light"] .to-amber-600 { --tw-gradient-to: #4338ca; }
html[data-theme="light"] .from-amber-500\/20 { --tw-gradient-from: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .to-amber-500\/10 { --tw-gradient-to: rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .hover\:from-amber-600:hover { --tw-gradient-from: #4338ca; }
html[data-theme="light"] .hover\:to-amber-700:hover { --tw-gradient-to: #3730a3; }

/* shadows / rings */
html[data-theme="light"] .shadow-amber-500\/20 { --tw-shadow-color: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .shadow-amber-500\/25 { --tw-shadow-color: rgba(79, 70, 229, 0.25); }
html[data-theme="light"] .shadow-amber-500\/30 { --tw-shadow-color: rgba(79, 70, 229, 0.3); }
html[data-theme="light"] .ring-amber-500\/40 { --tw-ring-color: rgba(79, 70, 229, 0.4); }
html[data-theme="light"] .focus\:ring-amber-500\/40:focus { --tw-ring-color: rgba(79, 70, 229, 0.4); }

/* amber buttons keep white (or dark) text readable on indigo */
html[data-theme="light"] .bg-amber-500.text-zinc-950,
html[data-theme="light"] .bg-amber-500.text-black,
html[data-theme="light"] .bg-amber-600.text-zinc-950,
html[data-theme="light"] .bg-amber-600.text-black { color: #ffffff; }
html[data-theme="light"] .hover\:bg-amber-500:hover.text-zinc-950 { color: #ffffff; }
html[data-theme="light"] .hover\:bg-amber-600:hover.text-zinc-950 { color: #ffffff; }
html[data-theme="light"] .hover\:bg-amber-600:hover.text-black { color: #ffffff; }

/* ============================================================
   Light theme — orange / old custom colors remapped to indigo
   (top icons, quality sliders, dropzones, scan accents)
   ============================================================ */

/* backgrounds */
html[data-theme="light"] .bg-orange-400 { background-color: #6366f1; }
html[data-theme="light"] .bg-orange-500 { background-color: #4f46e5; }
html[data-theme="light"] .bg-orange-600 { background-color: #4338ca; }
html[data-theme="light"] .bg-orange-500\/10 { background-color: rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .bg-orange-500\/15 { background-color: rgba(79, 70, 229, 0.15); }
html[data-theme="light"] .bg-orange-500\/20 { background-color: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .bg-orange-500\/30 { background-color: rgba(79, 70, 229, 0.3); }
html[data-theme="light"] .bg-orange-500\/40 { background-color: rgba(79, 70, 229, 0.4); }

/* text */
html[data-theme="light"] .text-orange-400 { color: #4f46e5; }
html[data-theme="light"] .text-orange-500 { color: #4338ca; }

/* borders */
html[data-theme="light"] .border-orange-400 { border-color: #6366f1; }
html[data-theme="light"] .border-orange-500 { border-color: #4f46e5; }
html[data-theme="light"] .border-orange-500\/10 { border-color: rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .border-orange-500\/15 { border-color: rgba(79, 70, 229, 0.15); }
html[data-theme="light"] .border-orange-500\/20 { border-color: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .border-orange-500\/30 { border-color: rgba(79, 70, 229, 0.3); }

/* gradients */
html[data-theme="light"] .from-orange-500 { --tw-gradient-from: #4f46e5; }
html[data-theme="light"] .from-orange-500\/15 { --tw-gradient-from: rgba(79, 70, 229, 0.15); }
html[data-theme="light"] .from-orange-500\/20 { --tw-gradient-from: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .to-orange-500 { --tw-gradient-to: #4338ca; }
html[data-theme="light"] .to-orange-500\/10 { --tw-gradient-to: rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .to-orange-500\/15 { --tw-gradient-to: rgba(67, 56, 202, 0.15); }
html[data-theme="light"] .hover\:from-orange-600:hover { --tw-gradient-from: #4338ca; }
html[data-theme="light"] .hover\:to-orange-700:hover { --tw-gradient-to: #3730a3; }
html[data-theme="light"] .shadow-orange-500\/20 { --tw-shadow-color: rgba(79, 70, 229, 0.2); }

/* white text on solid orange (now indigo) buttons */
html[data-theme="light"] .bg-orange-500.text-white { color: #ffffff; }
html[data-theme="light"] .bg-orange-600.text-white { color: #ffffff; }

/* converter dropzones (base dark surfaces -> soft indigo light) */
html[data-theme="light"] .dropzone {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* quality slider (pdf-to-jpg / pdf-to-png) -> indigo */
html[data-theme="light"] .slider-wrap input[type=range]::-webkit-slider-runnable-track,
html[data-theme="light"] .slider-wrap input[type=range]::-moz-range-track { background: #e2e8f0 !important; }
html[data-theme="light"] .slider-wrap input[type=range]::-webkit-slider-thumb,
html[data-theme="light"] .slider-wrap input[type=range]::-moz-range-thumb {
    background: #4f46e5 !important;
    box-shadow: 0 0 10px #4f46e5 !important;
}
html[data-theme="light"] .slider-wrap input[type=range]:active::-webkit-slider-thumb,
html[data-theme="light"] .slider-wrap input[type=range]:active::-moz-range-thumb { box-shadow: 0 0 16px #4f46e5 !important; }
html[data-theme="light"] .slider-tooltip {
    background: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35) !important;
}
html[data-theme="light"] .slider-tooltip::after { border-top-color: #4f46e5 !important; }
html[data-theme="light"] .slider-ticks span {
    background: #cbd5e1 !important;
    border-color: #94a3b8 !important;
}
html[data-theme="light"] .slider-ticks span.active {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 4px #4f46e5 !important;
}
html[data-theme="light"] .text-\[\#FFB000\] { color: #4f46e5 !important; }
html[data-theme="light"] .border-\[\#FFB000\] { border-color: #4f46e5 !important; }

/* white text on accent buttons with neutral-950 labels (OCR / Excel studios) */
html[data-theme="light"] .bg-amber-500.text-neutral-950,
html[data-theme="light"] .bg-amber-600.text-neutral-950,
html[data-theme="light"] .hover\:bg-amber-500:hover.text-neutral-950,
html[data-theme="light"] .hover\:bg-amber-600:hover.text-neutral-950 { color: #ffffff; }

/* scan pages (thumbnails / scan line) -> indigo */
html[data-theme="light"] .thumb-item:hover { border-color: #4f46e5 !important; }
html[data-theme="light"] .scan-line {
    background: #4f46e5 !important;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.6) !important;
}

/* ============================================================
   Light theme — style.css tool-studio accents -> indigo
   ============================================================ */

/* primary action buttons */
html[data-theme="light"] .wm-process-btn,
html[data-theme="light"] .wm-btn-primary,
html[data-theme="light"] .wm-upload-url-btn,
html[data-theme="light"] .pc-process-btn,
html[data-theme="light"] .pc-btn-primary,
html[data-theme="light"] .rt-process-btn,
html[data-theme="light"] .rt-btn-dl,
html[data-theme="light"] .rm-process-btn,
html[data-theme="light"] .rm-btn-dl,
html[data-theme="light"] .og-process-btn,
html[data-theme="light"] .og-btn-dl,
html[data-theme="light"] .og-modal-btn-confirm,
html[data-theme="light"] .og-upload-btn,
html[data-theme="light"] .pn-process-btn,
html[data-theme="light"] .pn-btn-dl,
html[data-theme="light"] .pn-empty-cta,
html[data-theme="light"] .cp-download-btn,
html[data-theme="light"] .cp-compare-btn,
html[data-theme="light"] .rp-apply-btn,
html[data-theme="light"] .rp-download-btn {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25) !important;
}
html[data-theme="light"] .wm-process-btn:hover,
html[data-theme="light"] .wm-btn-primary:hover,
html[data-theme="light"] .wm-upload-url-btn:hover,
html[data-theme="light"] .pc-process-btn:hover,
html[data-theme="light"] .pc-btn-primary:hover,
html[data-theme="light"] .rt-process-btn:hover:not(:disabled),
html[data-theme="light"] .rm-process-btn:hover:not(:disabled),
html[data-theme="light"] .og-process-btn:hover:not(:disabled),
html[data-theme="light"] .pn-process-btn:hover:not(:disabled),
html[data-theme="light"] .cp-download-btn:hover:not(:disabled),
html[data-theme="light"] .cp-compare-btn:hover:not(:disabled),
html[data-theme="light"] .rp-apply-btn:hover:not(:disabled),
html[data-theme="light"] .rp-download-btn:hover { background: #4338ca !important; }

/* gradient heading text */
html[data-theme="light"] .gradient-text,
html[data-theme="light"] .wm-title,
html[data-theme="light"] .pc-title {
    background: linear-gradient(135deg, #6366f1, #4f46e5, #4338ca) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html[data-theme="light"] .rt-section-title-icon,
html[data-theme="light"] .rm-section-icon,
html[data-theme="light"] .og-section-icon,
html[data-theme="light"] .pn-empty-icon { color: #4f46e5 !important; }

/* index page accents */
html[data-theme="light"] .category-chip.active {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}
html[data-theme="light"] .tool-card-icon,
html[data-theme="light"] .tool-header-icon,
html[data-theme="light"] .preview-item-icon { background: rgba(79, 70, 229, 0.1) !important; }
html[data-theme="light"] .tool-category-badge.category-convert,
html[data-theme="light"] .tool-category-badge.category-edit,
html[data-theme="light"] .tool-category-badge.category-optimize,
html[data-theme="light"] .tool-category-badge.category-ai { background: rgba(79, 70, 229, 0.1) !important; }
html[data-theme="light"] .hero-bg {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 70, 229, 0.08), transparent),
                radial-gradient(ellipse 60% 40% at 70% 60%, rgba(79, 70, 229, 0.06), transparent) !important;
}
html[data-theme="light"] .coming-soon-badge,
html[data-theme="light"] .coming-soon-page .btn-home,
html[data-theme="light"] .coming-soon-page .progress-fill {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    color: #ffffff !important;
}
html[data-theme="light"] #globalSearch:focus,
html[data-theme="light"] .option-group input:focus,
html[data-theme="light"] .option-group select:focus,
html[data-theme="light"] .option-group textarea:focus { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important; }

/* watermark studio */
html[data-theme="light"] .wm-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0.08)) !important;
    border-color: rgba(79, 70, 229, 0.15) !important;
}
html[data-theme="light"] .wm-header::before { background: radial-gradient(circle, rgba(79, 70, 229, 0.08), transparent 70%) !important; }
html[data-theme="light"] .wm-header-badge,
html[data-theme="light"] .wm-engine-badge {
    background: rgba(79, 70, 229, 0.12) !important;
    border-color: rgba(79, 70, 229, 0.2) !important;
    color: #4f46e5 !important;
}
html[data-theme="light"] .wm-step.active {
    border-color: rgba(79, 70, 229, 0.3) !important;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(79, 70, 229, 0.06)) !important;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.08) !important;
}
html[data-theme="light"] .wm-step.active .wm-step-num {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
}
html[data-theme="light"] .wm-upload-zone:hover,
html[data-theme="light"] .wm-upload-zone.dragover { border-color: #4f46e5 !important; background: rgba(79, 70, 229, 0.04) !important; }
html[data-theme="light"] .wm-upload-glow { background: radial-gradient(circle, rgba(79, 70, 229, 0.06), transparent 60%) !important; }
html[data-theme="light"] .wm-upload-url-input:focus { box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important; }
html[data-theme="light"] .wm-toggle-switch input:checked + .wm-toggle-slider {
    background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
}
html[data-theme="light"] .wm-feature-card::before { background: linear-gradient(90deg, #4f46e5, transparent) !important; }
html[data-theme="light"] .wm-feature-icon { background: rgba(79, 70, 229, 0.1) !important; color: #4f46e5 !important; }
html[data-theme="light"] .wm-stage-item.active {
    border-color: rgba(79, 70, 229, 0.3) !important;
    background: rgba(79, 70, 229, 0.08) !important;
}
html[data-theme="light"] .wm-stage-item.active i { color: #4f46e5 !important; }
html[data-theme="light"] .wm-processing-fill { background: linear-gradient(90deg, #4f46e5, #4338ca) !important; }
html[data-theme="light"] .wm-processing-glow { background: rgba(79, 70, 229, 0.15) !important; }
html[data-theme="light"] .wm-label-before,
html[data-theme="light"] .wm-compare-watermark-label-before { border-color: #4f46e5 !important; color: #4f46e5 !important; }
html[data-theme="light"] .wm-handle-circle { border-color: #4f46e5 !important; box-shadow: 0 0 10px rgba(79, 70, 229, 0.3) !important; }
html[data-theme="light"] .wm-file-card { border-color: rgba(79, 70, 229, 0.2) !important; }
html[data-theme="light"] .wm-ring-segment { border-color: #4f46e5 !important; }
html[data-theme="light"] .wm-ring-pulse { border-color: rgba(79, 70, 229, 0.4) !important; }

/* image compressor studio */
html[data-theme="light"] .pc-header {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0.08)) !important;
    border-color: rgba(79, 70, 229, 0.15) !important;
}
html[data-theme="light"] .pc-header::before { background: radial-gradient(circle, rgba(79, 70, 229, 0.08), transparent 70%) !important; }
html[data-theme="light"] .pc-header-icon { background: linear-gradient(135deg, #4f46e5, #4338ca) !important; }
html[data-theme="light"] .pc-upload-zone.dragover { border-color: #4f46e5 !important; background: rgba(79, 70, 229, 0.04) !important; }
html[data-theme="light"] .pc-upload-glow { background: radial-gradient(circle, rgba(79, 70, 229, 0.06), transparent 60%) !important; }
html[data-theme="light"] .pc-file-icon { background: rgba(79, 70, 229, 0.1) !important; color: #4f46e5 !important; }
html[data-theme="light"] .pc-range::-webkit-slider-thumb,
html[data-theme="light"] .pc-range::-moz-range-thumb { background: #4f46e5 !important; }
html[data-theme="light"] .pc-checkbox input:checked ~ .pc-checkmark { background: #4f46e5 !important; border-color: #4f46e5 !important; }
html[data-theme="light"] .pc-checkbox input:focus ~ .pc-checkmark { border-color: #4f46e5 !important; }
html[data-theme="light"] .pc-estimate-val { color: #4f46e5 !important; }
html[data-theme="light"] .pc-stat-icon.stat-saving { background: rgba(79, 70, 229, 0.1) !important; color: #4f46e5 !important; }
html[data-theme="light"] .pc-stage-item.active { border-color: rgba(79, 70, 229, 0.3) !important; background: rgba(79, 70, 229, 0.08) !important; }
html[data-theme="light"] .pc-stage-item.active i { color: #4f46e5 !important; }
html[data-theme="light"] .pc-ring-segment { border-color: #4f46e5 !important; }
html[data-theme="light"] .pc-ring-pulse { border-color: rgba(79, 70, 229, 0.4) !important; }

/* rotate studio */
html[data-theme="light"] .rt-file-card { border-color: rgba(79, 70, 229, 0.2) !important; }
html[data-theme="light"] .rt-file-card-icon { background: rgba(79, 70, 229, 0.1) !important; color: #4f46e5 !important; }
html[data-theme="light"] .rt-angle-btn.active {
    background: rgba(79, 70, 229, 0.12) !important;
    border-color: #4f46e5 !important;
    color: #4f46e5 !important;
}
html[data-theme="light"] .rt-slider-badge { background: #4f46e5 !important; color: #fff !important; }
html[data-theme="light"] .rt-range::-webkit-slider-thumb,
html[data-theme="light"] .rt-range::-moz-range-thumb { background: #4f46e5 !important; }
html[data-theme="light"] .rt-info-row { color: #4f46e5 !important; }
html[data-theme="light"] .rt-nav-btn:hover:not(:disabled) { border-color: #4f46e5 !important; color: #4f46e5 !important; }
html[data-theme="light"] .rt-ring-seg { border-color: #4f46e5 !important; }
html[data-theme="light"] .rt-ring-pulse { border-color: rgba(79, 70, 229, 0.4) !important; }

/* watermark remover studio */
html[data-theme="light"] .rm-upload-zone:hover,
html[data-theme="light"] .rm-upload-zone.drag-over,
html[data-theme="light"] .rm-upload-zone.has-file { border-color: #4f46e5 !important; }
html[data-theme="light"] .rm-upload-icon { color: #4f46e5 !important; }
html[data-theme="light"] .rm-browse-badge { background: rgba(79, 70, 229, 0.1) !important; border-color: rgba(79, 70, 229, 0.2) !important; color: #4f46e5 !important; }
html[data-theme="light"] .rm-file-card { border-color: rgba(79, 70, 229, 0.2) !important; }
html[data-theme="light"] .rm-file-card-remove:hover { color: #4f46e5 !important; background: rgba(79, 70, 229, 0.2) !important; }
html[data-theme="light"] .rm-info-box { border-color: rgba(79, 70, 229, 0.2) !important; background: rgba(79, 70, 229, 0.05) !important; }
html[data-theme="light"] .rm-info-box-title { color: #4f46e5 !important; }
html[data-theme="light"] .rm-input:focus { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important; }
html[data-theme="light"] .rm-chip { border-color: rgba(79, 70, 229, 0.25) !important; color: #4f46e5 !important; }
html[data-theme="light"] .rm-info-row { color: #4f46e5 !important; }
html[data-theme="light"] .rm-thumb-card.removed { border-color: #4f46e5 !important; box-shadow: 0 0 15px rgba(79, 70, 229, 0.2) !important; }
html[data-theme="light"] .rm-thumb-label.removed { color: #4f46e5 !important; }
html[data-theme="light"] .rm-overlay-x { color: #4f46e5 !important; }
html[data-theme="light"] .rm-ring-seg { border-color: #4f46e5 !important; }
html[data-theme="light"] .rm-ring-pulse { border-color: rgba(79, 70, 229, 0.4) !important; }

/* rotate studio light surfaces */
html[data-theme="light"] .rt-root { background: #f1f5f9; color: #0f172a; }
html[data-theme="light"] .rt-sidebar { background: #ffffff; border-right-color: #e2e8f0; }
html[data-theme="light"] .rt-section-header { border-bottom-color: #e2e8f0; }
html[data-theme="light"] .rt-section-title { color: #0f172a; }
html[data-theme="light"] .rt-section-title-icon { color: #4f46e5; }
html[data-theme="light"] .rt-section-desc { color: #64748b; }
html[data-theme="light"] .rt-upload-zone { background: #f8fafc; border-color: #e2e8f0; }
html[data-theme="light"] .rt-upload-zone:hover { border-color: #4f46e5; background: #f1f5f9; }
html[data-theme="light"] .rt-upload-zone.drag-over { border-color: #4f46e5; background: rgba(79, 70, 229, 0.06); }
html[data-theme="light"] .rt-upload-zone.has-file { border-color: #4f46e5; background: rgba(79, 70, 229, 0.04); }
html[data-theme="light"] .rt-upload-text { color: #475569; }
html[data-theme="light"] .rt-browse-badge { background: #eef2f7; color: #475569; border-color: #e2e8f0; }
html[data-theme="light"] .rt-file-card { background: rgba(79, 70, 229, 0.05); border-color: rgba(79, 70, 229, 0.15); }
html[data-theme="light"] .rt-file-card-icon { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
html[data-theme="light"] .rt-file-card-name { color: #0f172a; }
html[data-theme="light"] .rt-file-card-size { color: #64748b; }
html[data-theme="light"] .rt-control-label { color: #475569; }
html[data-theme="light"] .rt-angle-btn { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
html[data-theme="light"] .rt-angle-btn:hover { border-color: #cbd5e1; color: #0f172a; }
html[data-theme="light"] .rt-slider-section { background: #f8fafc; border-color: #e2e8f0; --rt-accent: #4f46e5; --rt-accent-hi: #6366f1; --rt-track: #e2e8f0; }
html[data-theme="light"] .rt-range-labels { color: #64748b; }
html[data-theme="light"] .rt-info-card { background: #f8fafc; border-color: #e2e8f0; }
html[data-theme="light"] .rt-info-label { color: #64748b; }
html[data-theme="light"] .rt-info-value { color: #0f172a; }
html[data-theme="light"] .rt-info-value.rt-accent { color: #4f46e5; }
html[data-theme="light"] .rt-sidebar-footer { border-top-color: #e2e8f0; }
html[data-theme="light"] .rt-workspace { background: #e2e8f0; }
html[data-theme="light"] .rt-empty-text { color: #334155; }
html[data-theme="light"] .rt-empty-hint { color: #64748b; }
html[data-theme="light"] .rt-empty-icon svg { stroke: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .rt-preview-container { background: #e2e8f0; }
html[data-theme="light"] .rt-preview-toolbar { border-bottom-color: #d1d5db; background: #ffffff; }
html[data-theme="light"] .rt-preview-label { color: #475569; }
html[data-theme="light"] .rt-doc-name { color: #0f172a; }
html[data-theme="light"] .rt-nav-btn { border-color: #e2e8f0; color: #475569; }
html[data-theme="light"] .rt-nav-info { color: #475569; background: #f8fafc; border-color: #e2e8f0; }
html[data-theme="light"] .rt-processing-label { color: #334155; }
html[data-theme="light"] .rt-results-card { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15); }
html[data-theme="light"] .rt-results-title { color: #0f172a; }
html[data-theme="light"] .rt-results-desc { color: #64748b; }
html[data-theme="light"] .rt-btn-reset { background: #f8fafc; border-color: #e2e8f0; color: #64748b; }
html[data-theme="light"] .rt-btn-reset:hover { border-color: #cbd5e1; color: #0f172a; }

/* watermark remover studio light surfaces */
html[data-theme="light"] .rm-root { background: #f1f5f9; color: #0f172a; }
html[data-theme="light"] .rm-sidebar { background: #ffffff; border-right-color: #e2e8f0; }
html[data-theme="light"] .rm-section-header { border-bottom-color: #e2e8f0; }
html[data-theme="light"] .rm-section-title { color: #0f172a; }
html[data-theme="light"] .rm-section-icon { color: #4f46e5; }
html[data-theme="light"] .rm-field-label { color: #64748b; }
html[data-theme="light"] .rm-upload-zone { background: #f8fafc; border-color: rgba(79, 70, 229, 0.3); box-shadow: inset 0 2px 4px rgba(79, 70, 229, 0.05); }
html[data-theme="light"] .rm-upload-zone.drag-over { background: rgba(79, 70, 229, 0.08); }
html[data-theme="light"] .rm-upload-zone.has-file { background: rgba(79, 70, 229, 0.06); }
html[data-theme="light"] .rm-upload-text { color: #475569; }
html[data-theme="light"] .rm-browse-badge { background: rgba(79, 70, 229, 0.1); color: #4f46e5; border-color: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .rm-upload-zone:hover .rm-browse-badge { background: #4f46e5; color: #ffffff; }
html[data-theme="light"] .rm-file-card { background: rgba(79, 70, 229, 0.04); border-color: rgba(79, 70, 229, 0.15); }
html[data-theme="light"] .rm-file-card-name { color: #0f172a; }
html[data-theme="light"] .rm-file-card-size { color: #64748b; }
html[data-theme="light"] .rm-file-card-remove { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
html[data-theme="light"] .rm-file-card-remove:hover { background: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .rm-file-stats { color: #64748b; }
html[data-theme="light"] .rm-file-stats strong { color: #0f172a; }
html[data-theme="light"] .rm-input { background: #ffffff; border-color: #e2e8f0; color: #4f46e5; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03); }
html[data-theme="light"] .rm-input::placeholder { color: #94a3b8; }
html[data-theme="light"] .rm-input:focus { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03), 0 0 0 2px rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .rm-input-hint { color: #64748b; }
html[data-theme="light"] .rm-chip { background: rgba(79, 70, 229, 0.1); border-color: rgba(79, 70, 229, 0.3); color: #4f46e5; }
html[data-theme="light"] .rm-chip:hover { background: rgba(79, 70, 229, 0.2); }
html[data-theme="light"] .rm-info-card { background: #f8fafc; border-color: #e2e8f0; }
html[data-theme="light"] .rm-info-label { color: #64748b; }
html[data-theme="light"] .rm-info-value { color: #0f172a; }
html[data-theme="light"] .rm-info-value.rm-accent { color: #4f46e5; }
html[data-theme="light"] .rm-sidebar-footer { border-top-color: #e2e8f0; }
html[data-theme="light"] .rm-workspace { background: #e2e8f0; }
html[data-theme="light"] .rm-preview-container { background: #e2e8f0; }
html[data-theme="light"] .rm-empty-text { color: #334155; }
html[data-theme="light"] .rm-empty-hint { color: #64748b; }
html[data-theme="light"] .rm-empty-icon svg { stroke: rgba(79, 70, 229, 0.15); }
html[data-theme="light"] .rm-thumb-card { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
html[data-theme="light"] .rm-thumb-card:hover { border-color: #cbd5e1; }
html[data-theme="light"] .rm-thumb-canvas { border-color: #e2e8f0; }
html[data-theme="light"] .rm-thumb-label { color: #64748b; }
html[data-theme="light"] .rm-thumb-wrap:hover .rm-thumb-label { color: #0f172a; }
html[data-theme="light"] .rm-thumb-overlay { background: rgba(79, 70, 229, 0.12); }
html[data-theme="light"] .rm-results-card { background: #ffffff; border-color: #e2e8f0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .rm-results-icon { background: rgba(79, 70, 229, 0.1); }
html[data-theme="light"] .rm-results-title { color: #0f172a; }
html[data-theme="light"] .rm-results-desc { color: #64748b; }
html[data-theme="light"] .rm-btn-reset { background: #f8fafc; border-color: #e2e8f0; color: #475569; }
html[data-theme="light"] .rm-btn-reset:hover { border-color: #cbd5e1; color: #0f172a; }

/* organize studio */
html[data-theme="light"] .og-files-reset { color: #4f46e5 !important; }
html[data-theme="light"] .og-file-item:hover { border-color: rgba(79, 70, 229, 0.3) !important; }
html[data-theme="light"] .og-file-item-remove:hover { color: #4f46e5 !important; }
html[data-theme="light"] .og-info-box { border-color: rgba(79, 70, 229, 0.2) !important; background: rgba(79, 70, 229, 0.05) !important; }
html[data-theme="light"] .og-info-box-title { color: #4f46e5 !important; }
html[data-theme="light"] .og-btn-spinner { border-color: rgba(255, 255, 255, 0.3) !important; border-top-color: #4f46e5 !important; }
html[data-theme="light"] .og-upload-zone:hover { border-color: #4f46e5 !important; background: rgba(79, 70, 229, 0.05) !important; }
html[data-theme="light"] .og-upload-icon-wrap { background: rgba(79, 70, 229, 0.1) !important; color: #4f46e5 !important; }
html[data-theme="light"] .og-hcard.og-drag-over .og-hcard-card { border-color: #4f46e5 !important; box-shadow: 0 0 18px rgba(79, 70, 229, 0.2) !important; }
html[data-theme="light"] .og-hcard-file-badge-blank { border-color: rgba(79, 70, 229, 0.25) !important; color: #4f46e5 !important; }
html[data-theme="light"] .og-hcard-btn:hover { border-color: #4f46e5 !important; color: #4f46e5 !important; }
html[data-theme="light"] .og-hcard-btn-del:hover { color: #4f46e5 !important; }
html[data-theme="light"] .og-hcard-blank-header { color: #4f46e5 !important; }
html[data-theme="light"] .og-hcard-blank-divider { background: rgba(79, 70, 229, 0.2) !important; }
html[data-theme="light"] .og-hcard-textarea:focus { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important; }
html[data-theme="light"] .og-rot-badge { background: #4f46e5 !important; color: #fff !important; }
html[data-theme="light"] .og-ins-circle:hover { background: #4f46e5 !important; color: #fff !important; }
html[data-theme="light"] .og-ins-plus { color: #4f46e5 !important; }
html[data-theme="light"] .og-ring-seg { border-color: #4f46e5 !important; }
html[data-theme="light"] .og-ring-pulse { border-color: rgba(79, 70, 229, 0.4) !important; }
html[data-theme="light"] .og-modal-icon { color: #4f46e5 !important; }
html[data-theme="light"] .og-modal-title { color: #4f46e5 !important; }
html[data-theme="light"] .og-rtoolbar-btn-active { border-color: #4f46e5 !important; color: #4f46e5 !important; background: rgba(79, 70, 229, 0.1) !important; }
html[data-theme="light"] .og-rtoolbar-swatch-amber { background: #4f46e5 !important; }
html[data-theme="light"] .og-modal-editor-wrap:focus-within { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important; }
html[data-theme="light"] .og-hcard-loading-dot { background: #4f46e5 !important; }

/* page numbers studio */
html[data-theme="light"] .pn-upload-btn:hover { border-color: #4f46e5 !important; background: rgba(79, 70, 229, 0.08) !important; color: #4f46e5 !important; }
html[data-theme="light"] .pn-hint code { background: rgba(79, 70, 229, 0.1) !important; color: #4f46e5 !important; }
html[data-theme="light"] .pn-input:focus,
html[data-theme="light"] .pn-select:focus { border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important; }
html[data-theme="light"] .pn-pos-cell:hover { border-color: #4f46e5 !important; }
html[data-theme="light"] .pn-pos-cell.active { background: #4f46e5 !important; border-color: #4f46e5 !important; color: #fff !important; }
html[data-theme="light"] .pn-pos-cell.active::after { border-color: rgba(79, 70, 229, 0.3) !important; }
html[data-theme="light"] .pn-grid-card:hover { border-color: #4f46e5 !important; box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15) !important; }
html[data-theme="light"] .pn-sidebar { background: #f8fafc !important; border-left-color: #e2e8f0 !important; border-bottom-color: #e2e8f0 !important; }
html[data-theme="light"] .pn-root:not(.pn-sidebar-right) .pn-sidebar { border-right-color: #e2e8f0 !important; }
html[data-theme="light"] .pn-root.pn-sidebar-right .pn-sidebar { border-left-color: #e2e8f0 !important; }
html[data-theme="light"] .pn-sidebar-footer { background: #f1f5f9 !important; border-top-color: #e2e8f0 !important; }
html[data-theme="light"] .pn-range { background: #cbd5e1 !important; }
html[data-theme="light"] .pn-range::-webkit-slider-thumb { border-color: #ffffff !important; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25) !important; }
html[data-theme="light"] .pn-pos-cell { border-color: rgba(100, 116, 139, 0.35) !important; }
html[data-theme="light"] .pn-grid-canvas-inner { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important; }

/* arbitrary-value amber utilities (organize.html etc.) */
html[data-theme="light"] .accent-\[\#f59e0b\] { accent-color: #4f46e5; }
html[data-theme="light"] .bg-\[\#f59e0b\] { background-color: #4f46e5; }
html[data-theme="light"] .border-\[\#f59e0b\] { border-color: #4f46e5; }
html[data-theme="light"] .hover\:text-\[\#f59e0b\]:hover { color: #4f46e5; }
html[data-theme="light"] .hover\:bg-\[\#f59e0b\]:hover { background-color: #4f46e5; }
html[data-theme="light"] .hover\:border-\[\#f59e0b\]:hover { border-color: #4f46e5; }
html[data-theme="light"] .hover\:bg-\[\#f59e0b\]:hover.text-black { color: #ffffff; }

/* -------- Compress PDF Pro (custom Tailwind colors) -------- */
html[data-theme="light"] .bg-siteBg { background-color: #f8fafc; }
html[data-theme="light"] .bg-siteBg\/40 { background-color: rgba(248, 250, 252, 0.4); }
html[data-theme="light"] .bg-siteBg\/60 { background-color: rgba(248, 250, 252, 0.6); }
html[data-theme="light"] .bg-panelBg { background-color: #ffffff; }
html[data-theme="light"] .bg-panelBg\/50 { background-color: rgba(255, 255, 255, 0.5); }
html[data-theme="light"] .bg-innerBox { background-color: #f1f5f9; }
html[data-theme="light"] .text-zinc-100 { color: #0f172a; }
html[data-theme="light"] .text-zinc-600 { color: #475569; }
html[data-theme="light"] .text-zinc-950 { color: #0f172a; }
html[data-theme="light"] .bg-zinc-100 { background-color: #f1f5f9; }
html[data-theme="light"] .hover\:text-zinc-300:hover { color: #1e293b; }
html[data-theme="light"] .border-zinc-700\/40 { border-color: rgba(226, 232, 240, 0.4); }
html[data-theme="light"] .border-zinc-700\/50 { border-color: rgba(226, 232, 240, 0.5); }
html[data-theme="light"] .border-zinc-800\/60 { border-color: rgba(226, 232, 240, 0.6); }
html[data-theme="light"] .border-zinc-800\/80 { border-color: rgba(226, 232, 240, 0.8); }
html[data-theme="light"] .bg-zinc-950\/40 { background-color: rgba(241, 245, 249, 0.4); }
html[data-theme="light"] .text-stone-200 { color: #0f172a; }
html[data-theme="light"] .text-stone-300 { color: #1e293b; }
html[data-theme="light"] .text-stone-400 { color: #334155; }
html[data-theme="light"] .text-stone-500 { color: #64748b; }
html[data-theme="light"] .bg-stone-800 { background-color: #f1f5f9; }
html[data-theme="light"] .bg-stone-900 { background-color: #ffffff; }
html[data-theme="light"] .bg-stone-950 { background-color: #f8fafc; }
html[data-theme="light"] .border-stone-700 { border-color: #e2e8f0; }
html[data-theme="light"] .border-stone-800 { border-color: #e2e8f0; }
html[data-theme="light"] .hover\:bg-stone-700:hover { background-color: #e2e8f0; }
html[data-theme="light"] input[type=range]::-webkit-slider-runnable-track { background: #cbd5e1 !important; }
html[data-theme="light"] input[type=range]::-moz-range-track { background: #cbd5e1 !important; }
html[data-theme="light"] .preset-btn { border-color: #cbd5e1 !important; background: #f1f5f9 !important; color: #475569 !important; }
html[data-theme="light"] .preset-btn:hover { border-color: #4f46e5 !important; color: #4f46e5 !important; }
html[data-theme="light"] .preset-btn.active { background: rgba(79, 70, 229, 0.1) !important; border-color: #4f46e5 !important; color: #4f46e5 !important; box-shadow: 0 0 12px rgba(79, 70, 229, 0.25) !important; }
html[data-theme="light"] .toolbar-btn { border-color: #cbd5e1 !important; background: #f1f5f9 !important; color: #475569 !important; }
html[data-theme="light"] .toolbar-btn:hover { border-color: #4f46e5 !important; color: #4f46e5 !important; }
html[data-theme="light"] #dropZone.dragging { border-color: #4f46e5 !important; background: rgba(79, 70, 229, 0.08) !important; box-shadow: 0 0 15px rgba(79, 70, 229, 0.3) !important; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #f1f5f9 !important; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cbd5e1 !important; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #94a3b8 !important; }

/* -------- Protect / Unlock arrow button -------- */
html[data-theme="light"] #protectBtn span[style*="background: #0c0a09"],
html[data-theme="light"] #unlockBtn span[style*="background: #0c0a09"] {
    background: #ffffff !important;
}

/* -------- Theme toggle button -------- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    background: var(--bg-card, rgba(255, 255, 255, 0.06));
    color: var(--text-secondary, #f8fafc);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
}
.theme-toggle:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    box-shadow: 0 0 14px rgba(79, 70, 229, 0.25);
    transform: rotate(15deg);
}
.theme-toggle:active {
    transform: rotate(15deg) scale(0.92);
}
.theme-toggle-float {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================================
   Universal Timer + Ad Download Gate
   ============================================================ */
.ad-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--ad-overlay-bg, rgba(9, 11, 18, 0.62));
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: adGateFade 0.25s ease;
}
@keyframes adGateFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.ad-gate-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--bg-card, #1c1917);
    color: var(--text-primary, #fefce8);
    border: 1px solid var(--border-color, #44403c);
    border-radius: 18px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: var(--ad-box-shadow, 0 30px 60px -12px rgba(0, 0, 0, 0.5));
    animation: adGateUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes adGateUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ad-gate-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted, #a8a29e);
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}
.ad-gate-close:hover { color: var(--text-primary, #fefce8); background: var(--ad-close-hover-bg, rgba(255, 255, 255, 0.06)); }
.ad-gate-countdown { margin-bottom: 20px; }
.ad-gate-countdown-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary, #d6d3d1);
    margin-bottom: 10px;
}
.ad-gate-timer-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}
.ad-gate-timer {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-blue, #fbbf24);
}
.ad-gate-sec { font-size: 16px; font-weight: 600; color: var(--text-muted, #a8a29e); }
.ad-gate-sub { font-size: 13px; color: var(--text-muted, #a8a29e); margin-top: 8px; }
.ad-gate-ad {
    margin: 18px 0;
    border: 1px dashed var(--border-color, #57534e);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary, #1c1917);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-dl-placeholder {
    color: var(--text-muted, #a8a29e);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ad-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 34px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-family: var(--font, inherit);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--ad-btn-shadow, 0 8px 24px rgba(22, 163, 74, 0.35));
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ad-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--ad-btn-hover-shadow, 0 10px 30px rgba(22, 163, 74, 0.45));
}
.ad-gate-btn:active { transform: translateY(0); }

