:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --sidebar: #0f172a;
    --bg: #f4f7f6;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --warn-bg: #fef3c7;
    --warn-text: #92400e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.fincoop-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 270px;
    background: var(--sidebar);
    color: #fff;
    padding: 20px 16px;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
}

.brand-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
}

.brand-subtitle {
    font-size: 12px;
    color: #cbd5e1;
}

.menu-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 18px 10px 8px;
    letter-spacing: .7px;
}

.menu a {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 4px;
}

.menu a:hover,
.menu a.active {
    background: rgba(255, 255, 255, .10);
}

.main {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
}

.topbar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.topbar h1 {
    margin: 0;
    font-size: 24px;
}

.topbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-ok {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-warn {
    background: var(--warn-bg);
    color: var(--warn-text);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.card-title {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.card-value {
    font-size: 24px;
    font-weight: 800;
}

.card-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel h2 {
    margin: 0;
    font-size: 18px;
}

.panel p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.steps {
    display: grid;
    gap: 10px;
}

.step {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.step strong {
    display: block;
    font-size: 14px;
}

.step small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.step span {
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .fincoop-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: none;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 16px;
    }

    .step {
        align-items: flex-start;
        flex-direction: column;
    }
}