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

body {
    font-family: 'IBM Plex Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
}

.gradient-mesh {
    position: fixed;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.noise-texture {
    position: fixed;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    z-index: 0;
}

.main-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar .nav-links a:hover { color: white; }

/* Header */
.header {
    text-align: center;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 8px 18px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header h1 {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 16px 0;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Tool grid (dashboard) */
.category-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 32px 0 16px;
    position: relative;
    z-index: 1;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 22px 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

.tool-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.tool-card.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
    border-style: dashed;
}

.tool-card.coming-soon:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
}

.tool-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(139, 92, 246, 0.3));
    border-radius: 14px;
}

.tool-card .icon svg { width: 24px; height: 24px; }

.tool-card .title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.tool-card .soon-tag {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    margin: 4px 0 0;
}

/* Glass card (tool pages) */
.glass-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 40px;
    max-width: 760px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

/* Upload zone */
.upload-zone {
    background: rgba(255, 255, 255, 0.08);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    padding: 64px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.upload-zone:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(14, 165, 233, 0.4);
}

.upload-zone.drag-active {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.6);
    transform: scale(0.98);
}

.upload-icon { animation: float-icon 2s ease-in-out infinite; margin: 0 auto 20px; }
.upload-zone h2 { font-size: 22px; font-weight: 600; color: rgba(255, 255, 255, 0.95); margin: 0 0 10px; }
.upload-zone p { font-size: 15px; color: rgba(255, 255, 255, 0.7); margin: 0; }

/* File list */
.file-info, .file-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.file-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-details { flex: 1; min-width: 0; }
.file-name { font-size: 15px; font-weight: 600; color: white; margin: 0 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin: 0; }

.remove-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9px;
    padding: 7px 11px;
    color: #FCA5A5;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.remove-btn:hover:not(:disabled) { background: rgba(239, 68, 68, 0.25); }
