/* --- FixMyFile.ai styles (Pages) --- */
*{box-sizing:border-box;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
:root{
  --bg:#f5f7fb;--card:#fff;--accent:#2563eb;--accent-soft:rgba(37,99,235,.08);
  --text-main:#0f172a;--text-muted:#6b7280;--border-subtle:#e5e7eb;
  --radius-xl:18px;--shadow-soft:0 18px 45px rgba(15,23,42,.08)
}
body{background:radial-gradient(circle at top left,#e0edff 0,#f5f7fb 40%,#f5f7fb 100%);min-height:100vh;padding:24px;color:var(--text-main);display:flex;justify-content:center}
.layout{width:100%;max-width:1120px;display:flex;flex-direction:column;gap:20px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px}
.brand-icon{width:38px;height:38px;border-radius:14px;background:conic-gradient(from 220deg,#2563eb,#4f46e5,#06b6d4,#2563eb);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:18px;box-shadow:0 10px 26px rgba(37,99,235,.4)}
.brand-title{font-weight:700;font-size:20px;letter-spacing:.03em}
.brand-subtitle{font-size:12px;color:var(--text-muted)}
.top-right{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--text-muted)}
.badge{padding:4px 10px;border-radius:999px;border:1px solid rgba(37,99,235,.16);background:rgba(255,255,255,.7);display:inline-flex;align-items:center;gap:6px}
.badge-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.3)}
.pill-button{border-radius:999px;border:1px solid var(--border-subtle);padding:5px 12px;background:rgba(255,255,255,.9);cursor:pointer;font-size:12px;display:inline-flex;align-items:center;gap:6px;transition:.16s}
.pill-button:hover{background:#fff;box-shadow:0 10px 30px rgba(148,163,184,.35);transform:translateY(-1px)}
.pill-button.primary{background:var(--accent);color:#fff;border-color:rgba(37,99,235,.8)}
.pill-button.primary:hover{background:#1d4ed8}
.main-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.1fr);gap:20px}
@media (max-width:900px){body{padding:16px}.main-grid{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:flex-start}}
.card{background:rgba(255,255,255,.96);border-radius:var(--radius-xl);box-shadow:var(--shadow-soft);padding:18px 20px;border:1px solid rgba(148,163,184,.24);backdrop-filter:blur(20px)}
.card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;gap:10px}
.card-header-left h1{font-size:20px;margin-bottom:4px}
.card-header-left p{font-size:13px;color:var(--text-muted)}
.doc-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;font-size:11px;border-radius:999px;border:1px dashed rgba(148,163,184,.7);color:var(--text-muted)}
.doc-dot{width:6px;height:6px;border-radius:50%;background:#fbbf24}
.upload-area{border-radius:16px;border:1px dashed rgba(148,163,184,.85);padding:18px;background:linear-gradient(180deg,rgba(248,250,252,.95),rgba(241,245,249,.94));display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;cursor:pointer;transition:.16s}
.upload-area:hover{border-color:var(--accent);box-shadow:0 12px 35px rgba(148,163,184,.5);transform:translateY(-1px)}
.upload-icon{width:42px;height:42px;border-radius:14px;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:20px}
.upload-title{font-size:14px;font-weight:600}
.upload-subtitle{font-size:12px;color:var(--text-muted)}
.upload-subtitle span{color:var(--accent);font-weight:500}
.upload-input{display:none}
.file-meta{margin-top:12px;width:100%;font-size:12px;color:var(--text-muted);display:none}
.file-meta-row{display:flex;justify-content:space-between;margin-bottom:4px}
.file-meta-label{font-weight:500}
.tool-sections{margin-top:16px;display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (max-width:900px){.tool-sections{grid-template-columns:1fr}}
.tool-card{border-radius:14px;border:1px solid rgba(226,232,240,.95);background:linear-gradient(135deg,rgba(248,250,252,.98),#fff);padding:10px 11px;font-size:12px}
.tool-card-title{font-weight:600;font-size:12px;display:flex;align-items:center;gap:6px}
.tool-pill{font-size:10px;padding:2px 6px;border-radius:999px;background:rgba(37,99,235,.08);color:var(--accent)}
.tool-card-body{color:var(--text-muted);font-size:11px;line-height:1.4;margin-bottom:6px}
.tool-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.chip{border-radius:999px;border:1px solid rgba(148,163,184,.7);padding:4px 9px;font-size:11px;cursor:pointer;background:rgba(255,255,255,.9);color:var(--text-muted);display:inline-flex;align-items:center;gap:6px;transition:.14s}
.chip.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.divider{margin:14px 0 10px;border-top:1px dashed rgba(226,232,240,.9)}
.action-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px}
.action-buttons{display:flex;gap:8px;flex-wrap:wrap}
.status-text{font-size:11px;color:var(--text-muted);display:flex;align-items:center;gap:6px}
.status-dot{width:7px;height:7px;border-radius:50%;background:#a3a3a3}
.status-dot.active{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.25)}
.progress-bar{margin-top:8px;height:6px;border-radius:999px;background:rgba(226,232,240,.95);overflow:hidden}
.progress-fill{height:100%;width:0;background:linear-gradient(90deg,#2563eb,#4f46e5,#22c55e);transition:width .25s ease}
.result-panel{margin-top:10px;font-size:12px;color:var(--text-muted);display:none}
.result-link{font-size:12px;border-radius:999px;padding:6px 12px;border:1px solid rgba(37,99,235,.3);background:rgba(37,99,235,.05);color:var(--accent);text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.sidebar{display:flex;flex-direction:column;gap:16px}
.donation-card{position:relative;overflow:hidden}
.donation-bg{position:absolute;inset:-40%;background:radial-gradient(circle at top right,rgba(37,99,235,.25),transparent 55%),radial-gradient(circle at bottom left,rgba(56,189,248,.3),transparent 55%);opacity:.9;pointer-events:none}
.donation-content{position:relative}
.donation-title{font-size:15px;font-weight:600;color:#020617;margin-bottom:6px}
.donation-subtitle{font-size:12px;color:#0f172a;margin-bottom:8px}
.donation-buttons{display:flex;flex-wrap:wrap;gap:8px}
.donate-primary{padding:7px 12px;border-radius:999px;border:none;background:#0f172a;color:#fff;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;box-shadow:0 12px 36px rgba(15,23,42,.6)}
.donate-secondary{padding:7px 11px;border-radius:999px;border:1px solid rgba(15,23,42,.2);background:rgba(255,255,255,.9);font-size:11px;cursor:pointer}
.donation-footer{margin-top:10px;font-size:11px;color:#0f172a;opacity:.9}
.ai-diagnosis-card{font-size:12px;color:var(--text-muted)}
.ai-diagnosis-title{font-weight:600;margin-bottom:6px;display:flex;align-items:center;gap:6px}
.ai-tag{font-size:10px;padding:2px 6px;border-radius:999px;border:1px solid rgba(37,99,235,.4);color:var(--accent);background:rgba(255,255,255,.9)}
.ai-diagnosis-log{max-height:160px;overflow-y:auto;padding:6px 8px;border-radius:10px;background:rgba(15,23,42,.95);color:#e5e7eb;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;line-height:1.4;border:1px solid rgba(15,23,42,.85)}
