:root {
    --background: #f5f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #111827;
    --accent: #2563eb;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--text);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6vw;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-brand a {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

.nav-links a {
    margin-left: 16px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 6vw 80px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
}

.hero-content { text-align: center; }
.hero h1 { font-size: 42px; margin-bottom: 12px; }
.subtitle { color: var(--muted); margin-bottom: 24px; }

.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input,
.search-inline input,
.stacked-form input,
.stacked-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 16px;
}

.search-form button,
.stacked-form button,
.actions button,
.button,
.button.ghost,
.search-inline button {
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.button.ghost { background: #eef2ff; color: var(--primary); }

.panel,
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.panel-header { display: flex; align-items: center; justify-content: space-between; }

.panel h2 { margin: 0 0 8px; }
.panel .meta { margin: 0; color: var(--muted); }

.stacked-form { display: grid; gap: 12px; margin-top: 12px; }

.footer {
    text-align: center;
    padding: 18px;
    color: var(--muted);
}

.flash-messages { margin-bottom: 18px; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; }
.flash.success { background: #ecfdf3; color: #166534; }
.flash.danger { background: #fef2f2; color: #991b1b; }
.flash.warning { background: #fff7ed; color: #9a3412; }
.flash.info { background: #eff6ff; color: #1d4ed8; }

.grid { display: grid; gap: 16px; }
.grid.two-columns { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card-header h3 { margin: 6px 0 4px; }
.card-header .meta { margin: 0; color: var(--muted); }

.description { color: var(--muted); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }

.ioc-list ul { list-style: none; padding: 0; margin: 12px 0 0; }
.ioc-list li { margin-bottom: 8px; }
.badge { background: #eef2ff; color: var(--primary); border-radius: 6px; padding: 4px 8px; font-size: 12px; }

.search-inline { display: flex; gap: 10px; margin-bottom: 14px; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.list .meta { margin: 0 0 4px; color: var(--muted); }

.actions { display: flex; gap: 8px; }
.actions form { margin: 0; }
.actions .secondary button { background: #f3f4f6; color: var(--text); }

.narrow { max-width: 480px; margin: 0 auto; }

@media (max-width: 640px) {
    .search-form { flex-direction: column; }
    .search-inline { flex-direction: column; }
    .navbar { flex-direction: column; gap: 10px; align-items: flex-start; }
    .nav-links a { margin-left: 0; margin-right: 12px; }
}