.remove-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Options */
.option-section { margin: 24px 0; }
.option-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-align: center;
}
.option-btn:hover:not(:disabled) { transform: scale(1.02); }
.option-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.option-btn.active { background: rgba(14, 165, 233, 0.2); border-color: #0EA5E9; }
.option-btn .opt-label { font-size: 14px; font-weight: 700; color: white; margin-bottom: 3px; }
.option-btn .opt-desc { font-size: 11px; color: rgba(255, 255, 255, 0.7); line-height: 1.3; }

/* Inputs */
.text-input, .number-input, select.styled-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}
.text-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.text-input:focus, .number-input:focus, select.styled-select:focus {
    outline: none;
    border-color: #0EA5E9;
    background: rgba(255, 255, 255, 0.15);
}
select.styled-select option { background: #5b4a8a; color: white; }

.input-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.input-row label { color: rgba(255,255,255,0.85); font-size: 14px; min-width: 90px; }

/* Buttons */
.action-buttons { display: flex; gap: 12px; margin-top: 8px; }

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #0EA5E9, #8B5CF6);
    border: none;
    border-radius: 14px;
    padding: 17px 28px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover:not(:disabled) { transform: scale(1.02); }
.btn-primary:disabled { background: rgba(100, 100, 100, 0.3); cursor: not-allowed; box-shadow: none; }

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Progress */
.progress-card {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}
.progress-stage { font-size: 15px; font-weight: 600; color: white; margin-bottom: 14px; }
.progress-bar-container { background: rgba(255, 255, 255, 0.1); border-radius: 100px; height: 8px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { background: linear-gradient(90deg, #0EA5E9, #8B5CF6); height: 100%; border-radius: 100px; transition: width 0.3s ease; box-shadow: 0 0 10px rgba(14, 165, 233, 0.5); width: 0; }
.progress-stats { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, 0.8); }

/* Results */

.btn-download {
    width: 100%;
    background: linear-gradient(135deg, #10B981, #059669);
    border: none;
    border-radius: 13px;
    padding: 15px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-download:hover { transform: scale(1.02); }

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.back-link:hover { color: white; }

/* Page thumbnails (for organize/split) */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}
.page-thumb {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 0.707;
    transition: all 0.2s;
}
.page-thumb.selected { border-color: #0EA5E9; box-shadow: 0 0 0 2px rgba(14,165,233,0.4); }
.page-thumb.marked-delete { border-color: #EF4444; opacity: 0.5; }
.page-thumb canvas, .page-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.page-thumb .page-num { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; font-size: 11px; text-align: center; padding: 2px; }
.page-thumb .page-check { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; background: #0EA5E9; border-radius: 50%; display: none; align-items: center; justify-content: center; }
.page-thumb.selected .page-check { display: flex; }

/* Features */
.features-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    text-align: center;
}
.feature-card .icon { width: 50px; height: 50px; background: rgba(255, 255, 255, 0.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: white; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin: 0; line-height: 1.6; }

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    margin-top: 64px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding-bottom: 20px;
}
.footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; margin: 0 8px; }
.footer a:hover { color: white; }

.hidden { display: none !important; }

svg { stroke: rgba(255, 255, 255, 0.9); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(30px, -50px) rotate(3deg); } 66% { transform: translate(-20px, 20px) rotate(-2deg); } }
@keyframes float-icon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .header h1 { font-size: 40px; }
    .glass-card { padding: 28px 20px; }
    .navbar .nav-links { gap: 14px; }
    .navbar .nav-links a { font-size: 13px; }
    .tool-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 480px) {
    .main-content { padding: 24px 16px 60px; }
    .header h1 { font-size: 32px; }
    .stats-grid { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Dark Mode ───────────────────────────────────────────────── */
:root {
    --bg-grad-1: #667eea; --bg-grad-2: #764ba2; --bg-grad-3: #f093fb;
    --accent: #0EA5E9; --accent2: #8B5CF6; --success: #10B981;
    --warning: #F59E0B; --danger: #EF4444;
}
html.dark body { background: linear-gradient(135deg,#0f0c29 0%,#302b63 50%,#24243e 100%); }
html.dark .glass-card { background: rgba(15,15,30,0.55); border-color: rgba(255,255,255,0.10); }
html.dark .tool-card { background: rgba(255,255,255,0.07); }
html.dark .feature-card { background: rgba(255,255,255,0.06); }

/* ── Dark toggle button ──────────────────────────────────────── */
.dark-toggle {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px; padding: 8px 10px;
    cursor: pointer; color: rgba(255,255,255,0.9);
    display: flex; align-items: center; transition: background 0.2s;
}
.dark-toggle:hover { background: rgba(255,255,255,0.2); }
.dark-toggle svg { stroke: rgba(255,255,255,0.9); }

/* ── Navbar improvements ─────────────────────────────────────── */
.navbar-right { display: flex; align-items: center; gap: 10px; }
.nav-search {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px; padding: 6px 14px;
    color: white; font-size: 13px; font-family: inherit;
    width: 180px; transition: all 0.2s;
}
.nav-search::placeholder { color: rgba(255,255,255,0.45); }
.nav-search:focus { outline: none; background: rgba(255,255,255,0.18); width: 220px; }

/* ── Toast notifications ─────────────────────────────────────── */
#_toast_container {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.pf-toast {
    background: rgba(20,20,40,0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 12px;
    padding: 11px 16px; color: white; font-size: 13px; font-weight: 500;
    display: flex; align-items: center; gap: 9px;
    max-width: 320px; pointer-events: all;
    opacity: 0; transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
    font-family: 'IBM Plex Sans', sans-serif;
}
.pf-toast.show { opacity: 1; transform: translateX(0); }
.pf-toast-success { border-left: 3px solid #10B981; }
.pf-toast-error   { border-left: 3px solid #EF4444; }
.pf-toast-warning { border-left: 3px solid #F59E0B; }
.pf-toast-info    { border-left: 3px solid #0EA5E9; }
.pf-toast-icon    { font-size: 15px; flex-shrink: 0; }

/* ── Error box (inline) ──────────────────────────────────────── */
.err-box {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 12px; padding: 12px 16px;
    color: #FCA5A5; font-size: 13px; margin-bottom: 16px;
    display: none;
}

/* ── Size warning ─────────────────────────────────────────────── */
.size-warning { font-size: 12px; color: #F59E0B; margin-top: 4px; }

/* ── Search highlight on homepage ────────────────────────────── */
.tool-card.search-hide { display: none; }

/* ── Tool count badge ─────────────────────────────────────────── */
.tool-count-badge {
    display: inline-block;
    background: rgba(14,165,233,0.15);
    border: 1px solid rgba(14,165,233,0.3);
    border-radius: 100px; padding: 3px 12px;
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8);
    margin-left: 10px; vertical-align: middle;
}

/* ── Recently used section ────────────────────────────────────── */
.recent-section { margin-bottom: 4px; }
.recent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.recent-chip {
    background: rgba(14,165,233,0.15);
    border: 1px solid rgba(14,165,233,0.25);
    border-radius: 100px; padding: 5px 14px;
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85);
    text-decoration: none; transition: background 0.2s;
}
.recent-chip:hover { background: rgba(14,165,233,0.28); color: white; }

/* ── Focus visible globally ───────────────────────────────────── */
:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }

/* ── Keyboard hint ────────────────────────────────────────────── */
.kbd-hint {
    font-size: 11px; color: rgba(255,255,255,0.4);
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px;
}
kbd { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
      border-radius: 4px; padding: 1px 6px; font-size: 11px; font-family: inherit; }

/* ── Responsive extras ────────────────────────────────────────── */
@media (max-width: 480px) {
    #_toast_container { right: 10px; bottom: 10px; left: 10px; }
    .pf-toast { max-width: 100%; }
    .nav-search { display: none; }
}

/* ── Privacy Proof Bar ────────────────────────────────────────── */
.privacy-proof-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 12px; padding: 10px 16px;
    font-size: 13px; color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
}
.pp-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10B981; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
.pp-sep { color: rgba(255,255,255,0.3); }
.pp-link {
    color: #34D399; text-decoration: none; margin-left: 4px;
    font-weight: 600; transition: color 0.2s;
}
.pp-link:hover { color: #6EE7B7; }

/* ── Navbar stats-grid ────────────────────────────────────────── */
.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px;
}
.stat-card {
    background: rgba(255,255,255,0.07); border-radius: 12px; padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}
.stat-label {
    font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.stat-value { font-size: 19px; font-weight: 700; color: white; }
.stat-value.success { color: #10B981; }
.results-title.warning { color: #F59E0B; }

/* ── File list item (merge, image-to-pdf) ─────────────────────── */
.file-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
    cursor: grab; transition: background 0.15s;
}
.file-item:hover { background: rgba(255,255,255,0.10); }

/* ── Styled select ────────────────────────────────────────────── */
.styled-select {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px; color: white;
    padding: 10px 14px; font-family: inherit; font-size: 14px;
    width: 100%; cursor: pointer;
}
.styled-select option { background: #302b63; }

/* ── Number input ─────────────────────────────────────────────── */
.number-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px; color: white;
    padding: 10px 14px; font-family: inherit; font-size: 14px;
    width: 100%;
}
.number-input:focus { outline: 2px solid #0EA5E9; }

/* ── Text input ───────────────────────────────────────────────── */
.text-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px; color: white;
    padding: 10px 14px; font-family: inherit; font-size: 14px;
    width: 100%; resize: vertical;
}
.text-input::placeholder { color: rgba(255,255,255,0.4); }
.text-input:focus { outline: 2px solid #0EA5E9; }

/* ── Input row ────────────────────────────────────────────────── */

.input-row label { color: rgba(255,255,255,0.8); font-size: 13px; white-space: nowrap; min-width: 80px; }

/* ── no-reduction result ──────────────────────────────────────── */
.results-card.no-reduction {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.25);
}

/* ── Results card base ────────────────────────────────────────── */
.results-card {
    margin-top: 24px;
    background: rgba(16,185,129,0.10);
    border: 1px solid rgba(16,185,129,0.28);
    border-radius: 20px; padding: 22px;
}
.results-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.success-icon {
    width: 38px; height: 38px; background: rgba(16,185,129,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.results-title { font-size: 17px; font-weight: 700; color: #10B981; margin-bottom: 3px; }
.results-subtitle { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ── Privacy page styles ──────────────────────────────────────── */
.privacy-hero {
    text-align: center; padding: 60px 24px 40px;
    max-width: 700px; margin: 0 auto;
}
.privacy-hero h1 { font-size: 42px; font-weight: 800; font-family: 'DM Sans',sans-serif; color: white; margin-bottom: 14px; }
.privacy-hero p { font-size: 17px; color: rgba(255,255,255,0.8); }
.privacy-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; max-width: 900px; margin: 0 auto 40px; padding: 0 24px; }
.privacy-card { background: rgba(255,255,255,0.09); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.13); border-radius: 20px; padding: 24px; }
.privacy-card h3 { font-size: 16px; font-weight: 700; color: white; margin: 12px 0 8px; }
.privacy-card p  { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.6; }
.privacy-card .pc-icon { width: 44px; height: 44px; background: rgba(16,185,129,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.network-monitor { max-width: 700px; margin: 0 auto 60px; padding: 0 24px; }
.network-monitor h2 { font-size: 22px; font-weight: 700; color: white; margin-bottom: 14px; text-align: center; }
.monitor-box { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 20px; font-family: monospace; font-size: 12px; color: rgba(255,255,255,0.7); min-height: 100px; }
.monitor-row { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; gap: 12px; }
.monitor-row.allowed { color: rgba(16,185,129,0.9); }
.monitor-row.blocked { color: rgba(239,68,68,0.9); }

/* ── Responsive fix ───────────────────────────────────────────── */
@media (max-width:480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .privacy-hero h1 { font-size: 30px; }
}


/* ── SEO Content Sections ─────────────────────────────────────── */
.how-to-section,
.seo-faq-section,
.related-tools-section {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 0 4px;
}
.how-to-section h2,
.seo-faq-section h2,
.related-tools-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}
.how-steps { display: flex; flex-direction: column; gap: 16px; }
.how-step {
    display: flex; align-items: flex-start; gap: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 18px 20px;
}
.how-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: white; flex-shrink: 0;
}
.how-step-body h3 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 4px; }
.how-step-body p  { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.6; margin: 0; }

/* FAQ accordion */
.faq-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq-q {
    padding: 16px 20px; font-size: 14px; font-weight: 600; color: white;
    cursor: pointer; list-style: none; display: flex; justify-content: space-between;
    align-items: center; user-select: none;
}
.faq-q::after { content: "+"; font-size: 20px; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a {
    padding: 0 20px 16px; font-size: 13px;
    color: rgba(255,255,255,0.75); line-height: 1.7; margin: 0;
}

/* Related tools chips */
.related-tools-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.related-tool-chip {
    background: rgba(102,126,234,0.15);
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 100px; padding: 7px 16px;
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.88); text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.related-tool-chip:hover { background: rgba(102,126,234,0.3); color: white; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 8px; }
.breadcrumb ol {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    list-style: none; padding: 0; margin: 0;
    font-size: 12px; color: rgba(255,255,255,0.5);
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb li:last-child span, .breadcrumb li[aria-current] { color: rgba(255,255,255,0.85); }

@media (max-width: 600px) {
    .how-to-section, .seo-faq-section, .related-tools-section { margin-top: 32px; }
}

/* ── Performance: content-visibility for off-screen cards ── */
.tool-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 120px;
}

/* ── GPU-accelerate frequent animations ── */
.tool-card, .pf-c-btn, .nav-links a, .feature-card {
  will-change: auto;
}
.tool-card:hover {
  will-change: transform;
}

/* ── Reduce layout thrash on dark toggle ── */
html {
  color-scheme: light dark;
}

/* ── Improve CLS: reserve space for consent banner ── */
body {
  overflow-x: hidden;
}

/* ── Article / prose pages (how-it-works, terms, privacy-commitment) ── */
.article {
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 0 24px;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    font-size: 15px;
}
.article h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 36px 0 12px;
}
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article a { color: #60C8F5; text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article strong { color: #fff; font-weight: 600; }

/* ── Contact page ── */
.contact-wrap {
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 28px 28px 24px;
}
.contact-card h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}
.contact-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
    margin: 0 0 14px;
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-card address {
    font-style: normal;
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    line-height: 1.9;
}
.contact-card address strong { color: #fff; }
.contact-card address a { color: #60C8F5; text-decoration: none; }
.contact-card address a:hover { text-decoration: underline; }
.contact-card a { color: #60C8F5; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.muted {
    font-size: 12px !important;
    color: rgba(255,255,255,0.45) !important;
    margin-top: 10px !important;
}
.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.12s;
    margin-bottom: 10px;
}
.wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }

@media (max-width: 600px) {
    .contact-wrap { padding: 0 16px; }
    .contact-card { padding: 20px 18px; }
    .article { padding: 0 16px; }
}
