* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
body {
    background: #f5f7fb;
    padding: 20px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}
header {
    text-align: center;
    margin-bottom: 30px;
}
h1 {
    font-size: 2rem;
    color: #1e293b;
}
.sub {
    color: #475569;
    margin-top: 8px;
}
.stats-bar {
    background: white;
    border-radius: 16px;
    padding: 12px 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #e2e8f0;
}
.usage-display {
    font-weight: 500;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 14px;
}
.upgrade-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}
.section {
    margin-bottom: 40px;
}
.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}
.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    position: relative;
}
.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fef3c7;
    color: #d97706;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.card h3 {
    margin-bottom: 16px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}
input, button, select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: white;
}
button {
    background: #3b82f6;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
button:hover {
    background: #2563eb;
}
.result {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
}
.result.success {
    background: #dcfce7;
    color: #166534;
}
.result.error {
    background: #fee2e2;
    color: #991b1b;
}
.result.premium {
    background: #fef3c7;
    color: #92400e;
}
.size-info {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    text-align: center;
}
.slider-container {
    margin-top: 12px;
}
.generated-output {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
    border: 1px solid #e2e8f0;
}
.generated-output p {
    margin: 8px 0;
    font-size: 13px;
}
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
}
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}