:root {
    --bg: #0b1220;
    --card: #121a2b;
    --card-2: #0f1727;
    --text: #ecf2ff;
    --muted: #9fb0cf;
    --line: #25324d;
    --primary: #4f8cff;
    --primary-2: #75a4ff;
    --success: #19b66a;
    --danger: #dc4c64;
    --warning: #d59a20;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(180deg, #08111f 0%, #0d1526 100%);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(8, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 18px; }
.nav nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.02em; }
.main { padding: 28px 0 40px; }
.hero, .card {
    background: linear-gradient(180deg, rgba(18,26,43,0.96), rgba(12,18,30,0.96));
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.24);
}
.hero { padding: 40px; display: grid; gap: 18px; }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 22px; }
h1, h2, h3 { margin-top: 0; }
p.muted, .muted { color: var(--muted); }
.button, button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; padding: 0 16px; border-radius: 12px; border: 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-2)); color: white;
    font-weight: 700; cursor: pointer;
}
.button.ghost { background: transparent; border: 1px solid var(--line); }
.button.secondary { background: #1d2940; }
form.stack { display: grid; gap: 14px; }
label { display: grid; gap: 8px; font-weight: 600; }
input, textarea, select {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--line); background: #09111d; color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
.flash { margin-bottom: 14px; border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.flash.success { background: rgba(25,182,106,0.12); border-color: rgba(25,182,106,0.35); }
.flash.error { background: rgba(220,76,100,0.12); border-color: rgba(220,76,100,0.35); }
.flash.warning { background: rgba(213,154,32,0.12); border-color: rgba(213,154,32,0.35); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-2); }
.kicker { color: var(--primary-2); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.project-list { display: grid; gap: 14px; }
.project-item { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(12,18,30,0.9); }
.badge { display: inline-block; border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
.footer { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.codebox {
    background: #08111d; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: auto;
}
@media (max-width: 800px) {
    .grid.cols-3, .grid.cols-2, .stats { grid-template-columns: 1fr; }
    .hero { padding: 24px; }
}
