:root {
    --nov-bg: #f4f7fb;
    --nov-card: #ffffff;
    --nov-text: #162033;
    --nov-muted: #667085;
    --nov-blue: #1f5eff;
    --nov-green: #079455;
    --nov-yellow: #f79009;
    --nov-red: #d92d20;
    --nov-border: #d9e2ef;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--nov-bg);
    color: var(--nov-text);
}

.nov-container {
    width: min(1120px, calc(100% - 28px));
    margin: 24px auto;
}

.nov-card {
    background: var(--nov-card);
    border: 1px solid var(--nov-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
    margin-bottom: 18px;
}

.nov-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.nov-title {
    margin: 0;
    font-size: 24px;
}

.nov-subtitle {
    margin: 6px 0 0;
    color: var(--nov-muted);
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--nov-border);
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 15px;
    background: #fff;
}

textarea { min-height: 100px; resize: vertical; }

.nov-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nov-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.nov-field { margin-bottom: 14px; }

.nov-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    background: var(--nov-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.nov-btn.secondary { background: #344054; }
.nov-btn.green { background: var(--nov-green); }
.nov-btn.yellow { background: var(--nov-yellow); color: #101828; }
.nov-btn.red { background: var(--nov-red); }

.nov-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-weight: 700;
}
.alert-success { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.alert-danger { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

.progress-wrap {
    background: #e4e7ec;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar {
    background: var(--nov-blue);
    height: 100%;
}

.timeline {
    display: grid;
    gap: 12px;
}
.timeline-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--nov-border);
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.timeline-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e4e7ec;
    font-weight: 800;
}
.timeline-item.done .timeline-icon { background: #dcfae6; color: var(--nov-green); }
.timeline-item.current { border-color: var(--nov-blue); box-shadow: 0 0 0 3px rgba(31, 94, 255, .08); }
.timeline-item.current .timeline-icon { background: #e0eaff; color: var(--nov-blue); }
.timeline-title { font-weight: 800; }
.timeline-desc { color: var(--nov-muted); font-size: 14px; margin-top: 4px; }
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}
.badge.green { background: #dcfae6; color: #067647; }
.badge.blue { background: #e0eaff; color: #1f5eff; }
.badge.yellow { background: #fef0c7; color: #b54708; }
.badge.red { background: #fee4e2; color: #b42318; }

.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    border-bottom: 1px solid var(--nov-border);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
.table th { color: var(--nov-muted); font-size: 13px; }

.socio-card {
    border: 1px dashed var(--nov-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    background: #fcfcfd;
}

@media (max-width: 760px) {
    .nov-grid, .nov-grid-3 {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        grid-template-columns: 38px 1fr;
    }
    .timeline-item .badge {
        grid-column: 2;
        width: fit-content;
    }
    .nov-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
