@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',system-ui,sans-serif;background:linear-gradient(135deg,#FFF8F0 0%,#FFF3E6 50%,#FFECD2 100%);min-height:100vh}
::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:rgba(99,102,241,.15);border-radius:4px}
button,input,textarea,select{font-family:inherit}button{cursor:pointer}

.wrap{display:flex;flex-direction:column;height:100vh;overflow:hidden}

/* Topbar */
.topbar{height:56px;background:rgba(255,255,255,.85);backdrop-filter:blur(12px);border-bottom:1px solid rgba(99,102,241,.12);display:flex;align-items:center;padding:0 20px;gap:14px;flex-shrink:0}
.logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#6366F1,#4F46E5);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;color:#fff}
.title{font-size:14px;font-weight:800;color:#1E1B4B}
.subtitle{font-size:10px;color:#6366F1}

/* Buttons */
.btn{border:none;border-radius:9px;padding:8px 16px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:6px;transition:all .15s}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,#6366F1,#4F46E5);color:#fff}
.btn-secondary{background:rgba(99,102,241,.06);color:#4F46E5;border:1px solid rgba(99,102,241,.15)}
.btn-sm{padding:5px 10px;font-size:11px}

/* Card */
.card{background:rgba(255,255,255,.75);border:1px solid rgba(99,102,241,.12);border-radius:14px;padding:18px 20px;backdrop-filter:blur(8px)}

/* Tabs */
.tab-group{display:flex;gap:2px;background:rgba(99,102,241,.06);border-radius:9px;padding:3px}
.tab-btn{padding:6px 14px;border-radius:7px;border:none;font-size:12px;font-weight:600;background:transparent;color:#6366F1;transition:all .15s}
.tab-btn.active{background:#fff;color:#1E1B4B;box-shadow:0 1px 4px rgba(99,102,241,.12)}

/* Body */
.body{flex:1;overflow-y:auto;padding:20px}

/* Competitor List */
.comp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px;margin-top:16px}
.comp-card{background:rgba(255,255,255,.85);border:1.5px solid rgba(99,102,241,.1);border-radius:14px;overflow:hidden;transition:all .2s}
.comp-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(99,102,241,.1)}
.comp-header{padding:14px 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(99,102,241,.06)}
.comp-logo{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.comp-name{font-size:14px;font-weight:700;color:#1E1B4B}
.comp-url{font-size:11px;color:#6366F1;font-family:monospace}
.comp-body{padding:14px 16px}
.comp-tag{display:inline-flex;padding:2px 8px;border-radius:100px;font-size:10px;font-weight:700;margin-right:4px;margin-bottom:4px}
.tag-strength{background:#D1FAE5;color:#065F46}
.tag-weakness{background:#FEE2E2;color:#991B1B}
.tag-idea{background:#EEF2FF;color:#4338CA}
.comp-score{display:flex;gap:4px;margin-top:10px}
.score-item{flex:1;text-align:center;padding:6px 0;background:rgba(99,102,241,.03);border-radius:7px}
.score-val{font-size:14px;font-weight:800;font-family:monospace}
.score-label{font-size:9px;font-weight:600;color:#6366F1;text-transform:uppercase}

/* Findings */
.finding{border-left:3px solid #6366F1;padding:10px 14px;margin-bottom:10px;background:rgba(99,102,241,.03);border-radius:0 9px 9px 0}
.finding-title{font-size:12px;font-weight:700;color:#1E1B4B;margin-bottom:4px}
.finding-desc{font-size:12px;color:#4B5563;line-height:1.6}
.finding-apply{margin-top:6px;padding:6px 10px;background:#EEF2FF;border:1px solid #C7D2FE;border-radius:7px;font-size:11px;color:#4338CA;line-height:1.5}
.finding-apply::before{content:"💡 Apply: ";font-weight:700}

/* Notes Area */
.notes-area{width:100%;min-height:120px;border:1.5px solid rgba(99,102,241,.15);border-radius:9px;padding:12px 14px;font-size:13px;line-height:1.6;resize:vertical;background:rgba(255,255,255,.8);color:#1E1B4B}
.notes-area:focus{outline:none;border-color:#6366F1}

/* Add Modal */
.modal-overlay{position:fixed;inset:0;background:rgba(30,27,75,.4);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}
.modal-body{background:#fff;border-radius:16px;padding:24px;width:min(560px,100%);max-height:85vh;overflow-y:auto;box-shadow:0 20px 60px rgba(30,27,75,.2)}
.form-label{display:block;font-size:11px;font-weight:600;color:#4B5563;margin-bottom:4px}
.form-input{width:100%;border:1.5px solid rgba(99,102,241,.15);border-radius:8px;padding:8px 12px;font-size:13px;color:#1E1B4B}
.form-input:focus{outline:none;border-color:#6366F1}