:root {
    --primary: #6366f1;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --danger: #ef4444;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
}

body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
.app-container { max-width: 1100px; margin: 0 auto; padding: 20px; }

header { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; }
.logo { font-size: 26px; font-weight: 900; color: var(--primary); }
nav a { text-decoration: none; color: var(--muted); margin-left: 25px; font-weight: 600; }

.hero { text-align: center; padding: 80px 0; }
.hero h1 { font-size: 52px; letter-spacing: -2px; margin-bottom: 20px; }
.live-stats { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.stat-bubble { background: var(--card); padding: 10px 25px; border-radius: 50px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.dot { height: 10px; width: 10px; background: #22c55e; border-radius: 50%; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0px rgba(34,197,94,0.4); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }

.tool-card { background: var(--card); border-radius: 30px; padding: 35px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); }
.tool-header-actions { display: flex; justify-content: space-between; margin-bottom: 30px; }
.btn-upload { background: var(--primary); color: white; border: none; padding: 12px 25px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-clear-all { background: #fee2e2; color: var(--danger); border: none; padding: 12px 20px; border-radius: 12px; cursor: pointer; font-weight: 600; }

.custom-filter-section { background: rgba(99,102,241,0.05); padding: 25px; border-radius: 15px; margin-bottom: 30px; }
.filter-inputs { display: flex; gap: 15px; margin-top: 10px; }
.filter-inputs input { flex: 1; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: var(--card); color: var(--text); }
.btn-apply { background: var(--text); color: var(--bg); border: none; padding: 12px 25px; border-radius: 10px; font-weight: 700; cursor: pointer; }

.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
textarea { width: 100%; height: 320px; padding: 20px; border-radius: 15px; border: 1px solid #e2e8f0; background: var(--bg); color: var(--text); resize: none; font-size: 16px; }

.tool-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 30px; }
.chip { background: #f1f5f9; padding: 10px 20px; border-radius: 50px; cursor: pointer; font-weight: 600; color: #1e293b; font-size: 14px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 15px 35px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-secondary { background: #e2e8f0; color: #1e293b; border: none; padding: 15px 25px; border-radius: 12px; font-weight: 700; cursor: pointer; margin-right: 10px; }

/* Content Sections */
.content-section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.f-card { background: var(--card); padding: 40px; border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.f-card i { font-size: 40px; color: var(--primary); margin-bottom: 20px; }

.safety-box { background: var(--text); color: var(--bg); padding: 60px; border-radius: 40px; text-align: center; margin-bottom: 60px; }

.donation-section { text-align: center; margin-bottom: 80px; }
.coffee-card { background: linear-gradient(135deg, #6366f1, #a855f7); color: white; padding: 60px; border-radius: 40px; }
.donate-btn { display: inline-block; background: #ffdd00; color: black; padding: 18px 40px; border-radius: 15px; text-decoration: none; font-weight: 900; margin-top: 25px; }

@media (max-width: 768px) {
    .editor-grid, .features-grid, .filter-inputs { grid-template-columns: 1fr; flex-direction: column; }
    .hero h1 { font-size: 36px; }
}